Connectrix: Brocade: How to change the IP address on a switch
Summary: This KB explains the steps to change the IP address on the Brocade switch model.
Instructions
Below are the steps performed to change the IP address of a switch over remote access:
-
Connect to the switch and log in using an account assigned to the admin role.
-
Perform the appropriate action based on whether you have a departmental model or director model:
- If you are setting the IP address for a departmental switch model, enter the
ipAddrSetcommand. - If you are setting the IP address for a director switch model, enter the
ipAddrSetcommand specifying either CP0 or CP1. You must set the IP address for both CP0 and CP1.
The following is an example of setting an IPv4 address.
switch:admin> ipaddrset Ethernet IP Address [10.x.x.x]: Ethernet Subnetmask [255.x.x.x]: Fibre Channel IP Address [220.x.x.x]: Fibre Channel Subnetmask [255.x.x.x]: Gateway IP Address [10.x.x.x]: DHCP [OFF]: off
The following is an example of setting an IPv6 address on a switch
switch:admin> ipaddrset -ipv6 --add 10xx::x:8xx:2xxx:4xxx/6x IP address is being changed...Done.
- If you are setting the IP address for a departmental switch model, enter the
Use the following procedure to set up IP addresses for a logical switch :(VF- enabled)
-
Connect to the switch and log in using an account with admin permissions.
-
Enter the
ipAddrSet -lscommand.- To add an IPv4 address, use the
--addparameter. Specify the network information in dotted-decimal notation for the Ethernet IPv4 address with a Classless Inter-Domain Routing (CIDR) prefix. - To delete an IPv4 address, use the
--deleteparameter.
- To add an IPv4 address, use the
-
Enter the
ipaddrshowcommand to verify the result.The following example sets IP addresses with the CIDR prefix for logical switches with FID 1, 2, and 128 (default logical switch).
switch:FID128:admin> ipaddrset -ls 1 --add 192.0.2.11/24 IP address is being changed...Done. switch:FID128:admin> ipaddrset -ls 2 --add 192.0.2.22/24 IP address is being changed...Done. switch:FID128:admin> ipaddrset -ls 128 --add 192.0.2.0/24 IP address is being changed...Done. switch:FID128:admin> ipaddrshow SWITCH Ethernet IP Address: 198.x.x.x Ethernet Subnetmask: 255.255.255.0 Gateway IP Address: 198.x.x.x DHCP: Off IPFC address for virtual fabric ID 128: 192.x.x..0/124 IPFC address for virtual fabric ID 1: 192.x.x..11/24 IPFC address for virtual fabric ID 2: 192.x.x.22/24
The following example deletes the IP address for the logical switch with FID 1.
switch:FID128:admin> ipaddrset -ls 1 --delete
Below are the steps that need console access in case the above-mentioned steps did not help change the IP address and is stuck:
-
If the above command
ipaddrsetgets kicked off over SSH, you need console access to the switch. -
To recover the stopped responding interface.
- Unplug the network cable, wait 5 seconds, and then plug it back in
- Perform a High Availability (HA) failover for a director class model or hareboot for a departmental model
- Power down the switch and then power it back up again.
- Re-establish new Telnet or SSH sessions for the disconnected session after IP address change.
Additional Information
See this video: