VLAN Commands 473ExampleThe following example configures a VLAN ID of 23 to the untagged layer 2 VLAN Ethernet port 1/e16.switchport trunk allowed vlanThe switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs toor from a trunk port.Syntax• switchport trunk allowed vlan {add vlan-list | remove vlan-list }• add vlan-list — List of VLAN IDs to be added. Separate non-consecutive VLAN IDs with acomma and no spaces. A hyphen designates a range of IDs.• remove vlan-list — List of VLAN IDs to be removed. Separate non-consecutive VLAN IDs with acomma and no spaces. A hyphen designates a range of IDs.Default ConfigurationThis command has no default configuration.Command ModeInterface Configuration (Ethernet, port-channel) mode.User GuidelinesThere are no user guidelines for this command.ExampleThe following example adds VLANs 1, 2, 5 to 6 to the allowed list of Ethernet port 1/e16.switchport trunk native vlanThe switchport trunk native vlan Interface Configuration mode command defines the native VLANwhen the interface is in trunk mode. Use the no form of this command to return to the defaultconfiguration.Console(config)# interface ethernet 1/e16Console(config-if)# switchport access vlan 23Console(config)# interface ethernet 1/e16console(config-if)# switchport trunk allowed vlan add 1-2,5-6book.book Page 473 Thursday, December 18, 2008 7:40 PM