3-10
Cisco Catalyst Blade Switch 3130 for Dell Software Configuration Guide
OL-13270-01
Chapter3 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 co nfiguration 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 lo st. 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 , an d s o o n
for other VLAN interfaces.
You can enter the show interfaces vlan vlan-id privileged EXEC command to show the MAC and
IPaddresses. 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
Step1 configure terminal Enter global configuration mode.
Step2 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.
Step3 ip address dhcp [client-id
interface-name] [hostname host-name] Get an IP address for the VLAN interface from the DHCP server.
Step4 ip address ip-address subnet-mask Enter the IP address and subnet mask.
Step5 exit Return to global configuration mode.
Step6 ip default-gateway ip-address Enter the IP address of the next-hop router interface t ha t is di rec tly
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 t o the
remote networks with which a host needs to communicate.
Note When your switch is configured to route with IP, it does not ne ed
to have a default gateway set.
Step7 end Return to privileged EXEC mode.
Step8 show interfaces vlan vlan-id Verify the configured IP address.
Step9 show ip redirects Verify the configured default gateway.
Step10 copy running-config startup-config (Optional) Save your entries in the configuration file.