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.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Below are the steps performed to change the IP address of a switch over remote access:

  1. Connect to the switch and log in using an account assigned to the admin role.

  2. 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 ipAddrSet command.
    • If you are setting the IP address for a director switch model, enter the ipAddrSet command 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.

Use the following procedure to set up IP addresses for a logical switch :(VF- enabled)

  1. Connect to the switch and log in using an account with admin permissions.

  2. Enter the ipAddrSet -ls command.

    • To add an IPv4 address, use the --add parameter. 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 --delete parameter.
  3. Enter the ipaddrshow command 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:

  1. If the above command ipaddrset gets kicked off over SSH, you need console access to the switch.

  2. 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:

 

Affected Products

Brocade
Article Properties
Article Number: 000184904
Article Type: How To
Last Modified: 17 Dec 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.