Configuration Guide
384
Configuring Logical Interfaces
Logical Interfaces Configurations
Step 2
Create a VLAN interface:
interface vlan
vlan-id
vlan-id
:
Specify an IEEE 802.1Q VLAN ID that already exists, ranging from 1 to 4094.
Create a loopback interface:
interface loopback {
id
}
id:
Specify the ID of the loopback interface, ranging from 1 to 64.
Create a routed port:
interface {
fastEthernet
port
| range fastEthernet
port-list
| gigabitEthernet
port
| range gigabitEthernet
port-list
| ten-gigabitEthernet
port
| range ten-
gigabitEthernet
port-list
}
Enter interface configuration mode.
port
: Specify the Ethernet port number, for example 1/0/1.
port-list:
Specify the list of Ethernet ports, for example 1/0/1-3, 1/0/5.
no switchport
Switch the Layer 2 port into the Layer 3 routed port.
Create a port-channel interface:
interface range port-channel
port-channel-list
port-channel-list:
The list of the port-channel interface, for example 1-3, 5.
Step 3
description
string
Specify a description to the Layer 3 interface, including VLAN interface, loopback
interface, routed port and port-channel interface.
string:
The description of the Layer 3 interface, ranging from 1 to 32 characters.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to create a VLAN interface with a description of VLAN-2.
Switch#configure
Switch(config)#interface vlan
2
Switch(config-if)#description
VLAN-2
Switch(config-if)#end
Switch#copy running-config startup-config