8
OLT(config-interface-ge-0/0)#
vlan mode 1-3 trunk
OLT(config-interface-ge-0/0)#
vlan trunk 1 100
OLT(config-interface-ge-0/0)#
vlan trunk 2 200
OLT(config-interface-ge-0/0)#
vlan trunk 3 300
OLT(config-interface-ge-0/0)#
exit
Configure GE 1
、
2
、
3 vlan mode is hybrid
:
OLT(config)#
interface ge 0/0
OLT(config-interface-ge-0/0)#
vlan mode 1-3 hybrid
OLT(config-interface-ge-0/0)#
vlan hybrid 1 tagged 100
OLT(config-interface-ge-0/0)#
vlan hybrid 2 tagged 200
OLT(config-interface-ge-0/0)#
vlan hybrid 3 tagged 300
OLT(config-interface-ge-0/0)#
exit
NOTE
:
The OLT vlan handle process as follows:
Vlan mode
Direction
Message have
vlan tag or not
Handling method
Access mode
In
vlan tag
Discard
untag
Add port configured vlan in access mode for
message (main parameter is VID),and forward
Out
vlan tag
Forward message to the corresponding port
according to VID and remove vlan tag;If the
VLAN ID of the Tagged message is not same
to the port VID, it is discard.
untag
Discard
Trunk mode
In
vlan tag
If the VLAN in the message is permit to pass
port, it will be forwarded directly; If the
VLAN in the message doesn’t permit to pass
port, it is discarded.
untag
Add default vlan(native-vlan) for untagged
message and forward.
Out
vlan tag
If the VLAN in the message is permit to pass
port, it will be forwarded directly; If the
VLAN ID of the message is the default
(native- VLAN)VLAN, then the VLAN tag is
discard and forward; If the VLAN in the
message doesn’t permit to pass port, it is
discarded.