Configuring the IP Addresses
The device requires three IP addresses that 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.
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::/32Note:Do not reset an IP address while the device has active IP traffic or has management and monitoring tools running, such Web Tools and SNMP. Resetting an IP address with active IP traffic or monitoring tools can cause traffic to be interrupted or stopped.
- 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 - Configure the chassis management IP address by entering the
ipaddrset -chassiscommand:swDir:admin> ipAddrSet -chassisEnter 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.
- Set up the CP0 IP address by entering the
ipaddrset -cp 0command:swDir:admin> ipAddrSet -cp 0Enter the required information at the prompts. The following example shows the 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. - Set up the CP1 IP address by entering the
ipaddrset -cp 1command:swDir:admin> ipAddrSet -cp 1Enter the required information at the prompts. The following example shows the configuration for setting the CP1 IP address.swDir:admin> ipaddrset -cp 1 DHCP [Off]: Host Name [cp1]: 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.