Manually Assigning Ip Information - Cisco Catalyst 3120 Software Manual

Catalyst blade switch for hp
Hide thumbs Also See for Catalyst 3120:
Table of Contents

Advertisement

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.
Command
Step 1
configure terminal
Step 2
interface vlan vlan-id
Step 3
ip address dhcp [client-id
interface-name] [hostname host-name]
Step 4
ip address ip-address subnet-mask
Step 5
exit
Step 6
ip default-gateway ip-address
Step 7
end
Step 8
show interfaces vlan vlan-id
Step 9
show ip redirects
Step 10
copy running-config startup-config
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).
Cisco Catalyst Blade Switch 3120 for HP Software Configuration Guide
3-10
Chapter 3
Purpose
Enter global configuration mode.
Enter interface configuration mode, and enter the VLAN to which the IP
information is assigned. The range is 1 to 4094.
Get an IP address for the VLAN interface from the DHCP server.
Enter the IP address and subnet mask.
Return to global configuration mode.
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.
Return to privileged EXEC mode.
Verify the configured IP address.
Verify the configured default gateway.
(Optional) Save your entries in the configuration file.
Assigning the Switch IP Address and Default Gateway
OL-12247-01

Advertisement

Table of Contents
loading

Table of Contents