AT-9000 Switch Command Line User’s Guide
Section VII: Virtual LANs 569
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 might not be necessary because the
default mode setting for all ports is as untagged ports. In fact, the only
situation where you’re 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 586.
After you’ve set the mode of a port to access (or if it’s 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 don’t know the number, use the SHOW VLAN 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.
This example designates ports 11 to 18 as untagged ports of a VLAN with
the VID 4. The SWITCHPORT MODE ACCESS command is omitted
because the example assumes the ports are already designated as
untagged ports:
awplus> enable
awplus# configure terminal