Configuring the management ip address and, Specifying the default gateway – Brocade TurboIron 24X Series Configuration Guide User Manual

Page 519

Advertising
background image

Brocade TurboIron 24X Series Configuration Guide

485

53-1003053-01

Configuring IP parameters – Layer 2 Switches

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.

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. Refer to

“Changing the network

mask display to prefix format”

on page 492.

To assign an IP address to a Layer 2 Switch, enter a command such as the following at the global
CONFIG level.

TurboIron(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.

TurboIron(config)#ip address 192.45.6.1/24

To specify the Layer 2 Switch default gateway, enter a command such as the

following.

TurboIron(config)#ip default-gateway 192.45.6.1 255.255.255.0

ip default-gateway <ip-addr>

or

ip default-gateway <ip-addr>/<mask-bits>

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 address belongs. Refer to

“Designated VLAN for Telnet management sessions to a Layer 2

Switch”

on page 71.

Advertising