Specifications
Configuring Routing Between VLANs
How to Configure Routing Between VLANS
14
8. show interfaces
DETAILED STEPS
Command Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
• Enter your password if prompted.
Step 2
configure terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
interface range {{ethernet | fastethernet |
gigabitethernet | atm} slot/interface.subinterface -
{{ethernet | fastethernet | gigabitethernet |
atm}slot/interface.subinterface}
Example:
Router(config)# interface range fastethernet5/1.1 -
fastethernet5/1.4
Selects the range of subinterfaces to be configured.
Note The spaces around the dash are required. For
example, the command interface range
fastethernet 1 - 5 is valid; the command
interface range fastethernet 1-5 is not valid.
Step 4
encapsulation dot1Q vlan-id
Example:
Router(config-if)# encapsulation dot1Q 301
Applies a unique VLAN ID to each subinterface
within the range.
• vlan-id—Virtual LAN identifier. The allowed
range is from 1 to 4095.
• The VLAN ID specified by the vlan-id argument
is applied to the first subinterface in the range.
Each subsequent interface is assigned a VLAN
ID, which is the specified vlan-id plus the
subinterface number minus the first subinterface
number (VLAN ID + subinterface number – first
subinterface number).
Step 5
no shutdown
Example:
Router(config-if)# no shutdown
Activates the interface.
• This command is required only if you shut down
the interface.
Step 6
exit
Example:
Router(config-if)# exit
Returns to privileged EXEC mode.