Hello, everyone!
Today, I will show you the main commands for display and configuration VLANs on the OLT. This is the first article about this theme. Let`s get started.
1. Commands for creating VLAN and definition type and attribute of VLAN
The command for definition type of VLAN:
TEST(config)#vlan [VLANID] [type of VLAN]
TEST(config)#vlan 600 smart
The type of VLAN can be: standard, smart, MUX or original.
The command for definition attribute of VLAN:
TEST(config)#vlan attrib [VLANID] [attribute of VLAN]
TEST(config)#vlan attrib 600 QinQ
The attribute of VLAN can be: common, QinQ or stacking.
Or we can create multiple VLAN with one command:
TEST(config)#vlan [VLANID] to [VLANID] [type of VLAN]
TEST(config)#vlan 1000 to 1005 smart
It will take several minutes, and console may be timeout, please use command
idle-timeout to set time limit
Are you sure to add VLANs? (y/n)[n]:y
The total of the VLANs having been processed is 6
The total of the added VLANs is 5
The same command is for the attribute of VLANs for multiple VLANs.
TEST(config)#vlan attrib [VLANID] to [VLANID] [attribute of VLAN]
2. Commands for delete VLAN:
TEST(config)#undo vlan 600
{ <cr>|to<K> }:
Command:
undo vlan 600
If we want to delete multiple VLAN, we can use the next command:
TEST(config)#undo vlan 1000 to 1005
It will take several minutes, and console may be timeout, please use command
idle-timeout to set time limit
Are you sure to delete VLANs? (y/n)[n]:y
The total of the VLANs having been processed is 6
The total of the deleted VLAN(s) is 6
3. Command for description operation of VLAN:
TEST(config)#vlan desc 400 description MNG
This command is an option. We can use this command, if we want shortly explain operation.
4. Command for display all configured VLANs
TEST(config)#display vlan all
{ <cr>|vlanattr<K>|vlantype<E><mux,standard,smart,super>||<K> }:
Command:
display vlan all
-----------------------------------------------------------------------
VLAN Type Attribute STND-Port NUM SERV-Port NUM VLAN-Con NUM
-----------------------------------------------------------------------
1 smart common 8 0 -
400 smart common 8 1048 -
500 smart common 8 1050 -
600 smart common 8 242 -
-----------------------------------------------------------------------
Total: 4
Note : STND-Port--standard port, SERV-Port--service virtual port,
VLAN-Con—vlan-connect
We can see all configured VLANs in the system, with information such as ID, type, attribute, number of standard ports, number of services virtual ports and number of VLAN connections.
5. The next command shows us only reserved VLANs in the system:
TEST(config)#display vlan reserve
{ <cr>||<K> }:
Command:
display vlan reserve
The start activated reserved VLAN ID : 4079
The start configured reserved VLAN ID : 4079
The number of reserved VLAN IDs : 15
With this command, we can see activated reserved VLAN, configured reserved VLAN and the number of reserved VLAN.
6. We can see detail about VLAN with the next command:
TEST(config)#display vlan 400
{ <cr>|inner-vlan<K>|to<K>||<K> }:
Command:
display vlan 400
VLAN ID: 400
VLAN name: VLAN_0400
VLAN type: smart
VLAN attribute: common
VLAN description:
VLAN forwarding mode in control board: VLAN-MAC
VLAN forwarding mode: VLAN-MAC
VLAN broadcast packet forwarding policy: forward
VLAN unknown multicast packet forwarding policy: forward
VLAN unknown unicast packet forwarding policy: forward
VLAN bind service profile ID: -
VLAN bind RAIO profile index: -
VLAN priority: -
-------------------------------
F /S /P Native VLAN State
-------------------------------
0 /8 /0 1 down
0 /8 /1 1 down
0 /8 /2 1 down
0 /8 /3 1 down
0 /9 /0 1 up
0 /9 /1 1 down
0 /9 /2 1 down
0 /9 /3 1 down
-------------------------------
Standard port number: 8
---------------------------------------------------------------------------
INDEX TYPE STATE F /S /P VPI VCI FLOWTYPE FLOWPARA CVLAN
---------------------------------------------------------------------------
1 gpon up 0 /12/7 0 40 vlan 400 -
5 gpon up 0 /3 /0 1 40 vlan 400 -
7 gpon up 0 /10/0 0 40 vlan 400 -
...
This command shows us many information about VLAN: name, ID, type, attribute and description of VLAN. Then, we can see the state of ports on the control boards, etc.
Thank you!



