Configuring Layer 3 Interfaces
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
interface {gigabitethernet interface-id} | {vlan vlan-id} |
{port-channel port-channel-number}
Example:
Switch(config)# interface gigabitethernet1/0/2
Step 3
no switchport
Example:
Switch(config-if)# no switchport
Step 4
ip address ip_address subnet_mask
Example:
Switch(config-if)# ip address 192.20.135.21
255.255.255.0
Step 5
no shutdown
Example:
Switch(config-if)# no shutdown
Step 6
end
Example:
Switch(config-if)# end
Step 7
show interfaces [interface-id]
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
32
Configuring Interface Characteristics
Purpose
Enters global configuration mode.
Specifies the interface to be configured as a Layer
3 interface, and enter interface configuration mode.
For physical ports only, enters Layer 3 mode.
Configures the IP address and IP subnet.
Enables the interface.
Returns to privileged EXEC mode.
Verifies the configuration.
OL-29420-01