配置GPON Type B双归属(OLT双归属场景)介绍GPON TypeB双归属保护,OLT双归属场景的配置指导。前提条件· L3交换机支持集群和二层隔离。· 在主备用OLT上已成功增加ONU,主备用OLT上ONU的所有模板(如DBA模板、线路模板等)必须完全一样。应用场景GPON Type B双归属(OLT双归属场景)如图所示: GPON Type B双归属(OLT双归属场景):· L3交换机集群 。· OLT双链路运行LAG(Link Aggregation Group 链路聚合组)。· 当一条上行链路中断时,无需整个OLT进行Type B倒换。· 核心交换机与OLT相连的两组链路1和2之间要配置二层转发隔离。数据规划表1 GPON Type B双归属(OLT双归属场景)数据规划配置数据主用OLT_A(huawei_A)备用OLT_B(huawei_B)IP地址192.168.68.5/24192.168.78.8/24TCP端口号60766076密钥4234000042340000对端节点名称standbyactive保护组ID11业务板端口0/1/00/1/0上行以太网端口· 主用:0/3/0· 备用:0/4/0· 主用:0/3/0· 备用:0/4/0 数据规划为举例数据,实际业务配置时请以具体组网为准。操作步骤1. 配置主用OLT huawei_A。a. 配置链路聚合。将上行端口0/3/0和0/4/0配置为链路聚合组,聚合组中各成员端口按源MAC地址分发报文,工作模式为LACP静态聚合。huawei_A(config)#link-aggregation 0/3/0 0/4/0 ingress workmode lacp-staticb. 使用dual-parenting local-node命令配置本端IP地址、TCP端口和密钥。huawei_A(config)#dual-parenting local-node ip-address 192.168.68.5 port 6076 key 42340000c. 使用dual-parenting peer-node命令配置对端IP地址、TCP端口和密钥。huawei_A(config)#dual-parenting peer-node standby ip-address 192.168.78.8 port 6076 key 42340000d. 使用dual-parenting sync命令使能双归属同步开关。huawei_A(config)#dual-parenting sync enablee. 使用protect-group命令创建保护组。huawei_A(config)#protect-group 1 protect-target gpon-uni-port workmode dual-parentingf. 使用protect-group member命令添加本端保护组的工作成员,成员类型为work。huawei_A(protect-group-1)#protect-group member port 0/1/0 role work 增加了双归属保护组的工作成员后,保护组会自动使能。g. 使用peer-group-member命令添加保护组对端成员信息。huawei_A(protect-group-1)#peer-group-member peer-node standby peer-port 0/1/0h. 使用uplink-monitor port命令将保护组与上行端口状态建立关联。 如果配置了以太网链路聚合组,与双归属保护组建立关联关系的上行端口必须是链路聚合组中的主端口。huawei_A(protect-group-1)#uplink-monitor port 0/3/0huawei_A(protect-group-1)#quiti. 使用onu-switch notify命令全局使能ONU倒换后代用户发送免费ARP报文的功能。缺省情况下,去使能ONU倒换后代用户发送免费ARP报文的功能。huawei_A(config)#onu-switch notify ipv4 enablej. 保存配置。huawei_A(config)#save2. 配置备用OLT huawei_B。3. huawei_B(config)#link-aggregation 0/3/0 0/4/0 ingress workmode lacp-static4. huawei_B(config)#dual-parenting local-node ip-address 192.168.78.8 port 6076 key 423400005. huawei_B(config)#dual-parenting peer-node active ip-address 192.168.68.5 port 6076 key 423400006. huawei_B(config)#dual-parenting sync enable7. huawei_B(config)#protect-group 1 protect-target gpon-uni-port workmode dual-parenting8. huawei_B(protect-group-1)#protect-group member port 0/1/0 role protect9. huawei_B(protect-group-1)#peer-group-member peer-node active peer-port 0/1/010. huawei_B(protect-group-1)#protect-group enable11. huawei_B(protect-group-1)#uplink-monitor port 0/3/012. huawei_B(protect-group-1)#quit13. huawei_B(config)#onu-switch notify ipv4 enablehuawei_B(config)#save14. (可选)核心交换机侧配置。这里以华为S12700交换机为例,两台交换机配置相同,这里以一台为例。a. 配置端口隔离模式为二层隔离。[SwitchA]port-isolate mode l2b. 在L3交换机_A上创建Eth-Trunk1并配置为LACP模式。c. system-viewd. [SwitchA] interface eth-trunk 1e. [SwitchA-Eth-Trunk1] mode lacp //指定Eth-Trunk工作模式为LACP模式f. [SwitchA-Eth-Trunk1] port link-type trunk //配置接口的链路类型为Trunkg. [SwitchA-Eth-Trunk1] port trunk allow-pass vlan 2 to 4094 //配置Trunk类型接口加入的VLANh. [SwitchA-Eth-Trunk1] port-isolate enable group 1 //使能端口隔离功能i. 配置L3交换机_A上的成员接口加入Eth-Trunk1。j. [SwitchA] interface gigabitethernet 1/0/3k. [SwitchA-GigabitEthernet1/0/3] eth-trunk 1l. [SwitchA-GigabitEthernet1/0/3] quitm. [SwitchA] interface gigabitethernet 1/0/4n. [SwitchA-GigabitEthernet1/0/4] eth-trunk 1[SwitchA-GigabitEthernet1/0/4] quit操作结果检查主用OLT_A(huawei_A)配置结果。· 使用display dual-parenting global-config 命令查询双归属全局配置信息。· huawei_A(config)#display dual-parenting global-config· ------------------------------------------------------------------------ · Synchronization switch : enable · Local node IP address : 192.168.68.5 · Local node TCP port : 6076 · ------------------------------------------------------------------------· 使用display dual-parenting peer-node 命令查询双归属对端节点信息。· huawei_A(config)#display dual-parenting peer-node· ------------------------------------------------------------------------ · Node name IP address TCP port State· ------------------------------------------------------------------------ · standby 192.168.78.8 6076 normal · ------------------------------------------------------------------------· 使用display protect-group保护组及保护组内的所有成员信息。· huawei_A(protect-group-1)#display protect-group 1· -----------------------------------------------------------------------· Group ID : 1· Protect Target : Port of GPON uni· Work Mode : dual-parenting· Description :· Admin State : enable· Operation : none· Reversion : disable· Reversion Time(s): 720· Anti-jitter Time(s) : 720· Monitor uplink : port 0/3/0· Uplink status : normal· Standard type B : no· Peer node name : standby· Peer port : 0/1/0· Handshake state : normal· -----------------------------------------------------------------------· Member Role Operation State PeerMember· -----------------------------------------------------------------------· 0/1/0 work auto switch src standby none -----------------------------------------------------------------------配置脚本主用OLT_A(huawei_A)link-aggregation 0/3/0 0/4/0 ingress workmode lacp-staticdual-parenting local-node ip-address 192.168.68.5 port 6076 key 42340000dual-parenting peer-node standby ip-address 192.168.68.6 port 6076 key 42340000dual-parenting sync enableprotect-group 1 protect-target gpon-uni-port workmode dual-parentingprotect-group member port 0/1/0 role workpeer-group-member peer-node standby peer-port 0/1/0uplink-monitor port 0/3/0quitonu-switch notify ipv4 enablesave备用OLT_B(huawei_B)link-aggregation 0/3/0 0/4/0 ingress workmode lacp-staticdual-parenting local-node ip-address 192.168.68.6 port 6076 key 42340000dual-parenting peer-node active ip-address 192.168.68.5 port 6076 key 42340000dual-parenting sync enableprotect-group 1 protect-target gpon-uni-port workmode dual-parentingprotect-group member port 0/1/0 role protectpeer-group-member peer-node active peer-port 0/1/0protect-group enableuplink-monitor port 0/3/0quitonu-switch notify ipv4 enablesave< 上一节下一节 >