beautypg.com

Adding tagged ports to vlans – Allied Telesis AT-8100 Series User Manual

Page 918

background image

Chapter 60: Port-based and Tagged VLANs

918

Adding Tagged Ports to VLANs

There are three steps to adding ports as tagged ports to VLANs:

1. Set the mode of the ports to trunk so that they function as tagged

ports. This is performed with the SWITCHPORT MODE TRUNK
command.

2. Assign the ports to VLANs with the SWITCHPORT TRUNK ALLOWED

VLAN command.

3. Specify the VLAN for untagged ingress packets. This VLAN is referred

to as the native VLAN. The command is the SWITCHPORT TRUNK
NATIVE VLAN command.

You cannot add a port as a tagged member to a VLAN until after you set
its VLAN mode to trunk with the SWITCHPORT MODE TRUNK command.
Afterwards, you can assign it as a tagged port to as many VLANs as you
want. The command has the format shown here:

switchport mode trunk [ingress-filter

enable|disable

]

For an explanation of the optional INGRESS-FILTER parameter, refer to
“SWITCHPORT MODE TRUNK” on page 935.

Once a port is labeled as a tagged port, you can add it to VLANs as a
tagged member with the SWITCHPORT TRUNK ALLOWED VLAN
command. The command has this format:

switchport trunk allowed vlan add

vid

The VID parameter is the ID number of the VLAN to which you want to add
the port as a tagged port. You can specify more than one VLAN because
tagged ports can belong to more than one VLAN at a time. The VLANs
must already exist on the switch.

Both of these commands are located in the Port Interface mode.

This example of the commands adds port 23 as a tagged member to a
VLAN with the VID 5:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.23
awplus(config-if)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan add 5