Setting the Management IP address of the Device

About this task

For system management, you must assign an IP address on the active management port. If the active management module becomes unavailable and the redundant module becomes the active module, the IP address is automatically assigned to the new active management module.

For example, to assign the IP address 10.0.1.1 to the management module, use these steps.

Procedure

  1. At the opening CLI prompt, enter enable .
    device# enable
    
  2. Enter the erase startup-config command at the Privileged EXEC level prompt (for example, device#), then press Enter. This command erases the factory test configuration if it is still present.
    device# erase startup-config
    

    After entering this command, perform a reload on the system.

    Caution

    Caution

    Use the erase startup-config command only for new systems. If you enter this command on a system you have already configured, the command erases the configuration. If you accidentally do erase the configuration on a configured system, enter the write memory command to save the running configuration to the startup-config file.
  3. Access the configuration level of the CLI by entering the configure terminal command.
    device# configure terminal 
    device(config)#			 
  4. Configure the IP address and mask for the management interface by entering these commands.
    device(config)# interface management 1
    device(config-if-mgmt-1)# ip address 10.0.1.1/24
  5. Enable the strict password check on the device by entering this command.
    device(config)# enable strict-password-enforcement
  6. To enable SSH access, generate SSH host keys by using the following command
    device(config)# crypto key generate
  7. To configure the authentication for the SSH user, use the following command.
    device(config)# aaa authentication login default method-list
    device(config)# aaa authentication login privilege-mode
  8. To configure the valid user credentials either local on the device or on the remote authentication server, use the following command.
    device(config)# username id password 
    (Enter new password:)********