Allied Telesis AT-9000/12POE Switch User Manual


  Open as PDF
of 1480
 
Chapter 47: Port-based and Tagged VLANs
702
Adding Untagged Ports to VLANs
To add a port to a VLAN as an untagged port, it may be necessary to first
set its mode with the SWITCHPORT MODE ACCESS command in the
Port Interface mode. Once a port’s mode is set to access, it functions as
an untagged port. However, this step may not be necessary because the
default mode setting for all ports is as untagged ports. In fact, the only
situation where you are likely to use the command is on ports that need to
function as untagged ports again after acting as tagged ports. Here is the
format of the command:
switchport mode access [ingress-filter
enable|disable
]
For an explanation of the INGRESS-FILTER parameter, refer to
“SWITCHPORT MODE ACCESS” on page 720.
After you’ve set the mode of a port to access (or if it is already set to that
mode), you can use the SWITCHPORT ACCESS VLAN command, which
is also found in the Port Interface mode, to assign it as an untagged
member of a VLAN. Here is the format of the command:
switchport access vlan
vid
The VID parameter is the VLAN to which you want to add the untagged
port. If you do not know the number, use the SHOW VLAN ALL command
in the User Exec mode or the Privileged Exec mode to view the VLANs on
the switch. You can specify just one VID in the command because a port
can be an untagged member of just one VLAN at a time. The designated
VLAN must already exist on the switch.
This example of the commands designates ports 5 and 7 as untagged
ports and adds them to a VLAN with the VID 12:
awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.5,port1.0.7
awplus(config-if)# switchport mode access
awplus(config-if)# switchport access vlan 12
When the switch adds the ports to VLAN 12, it removes them from their
current VLAN assignments because a port can be an untagged member of
just one VLAN at a time.