Configuring static ip addresses, Configuring a static ipv4 ethernet address – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 67

Advertising
background image

ATTENTION
Setting static IP addresses and using DHCP are mutually exclusive. If DHCP is enabled, remove the
DHCP client before you configure a static IP address.

NOTE
You must connect through the serial port to set the IP address if the network interface is not configured
already. Refer to the Brocade VDX Hardware Reference manual for your specific product for
information on connecting through the serial port.

Configuring static IP addresses

Use static Ethernet network interface addresses in environments where the DHCP service is not
available. To configure a static IPv4 or IPv6 address, you must first disable DHCP. Refer to

Configuring

an IPv4 address with DHCP

on page 68 for more information.

Configuring a static IPv4 Ethernet address

1. Connect to the switch through the serial console.
2. In privileged EXEC mode, issue the configure terminal command to enter global configuration

mode.

3. Enter the interface management rbridge-id/port command to configure the management port.

This command enters a management interface configuration mode where you can choose
configuration parameters for IPv4 and IPv6 addresses.

• A compact switch has a single management port, and the port number for the management port is

always 0.

• On a modular switch with two redundant management modules, you can configure two

management ports. The port numbers are 1 and 2.

4. Enter the no ip address dhcp command to disable DHCP.
5. Enter the ip address IPv4_address/prefix_length command.
6. Use the ip route 0.0.0.0/0 gw-ip command to configure the gateway address.

NOTE

The ip gateway-address command is not available on the Brocade VDX series if the L3 or
Advanced license is installed. In that case, use the following command sequence:

switch(config)# rbridge-id 1

switch(config-rbridge-id-1)# ip route 0.0.0.0/0 default_gateway_address

7. Verify the configuration with the do show running-config interface management command.

NOTE
Specifying an IPv4 address with a subnet mask is not supported. Instead, enter a prefix number in
Classless Inter-Domain Routing (CIDR) notation. To enter a prefix number for a network mask, type a
forward slash (/) and the number of bits in the mask immediately after the IP address. For example,

Configuring static IP addresses

Network OS Administrator’s Guide

67

53-1003225-04

Advertising