beautypg.com

Allied Telesis AT-S39 User Manual

Page 116

background image

Chapter 13: VLAN Commands

116

Now let’s try creating an tagged VLAN that contains both untagged and
tagged ports. Suppose you wanted to create a VLAN called Service with
a VID of 16 and untagged ports 1, 4, 5-7 and tagged ports 11 and 14. You
could not create this VLAN using Syntax 1 with just one command. It
would actually take two commands. You would first create the VLAN,
specifying either the untagged or tagged ports. For example:

create vlan name=Service vid=16 ports=1,4,5-7
frame=untagged

Then, to add the other ports (in this case tagged ports), you would need
to use the ADD VLAN command, which is explained in the next section.

Syntax 2 allows you to create a VLAN of both tagged and untagged ports
all in one command. Here is the command that would create our
example:

create vlan name=Service vid=16
untaggedports=1,4,5-7 taggedports=11,14

That’s the advantage of Syntax 2 over Syntax 1. You can create VLANs
containing both types of ports in one rather than two commands.