Allied Telesis AT-9000/28POE Switch User Manual


  Open as PDF
of 1480
 
AT-9000 Switch Command Line User’s Guide
705
This example adds ports 18 to 21 as tagged members to VLANs with the
VIDs 7 and 13:
awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.18-port1.0.21
awplus(config-if)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan add 7,13
Although tagged ports are primarily intended to handle tagged packets,
they may also handle untagged packets. These are packets that do not
have any VLAN IDs. To forward these types of packets, tagged ports need
to be able to assign them to a particular VLAN on the switch.
This is controlled with what is called native VLANs. A native VLAN is
simply the ID number of a VLAN to which a tagged port assigns its ingress
untagged frames. For example, a tagged VLAN that is assigned the native
VLAN 12 assigns all ingress untagged packets to that VLAN and forwards
the packet on to ports in that particular VLAN. A port can have only one
native VLAN.
The command for setting the native VLAN of tagged ports is the
SWITCHPORT TRUNK NATIVE VLAN command, in the Port Interface
mode. Here is the command’s format:
switchport trunk native vlan
vid
The VID parameter is the ID number of the VLAN that is to be the native
VLAN of the untagged port. You can specify just one VID because a
tagged port can have just one native VLAN. The VLAN must already exist
on the switch.
This example adds ports 22 and 23 as tagged members to VLANs with the
VIDs 8 and 9. The example designates the native VLAN for ingress
untagged packets on the ports as VLAN 15:
awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.22-port1.0.23
awplus(config-if)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan add 8,9
awplus(config-if)# switchport trunk native vlan 15
This example changes the native VLAN of port 16 to VLAN 23. The
example assumes that the port is already a tagged port:
awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.16
awplus(config-if)# switchport trunk native vlan 23