Allied Telesis AT-DC2552XS User Manual

Page 323

Advertising
background image

AT-DC2552SX Switch Command Line Interface User’s Guide

Section II: Layer 2 Switching

323

Note

To assign VLANs to tagged ports, the ports must be in the trunk
mode. Use the SWITCHPORT MODE TRUNK command to place a
port in trunk mode. See “SWITCHPORT MODE TRUNK” on
page 320.

Confirmation Command

“SHOW VLAN” on page 314

Examples

This example assigns ports 1.0.18 through 1.0.20 to tagged ports and
assigns all existing VLANs on the switch to the ports so that the ports
accept tagged frames with the VID of an existing VLAN:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.18-port1.0.20
awplus(config)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan all

This example assigns port 1.0.5 to a tagged port and adds VLANs 20 and
30 to the port so that the port accepts tagged frames that contain the VID
20 and 30:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.5
awplus(config)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan add 20,30

This example removes VLANs 5 through 8 from the list of VLANs assigned
to port 1.0.10. Port 1.0.10 stops accepting frames that contain VIDs 5
through 8:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.10
awplus(config-if)# switchport trunk allowed vlan remove 5-8

This example specifies that port 1.0.19 and 1.0.22 do not accept any
tagged frames:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.19,port1.0.22
awplus(config-if)# switchport trunk allowed vlan none

Advertising