7、配置ONU下行口(数据从OLT下发) ONU端口VLAN配置
ZXAN(config)#pon-onu-mng epon-onu_0/1/2:1
ZXAN(epon-onu-mng)#vlan port eth_0/1 mode tag vlan 101 priority 0
>进入ONU管理视图
>配置ONU的eth_0/1口模式为 tag(即access),属于lan101,优先级为0
1)一般ONU直接接电脑,按tag模式配置即可;
配置命令如下: ZXAN(config)#pon-onu-mng gpon-onu_0/6/4:1
ZXAN(gpon-onu-mng)#vlan port eth_0/1 mode tag vlan-tag 101
2)如果接TAG上行的以太网交换机,则配置成透传模式;
配置命令如下: ZXAN(gpon-onu-mng)#vlan port eth_0/1 mode transparent
//透传模式 1
pon-onu-mng gpon-onu_0/9/2:10
service 1 gemport 1 vlan 41,45,50,100
vlan port eth_0/1 mode transparent
vlan port eth_0/2 mode transparent
//trunk模式
pon-onu-mng gpon-onu_0/9/2:44
service 1 gemport 1 vlan 100
vlan port eth_0/1 mode trunk
vlan port eth_0/1 vlan 100
vlan port eth_0/2 mode trunk
vlan port eth_0/2 vlan 100
//百、千兆口可以正常通数据(抓包正常)
//hybrid模式
pon-onu-mng gpon-onu_0/9/2:22
service 1 gemport 1 vlan 100,200
vlan port eth_0/1 mode hybrid def-vlan 200
vlan port eth_0/1 vlan 99-101
vlan port eth_0/2 mode hybrid def-vlan 200
vlan port eth_0/2 vlan 99-101
//业务通道-------------------------
//ONU端口通道、用户端口vlan-------------------
ZXAN(config)#pon-onu-mng gpon-onu_1/16/2:2
ZXAN(gpon-onu-mng)#service NET type internet gemport 1 vlan 100
ZXAN(gpon-onu-mng)#vlan port eth_0/1 mode tag vlan 100 priority 0
ZXAN(gpon-onu-mng)#show onu running config gpon-onu_1/16/2:2
ZXAN(gpon-onu-mng)#exit
ZXAN(config)#