71
Performing Switch Setup Configuration
How to Perform Switch Setup Configuration
Manually Assigning IP Information on a Routed Port
This task describes how to manually assign IP information on a Layer 3 routed port.
Manually Assigning IP Information to SVIs
This task describes how to manually assign IP information to multiple switched virtual interfaces (SVIs).
4. banner config-save ^C warning-message ^C (Optional) Creates warning messages to be displayed
when you try to save the configuration file to NVRAM.
5. end Returns to privileged EXEC mode.
6. show boot Verifies the configuration.
Command Purpose
Command Purpose
1. configure terminal Enters global configuration mode.
2. interface type id Enters interface configuration mode.
3. no switchport Configures an interface into Layer 3 mode.
4. ip address address mask Specifies the IP address and mask for the interface.
5. exit Returns to global configuration mode.
6. ip default-gateway ip-address Enters 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.
7. end Returns to privileged EXEC mode.
8. show ip redirects Verifies the configured default gateway.
9. copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
1. configure terminal Enters global configuration mode.
2. interface vlan vlan-id Enters interface configuration mode, and enters the VLAN to which the IP
information is assigned. The VLAN range is 1 to 4096.
3. ip address ip-address subnet-mask Enters the IP address and subnet mask.
4. exit Returns to global configuration mode.