2024年9月26日发(作者:焉仪文)
QinQ功能配置说明
1- 使能vlanmode stack模式。
GFA6700(config)#vlanmode stack
2- OLT上分别配置PPPoE业务和IPoE业务的外层VLAN,所有VLAN都设成mvlan。
命令如下:EPON_V2R1(config)#interface vlan v2000 mvlan 2000
在vlan中添加端口的时候,需要注意:
1) 传送QinQ业务时,上联口是tag模式加入,pon口是untag模式加入。
2) 如果需要在EPON设备上传送单层vlan标签,在VLAN里上联口是untag模式加入,
pon口是tag模式加入。
3- 进入pon口的以太网节点,命令:EPON_V2R1(config)#interface ethernet 6/1
修改vtenable模式为disable。命令:
EPON_V2R1(if-pon6/1)#vtenable egress disable
EPON_V2R1(if-pon6/1)#vtenable ingress disable
说明:这两个命令都需要执行。
4- 配置QinQ规则。如下:
假设内层vlan是100~200,外层是2000。
EPON_V2R1(config)#qinq-map ingress PPPoE-1
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match ingress-port 6/1 //策略生效端口为PON
6/1
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match inner-vid 100 200 //内层标签范围为
100~200
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match ethertype 8863 ffff //匹配PPPoE协议
EPON_V2R1(config-qinq-ingmap- PPPoE-1)#policy nodrop vlanadd 2000 nochgpri 0 //添加外
层标签2000
EPON_V2R1(config-qinq-ingmap-abc)#apply //执行并让策略生效
5- 设置OLT接受最大帧长。
GFA6700(config)# jumbo receive length 1600
PartⅡ:
使用QinQ接入方式时,ONU的vlan配置依然为802.1q模式。配置方法如下:
1- 进入onu节点下,配置ONU的vlan,以实现和olt上的vlan的互通。操作如下:
GFA6700(epon-onu5/1/1)#vlan dot1q_add 100 //添加vlan id为100的vlan100
add vid 100 successful
GFA6700(epon-onu5/1/1)#vlan dot1q_port_add 100 1 2 //把onu的端口1以untag的方
式加入到vlan100中。如果ONU下直接界用户,需要把ONU的以太网端口设成untag的;
如果ONU下挂交换机,交换机上设置了vlan trunk ,则需要把ONU的端口也要设成tag
模式以对通交换机。
add port 1 to vlan 100 successful
GFA6700(epon-onu5/1/1)#
GFA6700(epon-onu5/1/1)#vlan dot1q_show //查看onu的vlan配置
Interface VLAN default is up.
Physical status is up, administrator status is up.
MTU 1600 bytes.
IP address:
192.168.1.12/24
IP binding disabled.
MulitiCast Flood Mode is 2.
Vlan id is 1.
Port member list:
eth1/5(u)
Trunk member list:
Interface VLAN v3210 is up.
Physical status is up, administrator status is up.
MTU 1600 bytes.
IP binding disabled.
MulitiCast Flood Mode is 2.
Vlan id is 3210.
Port member list:
eth1/1(u) eth1/2(u) eth1/3(u) eth1/4(u)
eth1/5(t)
Trunk member list:
GFA6700(epon-onu5/1/1)#
GFA6700(epon-onu5/1/1)# mgt config save //保存ONU的配置
GFA6700(epon-onu5/1/1)#mgt config clear //清除ONU的配置
GFA6700(epon-onu5/1/1)#mgt reset //重启ONU
说明:在onu上配置的vlan id必须与在olt上配置的inner-vid一致。
2- 设备类型为GT811_A的,不需要修改vlan的pvid值
设备类型为GT811的。,需要修改vlan 的pvid值,命令如下:
GFA6700(epon-onu6/1/1)#vlan pvid 1 //查看端口1 的pvid值
Port 1's pvid is 1.
GFA6700(epon-onu6/1/1)#vlan pvid 1 200 //修改端口1 的pvid值为200
配置管理地址
GFA6700(config)#int vlan manage
GFA6700(vlan-manage)#ip address 10.88.8.100/24 //配置管理ip地址
GFA6700(vlan-manage)#exit
GFA6700(config)#ip route 0.0.0.0/0 10.88.8.1 //配置网关地址
GFA6700(config)#
GFA6700(config)#config login-authentication enable //打开登录认证
GFA6700(config)#user login-password admin //修改登陆密码
GFA6700(config)#user enable-password admin //配置enable密码
GFA6700(config)#save configuration //保存OLT的配置文件
GFA6700(epon-pon6/1)#bandwidth class 2 delay low assured-bw 50000 best-effort-bw 100000 up
1 //在PON节点下设置ONU的上行带宽,GW-epon的默认带宽为15M,如果需要放大
带宽,需要使用该命令。
GFA6700(epon-pon6/1)#show bandwidth logical-link 1 //查看ONU的DBA带宽
Pon(slot6)/port1 Onu1 bandwidth Information(unit:kbit/s)
Uplink: class: 2 fixed bw: 0
assured bw: 50000 best-effort bw:100000
Downlink: class: -- delay: --
assured bw:No policer best-efort bw: --
GFA6700(epon-pon6/1)#
配置完双层策略后,需要把单层的策略删除。
GFA6700(config)#undo qinq-map ingress vlan3212
查看端口流量的命令:
GFA6700(config)#int eth 1/1
GFA6700(if-eth1/1)#show statistics //查看上联口的流量
Interface eth1/1:
In Rate(Last 2Sec):1062564
In Bytes :97729917499
In Total Pkts :156200510
In Unicast Pkts :153843842
In Multicast Pkts :110270
In Broadcast Pkts :2246398
In Pause Frames :0
In Discard Frames :2590785
In CRC Error Pkts :0
Out Rate(Last 2Sec):1434321
Out Bytes :9
Out Total Pkts :166607597
Out Unicast Pkts :166386601
Out Multicast Pkts :0
Out Broadcast Pkts :220996
Out Pause Frames :0
Out Discard Frames :0
Out CRC Error Pkts :0
GFA6700(if-eth1/1)#exit
GFA6700(config)#int eth 5/1
GFA6700(if-pon5/1)#show statistics //查看POn口的流量
Interface pon5/1:
In Rate(Last 2Sec):893344
In Bytes :53062159449
In Total Pkts :87234301
In Unicast Pkts :87049110
In Multicast Pkts :4035
In Broadcast Pkts :181156
In Pause Frames :0
In Discard Frames :5315
In CRC Error Pkts :0
Out Rate(Last 2Sec):225064
Out Bytes :48329975652
Out Total Pkts :76805527
Out Unicast Pkts :76800496
Out Multicast Pkts :1828
Out Broadcast Pkts :3203
Out Pause Frames :0
Out Discard Frames :0
Out CRC Error Pkts :0
GFA6700(config)#onu 5/1/1
GFA6700(epon-onu5/1/1)#stat port_show
Interface Ethernet eth 2
In Bytes Rate :0
In Bytes :287492
In Total Pkts :2164
In Unicast Pkts :423
In Multicast Pkts :1735
In Broadcast Pkts :6
In Control Frames :0
In Pause Frames :0
In CRC Error Pkts :0
In Jumbo Pkts :0
In Fragment Pkts :0
GFA6700(epon-onu5/1/1)#
2 //查看ONU端口2的流量
Out Bytes Rate :0
Out Bytes :290550
Out Total Pkts :3940
Out Unicast Pkts :1202
Out Multicast Pkts :0
Out Broadcast Pkts :2738
Out Control Frames :0
Out Pause Frames :0
Out CRC Error Pkts :0
Out Jumbo Pkts :0
Out Fragment Pkts :0
2024年9月26日发(作者:焉仪文)
QinQ功能配置说明
1- 使能vlanmode stack模式。
GFA6700(config)#vlanmode stack
2- OLT上分别配置PPPoE业务和IPoE业务的外层VLAN,所有VLAN都设成mvlan。
命令如下:EPON_V2R1(config)#interface vlan v2000 mvlan 2000
在vlan中添加端口的时候,需要注意:
1) 传送QinQ业务时,上联口是tag模式加入,pon口是untag模式加入。
2) 如果需要在EPON设备上传送单层vlan标签,在VLAN里上联口是untag模式加入,
pon口是tag模式加入。
3- 进入pon口的以太网节点,命令:EPON_V2R1(config)#interface ethernet 6/1
修改vtenable模式为disable。命令:
EPON_V2R1(if-pon6/1)#vtenable egress disable
EPON_V2R1(if-pon6/1)#vtenable ingress disable
说明:这两个命令都需要执行。
4- 配置QinQ规则。如下:
假设内层vlan是100~200,外层是2000。
EPON_V2R1(config)#qinq-map ingress PPPoE-1
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match ingress-port 6/1 //策略生效端口为PON
6/1
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match inner-vid 100 200 //内层标签范围为
100~200
EPON_V2R1(config-qinq-ingmap- PPPoE-1)# match ethertype 8863 ffff //匹配PPPoE协议
EPON_V2R1(config-qinq-ingmap- PPPoE-1)#policy nodrop vlanadd 2000 nochgpri 0 //添加外
层标签2000
EPON_V2R1(config-qinq-ingmap-abc)#apply //执行并让策略生效
5- 设置OLT接受最大帧长。
GFA6700(config)# jumbo receive length 1600
PartⅡ:
使用QinQ接入方式时,ONU的vlan配置依然为802.1q模式。配置方法如下:
1- 进入onu节点下,配置ONU的vlan,以实现和olt上的vlan的互通。操作如下:
GFA6700(epon-onu5/1/1)#vlan dot1q_add 100 //添加vlan id为100的vlan100
add vid 100 successful
GFA6700(epon-onu5/1/1)#vlan dot1q_port_add 100 1 2 //把onu的端口1以untag的方
式加入到vlan100中。如果ONU下直接界用户,需要把ONU的以太网端口设成untag的;
如果ONU下挂交换机,交换机上设置了vlan trunk ,则需要把ONU的端口也要设成tag
模式以对通交换机。
add port 1 to vlan 100 successful
GFA6700(epon-onu5/1/1)#
GFA6700(epon-onu5/1/1)#vlan dot1q_show //查看onu的vlan配置
Interface VLAN default is up.
Physical status is up, administrator status is up.
MTU 1600 bytes.
IP address:
192.168.1.12/24
IP binding disabled.
MulitiCast Flood Mode is 2.
Vlan id is 1.
Port member list:
eth1/5(u)
Trunk member list:
Interface VLAN v3210 is up.
Physical status is up, administrator status is up.
MTU 1600 bytes.
IP binding disabled.
MulitiCast Flood Mode is 2.
Vlan id is 3210.
Port member list:
eth1/1(u) eth1/2(u) eth1/3(u) eth1/4(u)
eth1/5(t)
Trunk member list:
GFA6700(epon-onu5/1/1)#
GFA6700(epon-onu5/1/1)# mgt config save //保存ONU的配置
GFA6700(epon-onu5/1/1)#mgt config clear //清除ONU的配置
GFA6700(epon-onu5/1/1)#mgt reset //重启ONU
说明:在onu上配置的vlan id必须与在olt上配置的inner-vid一致。
2- 设备类型为GT811_A的,不需要修改vlan的pvid值
设备类型为GT811的。,需要修改vlan 的pvid值,命令如下:
GFA6700(epon-onu6/1/1)#vlan pvid 1 //查看端口1 的pvid值
Port 1's pvid is 1.
GFA6700(epon-onu6/1/1)#vlan pvid 1 200 //修改端口1 的pvid值为200
配置管理地址
GFA6700(config)#int vlan manage
GFA6700(vlan-manage)#ip address 10.88.8.100/24 //配置管理ip地址
GFA6700(vlan-manage)#exit
GFA6700(config)#ip route 0.0.0.0/0 10.88.8.1 //配置网关地址
GFA6700(config)#
GFA6700(config)#config login-authentication enable //打开登录认证
GFA6700(config)#user login-password admin //修改登陆密码
GFA6700(config)#user enable-password admin //配置enable密码
GFA6700(config)#save configuration //保存OLT的配置文件
GFA6700(epon-pon6/1)#bandwidth class 2 delay low assured-bw 50000 best-effort-bw 100000 up
1 //在PON节点下设置ONU的上行带宽,GW-epon的默认带宽为15M,如果需要放大
带宽,需要使用该命令。
GFA6700(epon-pon6/1)#show bandwidth logical-link 1 //查看ONU的DBA带宽
Pon(slot6)/port1 Onu1 bandwidth Information(unit:kbit/s)
Uplink: class: 2 fixed bw: 0
assured bw: 50000 best-effort bw:100000
Downlink: class: -- delay: --
assured bw:No policer best-efort bw: --
GFA6700(epon-pon6/1)#
配置完双层策略后,需要把单层的策略删除。
GFA6700(config)#undo qinq-map ingress vlan3212
查看端口流量的命令:
GFA6700(config)#int eth 1/1
GFA6700(if-eth1/1)#show statistics //查看上联口的流量
Interface eth1/1:
In Rate(Last 2Sec):1062564
In Bytes :97729917499
In Total Pkts :156200510
In Unicast Pkts :153843842
In Multicast Pkts :110270
In Broadcast Pkts :2246398
In Pause Frames :0
In Discard Frames :2590785
In CRC Error Pkts :0
Out Rate(Last 2Sec):1434321
Out Bytes :9
Out Total Pkts :166607597
Out Unicast Pkts :166386601
Out Multicast Pkts :0
Out Broadcast Pkts :220996
Out Pause Frames :0
Out Discard Frames :0
Out CRC Error Pkts :0
GFA6700(if-eth1/1)#exit
GFA6700(config)#int eth 5/1
GFA6700(if-pon5/1)#show statistics //查看POn口的流量
Interface pon5/1:
In Rate(Last 2Sec):893344
In Bytes :53062159449
In Total Pkts :87234301
In Unicast Pkts :87049110
In Multicast Pkts :4035
In Broadcast Pkts :181156
In Pause Frames :0
In Discard Frames :5315
In CRC Error Pkts :0
Out Rate(Last 2Sec):225064
Out Bytes :48329975652
Out Total Pkts :76805527
Out Unicast Pkts :76800496
Out Multicast Pkts :1828
Out Broadcast Pkts :3203
Out Pause Frames :0
Out Discard Frames :0
Out CRC Error Pkts :0
GFA6700(config)#onu 5/1/1
GFA6700(epon-onu5/1/1)#stat port_show
Interface Ethernet eth 2
In Bytes Rate :0
In Bytes :287492
In Total Pkts :2164
In Unicast Pkts :423
In Multicast Pkts :1735
In Broadcast Pkts :6
In Control Frames :0
In Pause Frames :0
In CRC Error Pkts :0
In Jumbo Pkts :0
In Fragment Pkts :0
GFA6700(epon-onu5/1/1)#
2 //查看ONU端口2的流量
Out Bytes Rate :0
Out Bytes :290550
Out Total Pkts :3940
Out Unicast Pkts :1202
Out Multicast Pkts :0
Out Broadcast Pkts :2738
Out Control Frames :0
Out Pause Frames :0
Out CRC Error Pkts :0
Out Jumbo Pkts :0
Out Fragment Pkts :0