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