Manually Assigning Ip Information - Cisco Catalyst 2975 Software Configuration Manual

Ios release 12.2(55)se
Hide thumbs Also See for Catalyst 2975:
Table of Contents

Advertisement

Chapter 3
Assigning the Switch IP Address and Default Gateway
This example uses a Layer 3 SVI interface on VLAN 99 to enable DHCP-based autoconfiguration with
a saved configuration:
Switch# configure terminal
Switch(conf)# boot host dhcp
Switch(conf)# boot host retry timeout 300
Switch(conf)# banner config-save ^C Caution - Saving Configuration File to NVRAM May Cause
You to No longer Automatically Download Configuration Files at Reboot^C
Switch(config)# vlan 99
Switch(config-vlan)# interface vlan 99
Switch(config-if)# no shutdown
Switch(config-if)# end
Switch# show boot
BOOT path-list:
Config file:
Private Config file:
Enable Break:
Manual Boot:
HELPER path-list:
NVRAM/Config file
Timeout for Config
Config Download
Switch#
You should only configure and enable the Layer 3 interface. Do not assign an IP address or DHCP-based
Note
autoconfiguration with a saved configuration.

Manually Assigning IP Information

Beginning in privileged EXEC mode, follow these steps to manually assign IP information to multiple
switched virtual interfaces (SVIs):
Command
Step 1
configure terminal
Step 2
interface vlan vlan-id
Step 3
ip address ip-address subnet-mask
Step 4
exit
Step 5
ip default-gateway ip-address
Step 6
end
OL-19720-02
flash:/config.text
flash:/private-config.text
no
no
buffer size:
32768
Download:
300 seconds
via DHCP:
enabled (next boot: enabled)
Purpose
Enter global configuration mode.
Enter interface configuration mode, and enter the VLAN to which the IP
information is assigned. The VLAN range is 1 to 4094.
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
Return to privileged EXEC mode.
When your switch is configured to route with IP, it does not need
to have a default gateway set.
Catalyst 2975 Switch Software Configuration Guide
Assigning Switch Information
3-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents