42
Brocade FastIron Edge X-Series Hardware Installation Guide
Part Number: 53-1002499-02
Connecting Network Devices and Checking Connectivity
Configuring IP addresses
4.
Configure the IPv4 address and mask address for the interface.
Brocade(config)# int e 5
Brocade(config-if-e1000-5)# ip address 192.22.3.44 255.255.255.0
NOTE
You can use the syntax
ip address
<ip-addr>/<mask-bits> if you know the subnet mask length. In the above example, you
could enter
ip address 192.22.3.44/24
.
Syntax: enable [<
password
>]
Syntax: configure terminal
Syntax: [no] ip address <
ip-addr
> <
ip-mask
> [secondary]
or
Syntax: [no] ip address <
ip-addr
>/<
mask-bits
> [secondary]
Use the
secondary
parameter if you have already configured an IP address within the same subnet on the interface.
IPv4 devices running Layer 2 software
Complete the following tasks to configure an IPv4 address to a device running Layer 2 software.
1.
At the opening CLI prompt, enter
enable
.
Brocade> enable
2.
Enter the following command at the Privileged EXEC level prompt, then press
Enter
. This command erases the factory test
configuration if still present.
Brocade# erase startup-config
Use the erase startup-config command only for new systems. If you enter this command on a system you
have already configured, the command erases the configuration. If you accidentally do erase the
configuration on a configured system, enter the write memory command to save the running configuration
to the startup-config file.
3.
Access the configuration level of the CLI by entering the following command.
Privileged EXEC Level.
Brocade# configure terminal
Global CONFIG Level.
Brocade(config)#
4.
Configure the IPv4 address and mask for the switch.
Brocade(config)# ip address 192.22.3.44 255.255.255.0
5.
Set a default gateway address for the switch.
Brocade(config)# ip default-gateway 192.22.3.1