Page 256 / 998 Scroll up to view Page 251 - 255
VLAN
VLAN command reference
iMG/RG Software Reference Manual (Switching)
2-106
Example
--> vlan add voip lan1 frame tagged
See also
VLAN LIST
2.4.4.1.18 VLAN ADD PORT
Syntax
VLAN ADD <vlanname> PORT <portname> FRAME {TAGGED |
UNTAGGED}
Description
This command adds an Ethernet port to an existing named VLAN that has been created
with the command VLAN ADD VID.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
vlan add voip port lan1 frame untagged
See also
VLAN SHOW
2.4.4.1.19 VLAN ADD VID
Syntax
VLAN ADD <vlanname> VID <vlanID> [802.1p_priority <priority>]
TAGGED/
UNTAGGED
Specify if the switch port must be set as tagged or
untagged port for the selected vlan.
N/A
Name
Description
Default Value
vlanname
An existing VLAN. To display the existing VLANs,
use the VLAN SHOW command.
N/A
portname
A name that identifies an Ethernet port. Valid port
names (case insensitive) are lan1, lan2, lan3 and lan4.
N/A
FRAME
The FRAME parameter specifies whether a VLAN
tag header is included in each frame transmitted on
the specified ports.
If tagged is specified, a VLAN tag is added to frames
prior to transmission. The port is then called a
tagged port for this VLAN.
If untagged is specified, the frame is transmitted
without a VLAN tag. The port is then called an
untagged port for this VLAN.
N/A
Name
Description
Default Value
Page 257 / 998
VLAN command reference
VLAN
2-107
iMG/RG Software Reference Manual (Switching)
Description
This command defines a new VLAN that has the specified VID value.
The VLAN name can be 16 characters length; it cannot start with a digit and cannot con-
tain dots '.' or the slash symbols '/'.
This command specifies also the priority value of the tagged packets that from the net-
work processor are sent to the layer 2 switch and then to the network.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
vlan add voip vid 10 802.1p_priority 7
See also
VLAN SHOW
2.4.4.1.20 VLAN CLEAR
Syntax
VLAN CLEAR < vlanname >
Description
This command removes an existing vlan from the vlan database.
Name
Description
Default Value
vlanname
An arbitrary name that identifies the VLAN. The
name must not be already in use for another
VLAN. The VLAN name can be at most 16 chars
long.
N/A
vlanID
The VLANID parameter specifies a unique VLAN
Identifier (VID) for the VLAN.
If tagged ports are added to this VLAN, the speci-
fied VID is used in the VID field of the tag in out-
going frames.
If untagged ports are added to this VLAN, the
specified VID only acts as an identifier for the
VLAN in the Forwarding Database. The default
port based VLAN has a VID of 1.
N/A
priority
It's the priority value as defined in 802.1p of the
tagged packets that from the Residential Gateway
network processor are sent to the switch and
then outside to the network. Available values are
in the range 0 to 7.
0
Page 258 / 998
VLAN
VLAN command reference
iMG/RG Software Reference Manual (Switching)
2-108
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> vlan clear voip
See also
VLAN LIST
2.4.4.1.21 VLAN CREATE
Syntax
VLAN CREATE < vlanname > < vlanid >
Description
This command defines a new VLAN and specifies the corresponding VLAN identifier
(VID).
The VLAN name can be 16 characters length; it cannot start with a digit and cannot con-
tain dots '.' or the slash symbols '/'.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> vlan create voip vid 10
--> vlan create wan_net 20
--> vlan create lan_net 20
--> vlan add interface wan_net
wan frame tagged
--> vlan add interface lan_net
lan1 frame untagged
Name
Description
Default Value
Vlanname
An existing VLAN. To display the existing VLANs, use
the VLAN LIST command.
N/A
Option
Description
Default Value
Vlanname
An arbitrary name that identifies the VLAN. The name
must not be already in use for another VLAN. The
VLAN name can be at most 16 chars long.
N/A
Vlanid
The VLANID parameter specifies a unique VLAN Iden-
tifier (VID) for the VLAN.
If tagged ports are added to this VLAN, the specified
VID is used in the VID field of the tag in outgoing
frames.
If untagged ports are added to this VLAN, the specified
VID only acts as an identifier for the VLAN in the For-
warding Database. The default port based VLAN has a
VID of 1.
N/A
Page 259 / 998
VLAN command reference
VLAN
2-109
iMG/RG Software Reference Manual (Switching)
--> vlan add interface wan_net
cpu frame tagged
--> vlan add interface lan_net
cpu frame tagged
--> vlan translate lan_net 20
--> vlan translate wan_net 10
See also
VLAN LIST
2.4.4.1.22 VLAN DELETE
Syntax
VLAN DELETE <vlanname> <portname>
Description
This command removes a switch port to be membership of an existing VLAN.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> vlan delete voip lan1
See also
VLAN ADD PORT
VLAN ADD VID
VLAN SHOW
2.4.4.1.23 VLAN LIST
Syntax
VLAN LIST
Description
This command display the following information about all the VLANs defined in the sys-
tem:
Name
Description
Default Value
Vlanname
An existing VLAN. To display the existing VLANs, use
the VLAN LIST command.
N/A
Portname
The name of the switch port to be configured. Available
ports are:
lan1
lan2
lan3
lan4
lan5
lan6
cpu
wan
cesc
cesd
N/A
Page 260 / 998
VLAN
VLAN command reference
iMG/RG Software Reference Manual (Switching)
2-110
VLAN Name: The name of the VLAN.
VLAN ID: The numerical VLAN identifier of the VLAN (VID).
Untagged port(s): A list of untagged ports that belong to the VLAN.
Tagged port(s): A list of tagged ports that belong to the VLAN.
Example
--> vlan list
VLANs:
ID | VLAN ID | VLAN
Name
|
-----|---------|-----------------|-
1 | 1
| DefaultVlan
|
Tagged Ports:
cpu
Untagged Ports:
-----------------------------------
2 | 200
| vlan_int
|
Tagged Ports:
cpu
Untagged Ports:
lan1
lan2
lan3
lan4
-----------------------------------
3 | 1200
| vlan_dmz
|
Tagged Ports:
cpu
Untagged Ports:
lan5
lan6
-----------------------------------
See also
VLAN ADD PORT
VLAN ADD VID
2.4.4.1.24 VLAN SHOW
Syntax
VLAN SHOW
Description
This command display the following information about all the VLANs defined in the sys-
tem:
Name
- The name of the VLAN.
Identifier
- The numerical VLAN identifier of the VLAN (VID).
Status -
The status of the VLAN (only static VLAN are supported)
Untagged port(s) -
A list of untagged ports that belong to the VLAN.
Tagged port(s) -
A list of tagged ports that belong to the VLAN.
802.1p priority -
The value of the 802.1.p priority assigned to packets sent from
the Residential Gateway processor.
Example
vlan show

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top