5-6
Cisco Secure Router 520 Series Software Configuration Guide
OL-14210-01
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure VLANs
Assign a Switch Port to a VLAN
Perform these steps to assign a switch port to a VLAN, beginning in global configuration mode:
Verify Your VLAN Configuration
Use the following commands to view your VLAN configuration.
•
show
—Entered from VLAN database mode. Displays summary configuration information for all
configured VLANs.
•
show vlan-switch
—Entered from privileged EXEC mode. Displays detailed configuration
information for all configured VLANs.
Router#
vlan database
Router(vlan)#
show
VLAN ISL Id: 1
Name: default
Media Type: Ethernet
VLAN 802.10 Id: 100001
State: Operational
MTU: 1500
Translational Bridged VLAN: 1002
Translational Bridged VLAN: 1003
VLAN ISL Id: 2
Name: VLAN0002
Media Type: Ethernet
VLAN 802.10 Id: 100002
State: Operational
MTU: 1500
Command
Purpose
Step 1
interface
switch port id
Example:
Router(config)#
interface FastEthernet 2
Router(config-if)#
Specifies the switch port that you want to assign
to the VLAN.
Step 2
switchport
access vlan
vlan-id
Example:
Router(config-if)#
switchport access vlan 2
Router(config-if)#
Assigns a port to the VLAN.
Step 3
end
Example:
Router(config-if)#
end
Router#
Exits interface mode and returns to privileged
EXEC mode.
Summary of Contents for 520 Series
Page 15: ...xv Cisco Secure Router 520 Series Software Configuration Guide OL 14210 01 Preface ...
Page 18: ...xviii Cisco Secure Router 520 Series Software Configuration Guide OL 14210 01 Preface ...
Page 19: ...P A R T 1 Getting Started ...
Page 20: ......
Page 33: ...P A R T 2 Configuring Your Router for Ethernet and DSL Access ...
Page 34: ......
Page 103: ...P A R T 3 Configuring Additional Features and Troubleshooting ...
Page 104: ......
Page 123: ...P A R T 4 Reference Information ...
Page 124: ......
Page 162: ...Index IN 8 Cisco Secure Router 520 Series Software Configuration Guide OL 14210 01 ...