21 switchport trunk native – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 129

Advertising
background image

CanogaOS Command Line Reference

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 129 of 855

Command Syntax

switchport trunk allowed vlan {add vlan

remove vlan| all | none}

no switchport trunk
vlan: vlan list connected with ‘-’ and ‘,’, for example, “1-10,15,20,30-40”
add: allow the traffic from the specified vlan to transmit the trunk port
remove: do not allow the traffic from the specified vlan to transmit the trunk port
all: allow the traffic from all the vlan to transmit the trunk port
none: do not allow the traffic from all the vlan to transmit the trunk port

Command Mode

Interface configuration

Usage

None

Examples

This example shows how to allow traffic from vlan11,12 to transmit the trunk port
Switch(config-if)# switchport trunk allowed vlan add 11,12
This example shows how to refuse traffic from vlan11,12 to transmit the trunk port
Switch(config-if)# switchport trunk allowed vlan remove 11,12
This example shows how to allow traffic from all vlan to transmit the trunk port
Switch(config-if)# switchport trunk allowed vlan all
This example shows how to refuse traffic from all vlan to transmit the trunk port
Switch(config-if)# switchport trunk allowed vlan none

Related Commands

switchport access allowed

6.21 switchport trunk native

Use this command to set the native vlan for sending and receiving untagged traffic.
To return the native vlan to default value, use the no form of this command.

Command Syntax

switchport trunk native vlan vlan
no switchport trunk native vlan
vlan: <2-4094> an existing vlan id

Command Mode

Interface configuration

Advertising