Configuration Guide User guide
FastIron Configuration Guide 1037
53-1002494-02
Configuring IP parameters – Layer 2 Switches
Configuring IP parameters – Layer 2 Switches
The following sections describe how to configure IP parameters on a Brocade Layer 2 Switch.
NOTE
This section describes how to configure IP parameters for Layer 2 Switches. For IP configuration
information for Layer 3 Switches, refer to “Configuring IP parameters – Layer 3 Switches” on
page 964.
Configuring the management IP address and specifying
the default gateway
To manage a Layer 2 Switch using Telnet or Secure Shell (SSH) CLI connections or the Web
Management Interface, you must configure an IP address for the Layer 2 Switch. Optionally, you
also can specify the default gateway.
Brocade devices support both classical IP network masks (Class A, B, and C subnet masks, and so
on) and Classless Interdomain Routing (CIDR) network prefix masks:
• To enter a classical network mask, enter the mask in IP address format. For example, enter
“209.157.22.99 255.255.255.0” for an IP address with a Class-C subnet mask.
• To enter a prefix network mask, enter a forward slash ( / ) and the number of bits in the mask
immediately after the IP address. For example, enter “209.157.22.99/24” for an IP address
that has a network mask with 24 significant bits (ones).
By default, the CLI displays network masks in classical IP address format (example:
255.255.255.0). You can change the display to prefix format. Refer to “Changing the network mask
display to prefix format” on page 1065.
Assigning an IP address to a Brocade Layer 2 switch
To assign an IP address to a Brocade Layer 2 Switch, enter a command such as the following at the
global CONFIG level.
Brocade(config)# ip address 192.45.6.110 255.255.255.0
Syntax: ip address <ip-addr> <ip-mask>
or
Syntax: ip address <ip-addr>/<mask-bits>
You also can enter the IP address and mask in CIDR format, as follows.
Brocade(config)# ip address 192.45.6.1/24
To specify the Layer 2 Switch default gateway, enter a command such as the following.
Brocade(config)# ip default-gateway 192.45.6.1
Syntax: ip default-gateway <ip-addr>