博达3616系列OLT河北广电Qinq配置

 

广电常用配置总结

1      Qinq相关配置

1.1    基于内层vlan添加外层标签(静态方式)

以唐山市广电配置为例

policy-map      iptv                 IPTV内层200,外层2001-2100

classify ivlan 200

action vlanIDadd 2001

!

policy-map      ppoe                PPOE内层500-1524,外层2101-2200

classify ivlan 500- 1524

action vlanID add 2101

!

interface EPON0/1                                下行PON口入方向应用policy-map

 switchport mode dot1q-translating-tunnel

 qos policy iptv ingress

 qos policy ppoe ingress

 switchport protected 1

!

interface GigaEthernet0/1

 switchport trunk vlan-allowed 98,2001,2101            上行口透传管理、外层vlan

 switchport mode dot1q-tunnel-uplink

!

dot1q-tunnel                         全局启用qinq功能,创建相应vlan

vlan 1,98,200,500-1524,2001,2101             

!

1.2    基于流量类型添加外层标签(动态方式)

以秦皇岛燕山广电配置为例

!

mac access-list ppoe                                      创建PPOE业务二层ACL

 permit any any 0x8863                                   放行pppoe discoverysession流量

 permit any any 0x8864

!

mac access-list ipoe                                    创建IPTV业务二层ACL

permit any any 0x0800                                  放行IPTV业务IPARP流量

 permit any any arp                                                       

!

policy-map  ppoe1                              创建PPOE  policy-map 1 �C 8 PON口)

classify mac ppoe                                                应用PPOE二层ACL

 action vlanID add 2081                                          添加外层vlan

!

policy-map  ppoe2                               创建PPOE policy-map 9 �C 16 PON口)                                                                              

 classify mac ppoe                                                                             应用PPOE二层ACL

 action vlanID add 2082                                       添加外层vlan

!

policy-map  91                                创建专线policy-map

 classify ivlan 91                                                     内层91的,保持单层91

 action vlanID 91

!

policy-map  ipoe1                                         创建IPOE policy-map 1 �C 8 PON口)

 classify mac ipoe                                                                              应用IPOE二层ACL

 action vlanID add 1081                                                                   添加外层vlan

!

 

policy-map  ipoe2                                  同上(9 �C 16 PON口)

 classify mac ipoe                                                                             

 action vlanID add 1082

!

interface  TGigaEthernet0/1                上联口透传vlan(级联OLT需透传下挂外层vlan                                                                              switchport trunk vlan-allowed91,101,1081-1082,1121-1122, 2081-2082,2121-2122

 switchport mode dot1q-tunnel-uplink

!

interface EPON0/1                         透传专线vlan_91qos顺序为ppoe、专线、ipoe

 switchport mode dot1q-translating-tunnel

 switchport dot1q-translating-tunnel mode flattranslate 91 91 0

 qos policy ppoe1 ingress

 qos policy 91 ingress

 qos policy ipoe1 ingress


你可能感兴趣的:(广电OLTQinq)