Configuring ip parameters - layer 2 switches, Default gateway, The default gateway – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 105
2d01h48m21s:I: DHCPC: Found static IP Address 10.1.1.1 subnet mask 255.255.255.0 on
port 0/1/5
2d01h48m21s:I: DHCPC: Client service found no DHCP server(s) on 3 possible subnet
2d01h48m21s:I: DHCPC: changing 0/1/3 protocol from stopped to running
Configuring IP parameters - Layer 2 Switches
The following sections describe how to configure IP parameters on a Brocade Layer 2 switch.
Configuring the management IP address and specifying the default
gateway
To manage a Layer 2 switch using Telnet or Secure Shell (SSH) CLI connections, 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
"10.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 "10.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.
Assigning an IP address to a Brocade Layer 2 switch
To assign an IP address to a BrocadeLayer 2 switch, enter a command such as the following at the
global CONFIG level.
device(config)# ip address 10.45.6.110 255.255.255.0
Syntax: ip address ip-add rip-mask
or
Syntax: ip address ip-addr/mask-bits
You also can enter the IP address and mask in CIDR format, as follows.
device(config)# ip address 10.45.6.1/24
To specify the Layer 2 switch default gateway, enter a command such as the following.
device(config)# ip default-gateway 10.45.6.1
Syntax: ip default-gateway ip-addr
NOTE
When configuring an IP address on a Layer 2 switch that has multiple VLANs, make sure the
configuration includes a designated management VLAN that identifies the VLAN to which the global IP
Configuring IP parameters - Layer 2 Switches
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
105
53-1003087-04