3-10
Cisco Catalyst Blade Switch 3120 for HP Software Configuration Guide
OL-12247-01
Chapter 3 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
Switches B through D retrieve their configuration files and IP addresses in the same way.
Manually Assigning IP Information
Beginning in privileged EXEC mode, follow these steps to manually assign IP information to multiple
switched virtual interfaces (SVIs):
Note
If the switch is running the IP services feature set, you can also manually assign IP information to a port
if you first put the port into Layer 3 mode by using the no switchport interface configuration command.
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 a 0 x 40. On the next
VLAN interface that you configure, the MAC address is the base MAC a 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).
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 range is 1 to 4094.
Step 3
ip address dhcp [client-id
interface-name] [hostname host-name]
Get an IP address for the VLAN interface from the DHCP server.
Step 4
ip address ip-address subnet-mask
Enter the IP address and subnet mask.
Step 5
exit
Return to global configuration mode.
Step 6
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 7
end
Return to privileged EXEC mode.
Step 8
show interfaces vlan vlan-id
Verify the configured IP address.
Step 9
show ip redirects
Verify the configured default gateway.
Step 10
copy running-config startup-config
(Optional) Save your entries in the configuration file.