16 switchport access vlan – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 126

Advertising
background image

CanogaOS Command Line Reference

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 126 of 855

vlan: vlan list connected with ‘-’ and ‘,’, for example, “1-10,15,20,30-40”
add: allow the traffic from the vlan to pass the access port
remove: not allow the traffic from the vlan to pass the access port

Command Mode

Interface configuration

Usage

This command is used for vlan classifier bi-directional communication.

Examples

This example shows how to allow the traffic from the vlan11 to pass the port:
Switch(config-if)# switchport access allowed vlan add 11
This example shows how to refuse the traffic from the vlan12 to pass the port:
Switch(config-if)# switchport access allowed vlan remove 12

Related Commands

switchport trunk allowed

6.16 switchport access vlan

Use this command to set the access port to a specified vlan.
To set the access port to default vlan 1, use no form of this command.

Command Syntax

switchport access vlan vlan
no switchport access vlan
vlan: <2-4094>

Command Mode

Interface configuration

Usage

All the ports are add to vlan 1 by default.
The port should be an access port by switchport mode access command before add to vlan by this
command.

Examples

This example shows how to add the port to vlan 11.
Switch(config-if)# switchport access vlan 11
This example shows how to return the port to default vlan 1.
Switch(config-if)# no switchport access vlan.

Advertising