Configuring the IP Addresses

About this task

The device requires three IP addresses, which are configured using the ipaddrset command. IP addresses are required for both CP blades (CP0 and CP1) and for chassis management (shown as SWITCH under the ipaddrshow command) in the device.

Following are the default IP addresses and host names for the device:
  • 10.77.77.75 / CP0 (the CP blade in slot 1 at the time of configuration)
  • 10.77.77.74 / CP1 (the CP blade in slot 2 at the time of configuration)
  • 10.77.77.75 / CP0 (the CP blade in slot 1 at the time of configuration)
  • 10.77.77.74 / CP1 (the CP blade in slot 2 at the time of configuration)
  • 10.77.77.75 / CP0 (the CP blade in slot 1 at the time of configuration)
  • 10.77.77.74 / CP1 (the CP blade in slot 2 at the time of configuration)
  • 10.77.77.75 / CP0 (the CP blade in slot 1 at the time of configuration)
  • 10.77.77.74 / CP1 (the CP blade in slot 2 at the time of configuration)
Use one of the following formats for IPv4 or IPv6 addressing when entering the IP address using the ipaddrset command:
  • If using an IPv4 IP address, enter the IP address in dotted-decimal notation as prompted.
    Ethernet IP Address: [192.0.2.0]
  • If using an IPv6 address, enter the network information in colon-separated notation as prompted.
    device:admin> ipaddrset -ipv6 --add 2001:DB8::/32
Note:

Resetting an IP address while the device has active IP traffic or has management and monitoring tools running, such as DCFM, Fabric Watch, and SNMP can cause traffic to be interrupted or stopped.

Complete the following steps to set the IP addresses for the device.

Procedure

  1. Log on to the device through a serial console connection to the active CP blade.
    The active CP is indicated by an illuminated blue LED on the blade front panel. If you are already logged on through a console port, you can determine whether you are logged in to the active or standby CP by entering hashow at the prompt. The following example shows the local login at CP1, which is the active blade.
    
    swDir:admin> hashow
    Local CP (Slot 2, CP1): Active, Cold Recovered
    Remote CP (Slot 1, CP0): Standby, Healthy
    HA enabled, Heartbeat Up, HA State synchronized
              
  2. Configure the chassis management IP address by entering the ipaddrset -chassis command:
    
    swDir:admin> ipAddrSet -chassis

    Enter the required information at the prompts. Specify the -chassis IP address. The -sw 0 IP address is not valid on this device.

    Note: The addresses 10.0.0.0 through 10.0.0.255 are reserved and used internally by the device. External IPs must not use these addresses.

    Following is an example configuration for setting the chassis IP address.

    swDir:admin> ipaddrset -chassis
    DHCP [Off]:
    Ethernet IP Address [10.0.0.0]:192.0.2.2
    Ethernet Subnetmask [255.0.0.0]:255.255.255.0
    IP address is being changed...
    At this point, you are disconnected from the management session. You must log in again, using the newly configured IP address.
  3. Set up the CP0 IP address by entering the ipaddrset -cp 0 command:
    
    swDir:admin> ipAddrSet -cp 0

    Enter the required information at the prompts. Following is an example configuration for setting the CP0 IP address.

    swDir:admin> ipaddrset -cp 0
    DHCP [Off]:
    Host Name [cp0]:
    Ethernet IP Address [10.0.0.0]:192.0.2.3
    Ethernet Subnetmask [255.0.0.0]:255.255.255.0
    Gateway IP Address [10.0.0.0]:192.0.2.1
    IP address is being changed...
    Done.
  4. Set up the CP1 IP address by entering the ipaddrset -cp 1 command:
    
    swDir:admin> ipAddrSet -cp 1

    Enter the required information at the prompts. The following is an example configuration for setting the CP1 IP address.

    Following is sample configuration for setting the CP1 IP address:

    swDir:admin> ipaddrset -cp 1
    DHCP [Off]:
    Host Name [cp0]:
    Ethernet IP Address [10.0.0.0]:192.0.2.4
    Ethernet Subnetmask [255.0.0.0]:255.255.255.0
    Gateway IP Address [10.0.0.0]:192.0.2.1
    IP address is being changed...
    Done.