Cisco Gigabit Ethernet Switch Module for HP p-Class BladeSystem Software Configuration Guide

3-10
Cisco Gigabit Ethernet Switch Module for HP p-Class BladeSystem Software Configuration Guide
380261-003
Chapter 3 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
Manually Assigning IP Information
Beginning in privileged EXEC mode, follow these steps to manually assign IP information to multiple
switched virtual interfaces (SVIs):
To remove the switch IP address, use the no ip address interface configuration command. If you are
removing the address through a Telnet session, your connection to the switch will be lost. To remove the
default gateway address, use the no ip default-gateway global configuration command.
All VLAN interfaces have assigned MAC addresses that are derived from the base MAC address. The
base MAC address is the hardware address that is on the switch label. It also appears when you enter the
show version privileged EXEC command.
On the first VLAN interface (VLAN 1), the MAC address is the base MAC address + 0 x 40. On the next
VLAN interface that you configure, the MAC address is the base MAC address + 0 x 40 +1, and so on
for other VLAN interfaces.
You can enter the show interfaces vlan vlan-id privileged EXEC command to show the MAC and
IP addresses. The MAC addresses that appear in the show interfaces vlan vlan-id command output are
not the same as the MAC address that is printed on the switch label (the base MAC address).
By default, VLAN 1 is the interface that connects to the management network. When the switch boots
up, the DHCP client (switch) requests an IP address from a DHCP server by using the MAC address of
VLAN 1.
For information on setting the switch system name, protecting access to privileged EXEC commands,
and setting time and calendar services, see Chapter 4, “Administering the Switch.”
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
interface vlan vlan-id Enter interface configuration mode, and enter the VLAN to which the IP
information is assigned. The VLAN range is 1 to 4094.
Step 3
ip address ip-address subnet-mask Enter the IP address and subnet mask.
Step 4
exit Return to global configuration mode.
Step 5
ip default-gateway ip-address Enter the IP address of the next-hop router interface that is directly
connected to the switch where a default gateway is being configured. The
default gateway receives IP packets with unresolved destination IP
addresses from the switch.
Once the default gateway is configured, the switch has connectivity to the
remote networks with which a host needs to communicate.
Note When your switch is configured to route with IP, it does not need
to have a default gateway set.
Step 6
end Return to privileged EXEC mode.
Step 7
show interfaces vlan vlan-id Verify the configured IP address.
Step 8
show ip redirects Verify the configured default gateway.
Step 9
copy running-config startup-config (Optional) Save your entries in the configuration file.