PurposeCommand or Action
Updates the VLAN database, propagates it throughout the
administrative domain, and returns to global configuration mode.
exit
Example:
Router(config-
vlan)#exit
Step 2
Assigning a Switch Port to a VLAN
Perform these steps to assign a switch port to a VLAN, beginning in global configuration mode:
SUMMARY STEPS
1.
interface switch port id
2.
switchport access vlan vlan-id
3.
end
DETAILED STEPS
PurposeCommand or Action
Specifies the switch port that you want to assign to the
VLAN.
interface switch port id
Example:
Router(config)#interface FastEthernet 2
Step 1
Assigns a port to the VLAN.
switchport access vlan vlan-id
Example:
Router(config-if)# switchport access vlan 2
Step 2
Exits interface mode and returns to privileged EXEC
mode.
end
Example:
Router(config-if)#end
Step 3
Verifying Your VLAN Configuration
Use the following commands to view your VLAN configuration.
Cisco 800 Series Integrated Services Routers Software Configuration Guide
334 OL-31704-02
Configuring a LAN with DHCP and VLANs
Assigning a Switch Port to a VLAN
Comments to this Manuals