• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C园区交换机M-LAG配置指导书-6W108

11-M-LAG组网VLAN双活网关单挂场景配置举例

本章节下载  (479.16 KB)

11-M-LAG组网VLAN双活网关单挂场景配置举例


1 M-LAG组网VLAN双活网关单挂场景配置举例(IPv4+IPv6)

1.1  组网需求

图1-1所示,Device A和Device B组成M-LAG VLAN双活网关,单台M-LAG设备故障时另一台M-LAG设备仍可正常转发业务流量。在M-LAG VLAN双活网关中:

·     Device D通过M-LAG接口双归接入M-LAG系统中的Device A和Device B,并通过OSPF/OSPFv3动态路由与M-LAG系统实现路由互通。

·     Device F通过非M-LAG接口单归接入M-LAG系统中的Device A,并通过OSPF/OSPFv3动态路由与M-LAG系统实现路由互通。

1.2  适用设备及使用版本

说明

请在适用软件版本的基础上安装当前最新补丁。

 

设备

软件版本

S5590-HI、S5590-EI、S6805-G、S6850-G、S6530X、S6530X-G、S9850-G

R8336P09及以上的版本

 

1.3  组网图

图1-1 M-LAG组网VLAN双活网关单挂场景组网图

‌‌

表1-1 组网图示例接口与设备实际接口对应关系

组网图示例接口

设备实际接口

Interface1

GigabitEthernet1/0/1

Interface2

GigabitEthernet1/0/2

Interface3

GigabitEthernet1/0/3

Interface4

GigabitEthernet1/0/4

Interface5

GigabitEthernet1/0/5

Interface6

GigabitEthernet1/0/6

 

1.4  配置限制和指导

对于非M-LAG接口单归接入的场景,为了使VLAN内的ARP/ND表项正常在两台M-LAG设备间同步,当本端M-LAG设备上行链路故障时,业务流量可以通过peer-link链路绕行到对端M-LAG设备上进行处理。请选择以下方式之一配置:

·     在两台M-LAG设备上将单挂业务VLAN配置为额外VLAN。(本例中采用这种方式,此方式要求设备上至少要有一个M-LAG聚合口,可以是空M-LAG聚合口或者设备上已存在的其他M-LAG聚合口)

·     在两台M-LAG设备创建一个空M-LAG聚合接口(无需加入任何物理接口),并将该M-LAG聚合接口加入单挂业务的VLAN。

建议在M-LAG设备上的单挂业务VLAN接口下配置ipv6 nd unsolicited-na-learning enable命令从未经请求的NA报文中学习邻居信息的功能。

1.5  配置步骤

(1)     配置Device A建立M-LAG系统

# 配置M-LAG系统参数。

<Sysname> system-view

[Sysname] sysname DeviceA

[DeviceA] m-lag system-mac 2-2-2

[DeviceA] m-lag system-number 1

[DeviceA] m-lag system-priority 123

# 配置Keepalive报文的目的IP地址和源IP地址。

[DeviceA] m-lag keepalive ip destination 21.1.1.2 source 21.1.1.1

# 配置端口GigabitEthernet1/0/5工作在三层模式,并配置IP地址为Keepalive报文的源IP地址。

[DeviceA] interface gigabitethernet 1/0/5

[DeviceA-GigabitEthernet1/0/5] port link-mode route

[DeviceA-GigabitEthernet1/0/5] ip address 21.1.1.1 24

[DeviceA-GigabitEthernet1/0/5] ipv6 address 21::1 64

[DeviceA-GigabitEthernet1/0/5] quit

# 配置Keepalive链路接口为M-LAG保留接口。

[DeviceA] m-lag mad exclude interface gigabitethernet 1/0/5

# 创建动态二层聚合接口1。

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation1] quit

# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组1中。

[DeviceA] interface gigabitethernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] interface gigabitethernet 1/0/4

[DeviceA-GigabitEthernet1/0/4] port link-aggregation group 1

[DeviceA-GigabitEthernet1/0/4] quit

# 将二层聚合接口1配置为peer-link接口。

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] port m-lag peer-link 1

[DeviceA-Bridge-Aggregation1] quit

# 创建动态二层聚合接口3,并配置该接口为M-LAG接口1。

[DeviceA] interface bridge-aggregation 3

[DeviceA-Bridge-Aggregation3] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation3] port m-lag group 1

[DeviceA-Bridge-Aggregation3] quit

# 将端口GigabitEthernet1/0/1加入到聚合组3中。

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 3

[DeviceA-GigabitEthernet1/0/1] quit

# 为双归Device D的业务创建VLAN 102。

[DeviceA] vlan 102

[DeviceA-vlan102] quit

# 配置二层聚合接口3为Trunk端口,并允许携带VLAN 102的报文通过。

[DeviceA] interface bridge-aggregation 3

[DeviceA-Bridge-Aggregation3] port link-type trunk

[DeviceA-Bridge-Aggregation3] port trunk permit vlan 102

[DeviceA-Bridge-Aggregation3] quit

# 配置二层以太网接口GigabitEthernet1/0/2为Trunk端口,并允许携带VLAN 60的报文通过。

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 60

[DeviceA-GigabitEthernet1/0/2] quit

# 为单归Device F的业务创建VLAN 60,配置M-LAG的额外VLAN 60。

[DeviceA] vlan 60

[DeviceA-vlan60] quit

[DeviceA] m-lag extra-vlan 60

(2)     配置Device B建立M-LAG系统

# 配置M-LAG系统参数。

<Sysname> system-view

[Sysname] sysname DeviceB

[DeviceB] m-lag system-mac 2-2-2

[DeviceB] m-lag system-number 2

[DeviceB] m-lag system-priority 123

# 配置Keepalive报文的目的IP地址和源IP地址。

[DeviceB] m-lag keepalive ip destination 21.1.1.1 source 21.1.1.2

# 配置端口GigabitEthernet1/0/5工作在三层模式,并配置IP地址为Keepalive报文的源IP地址。

[DeviceB] interface gigabitethernet 1/0/5

[DeviceB-GigabitEthernet1/0/5] port link-mode route

[DeviceB-GigabitEthernet1/0/5] ip address 21.1.1.2 255.255.255.0

[DeviceB-GigabitEthernet1/0/5] ipv6 address 21::2 64

[DeviceB-GigabitEthernet1/0/5] quit

# 配置Keepalive链路接口为保留接口。

[DeviceB] m-lag mad exclude interface gigabitethernet 1/0/5

# 创建动态二层聚合接口1。

[DeviceB] interface bridge-aggregation 1

[DeviceB-Bridge-Aggregation1] link-aggregation mode dynamic

[DeviceB-Bridge-Aggregation1] quit

# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组1中。

[DeviceB] interface gigabitethernet 1/0/3

[DeviceB-GigabitEthernet1/0/3] port link-aggregation group 1

[DeviceB-GigabitEthernet1/0/3] quit

[DeviceB] interface gigabitethernet 1/0/4

[DeviceB-GigabitEthernet1/0/4] port link-aggregation group 1

[DeviceB-GigabitEthernet1/0/4] quit

# 将二层聚合接口1配置为peer-link接口。

[DeviceB] interface bridge-aggregation 1

[DeviceB-Bridge-Aggregation1] port m-lag peer-link 1

[DeviceB-Bridge-Aggregation1] quit

# 创建动态二层聚合接口3,并配置该接口为M-LAG接口1。

[DeviceB] interface bridge-aggregation 3

[DeviceB-Bridge-Aggregation3] link-aggregation mode dynamic

[DeviceB-Bridge-Aggregation3] port m-lag group 1

[DeviceB-Bridge-Aggregation3] quit

# 将端口GigabitEthernet1/0/1加入到聚合组3中。

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 3

[DeviceB-GigabitEthernet1/0/1] quit

# 为双归Device D的业务创建VLAN 102。

[DeviceB] vlan 102

# 配置二层聚合接口3为Trunk端口,并允许携带VLAN 102的报文通过。

[DeviceB] interface bridge-aggregation 3

[DeviceB-Bridge-Aggregation3] port link-type trunk

[DeviceB-Bridge-Aggregation3] port trunk permit vlan 102

[DeviceB-Bridge-Aggregation3] quit

# 为单归Device F的业务创建VLAN 60,配置M-LAG的额外VLAN 60。

[DeviceB] vlan 60

[DeviceB-vlan60] quit

[DeviceB] m-lag extra-vlan 60

(3)     M-LAG系统建立完成后,配置Device A的双活网关功能

# 创建接口Vlan-interface102,并配置其IPv4和IPv6地址,作为双活网关。

[DeviceA] interface vlan-interface 102

[DeviceA-Vlan-interface102] ip address 10.102.0.1 255.255.255.0

[DeviceA-Vlan-interface102] ipv6 address 10:102::1 64

# 配置M-LAG虚拟IPv4和IPv6地址,以便和下行设备Device D建立OSPF和OSPFv3邻居关系。

[DeviceA-Vlan-interface102] port m-lag virtual-ip 10.102.0.3 24 active

[DeviceA-Vlan-interface102] port m-lag ipv6 virtual-ip FE80::2 link-local

# 配置接口Vlan-interface102的MAC地址。

[DeviceA-Vlan-interface102] mac-address 3-3-3

[DeviceA-Vlan-interface102] quit

# 配置Vlan-interface102接口为M-LAG保留接口。

[DeviceA] m-lag mad exclude interface vlan-interface 102

# 创建接口Vlan-interface60,并配置其IPv4和IPv6地址,作为双活网关。

[DeviceA] interface vlan-interface 60

[DeviceA-Vlan-interface60] ip address 10.60.0.1 24

[DeviceA-Vlan-interface60] ipv6 address 10:60::1 64

# 配置M-LAG虚拟IPv4和IPv6地址,以便和下行设备Device D建立OSPF和OSPFv3邻居关系。

[DeviceA-Vlan-interface60] port m-lag virtual-ip 10.60.0.3 24 active

[DeviceA-Vlan-interface60] port m-lag ipv6 virtual-ip FE80::10 link-local

# 开启Vlan-interface60接口从未经请求的NA报文中学习邻居信息的功能。

[DeviceA-Vlan-interface60] ipv6 nd unsolicited-na-learning enable

[DeviceA-Vlan-interface60] quit

# 配置Vlan-interface60接口为M-LAG保留接口。

[DeviceA] m-lag mad exclude interface vlan-interface 60

# 配置上行口GigabitEthernet1/0/6的IPv4地址和IPv6地址。

[DeviceA] interface gigabitethernet 1/0/6

[DeviceA-GigabitEthernet1/0/6] port link-mode route

[DeviceA-GigabitEthernet1/0/6] ip address 32.1.1.1 24

[DeviceA-GigabitEthernet1/0/6] ipv6 address 32:1::1 64

[DeviceA-GigabitEthernet1/0/6] quit

# 配置OSPF。

[DeviceA] ospf 1 router-id 11.1.1.1

[DeviceA-ospf-1] area 0

[DeviceA-ospf-1-area-0.0.0.0] quit

[DeviceA-ospf-1] quit

[DeviceA] interface vlan-interface 102

[DeviceA-Vlan-interface102] ospf 1 area 0

[DeviceA-Vlan-interface102] ospf peer sub-address enable 10.102.0.3

[DeviceA-Vlan-interface102] quit

[DeviceA] interface vlan-interface 60

[DeviceA-Vlan-interface60] ospf 1 area 0

[DeviceA-Vlan-interface60] ospf peer sub-address enable 10.60.0.3

[DeviceA-Vlan-interface60] quit

[DeviceA] interface gigabitethernet 1/0/6

[DeviceA-GigabitEthernet1/0/6] ospf 1 area 0

[DeviceA-GigabitEthernet1/0/6] quit

# 配置OSPFv3。

[DeviceA] ospfv3 1

[DeviceA-ospfv3-1] router-id 10.1.1.1

[DeviceA-ospfv3-1] area 0

[DeviceA-ospfv3-1-area-0.0.0.0] quit

[DeviceA-ospfv3-1] quit

[DeviceA] interface vlan-interface 102

[DeviceA-Vlan-interface102] ospfv3 1 area 0

[DeviceA-Vlan-interface102] quit

[DeviceA] interface vlan-interface 60

[DeviceA-Vlan-interface60] ospfv3 1 area 0

[DeviceA-Vlan-interface60] quit

[DeviceA] interface gigabitethernet 1/0/6

[DeviceA-GigabitEthernet1/0/6] ospfv3 1 area 0

[DeviceA-GigabitEthernet1/0/6] quit

(4)     M-LAG系统建立完成后,配置Device B的双活网关功能

# 创建接口Vlan-interface102,并配置其IPv4和IPv6地址,作为双活网关。

[DeviceB] interface vlan-interface 102

[DeviceB-Vlan-interface102] ip address 10.102.0.1 24

[DeviceB-Vlan-interface102] ipv6 address 10:102::1 64

# 配置M-LAG虚拟IPv4和IPv6地址,以便和下行设备Device D建立OSPF和OSPFv3邻居关系。

[DeviceB-Vlan-interface102] port m-lag virtual-ip 10.102.0.4 24 active

[DeviceB-Vlan-interface102] port m-lag ipv6 virtual-ip FE80::4 link-local

# 配置接口Vlan-interface102的MAC地址。

[DeviceB-Vlan-interface102] mac-address 3-3-3

[DeviceB-Vlan-interface102] quit

# 配置Vlan-interface102接口为M-LAG保留接口。

[DeviceB] m-lag mad exclude interface vlan-interface 102

# 创建接口Vlan-interface60,并配置其IPv4和IPv6地址,作为双活网关。

[DeviceB] interface vlan-interface 60

[DeviceB-Vlan-interface60] ip address 10.60.0.1 24

[DeviceB-Vlan-interface60] ipv6 address 10:60::1 64

# 配置M-LAG虚拟IPv4和IPv6地址,以便和下行设备Device D建立OSPF和OSPFv3邻居关系。

[DeviceB-Vlan-interface60] port m-lag virtual-ip 10.60.0.4 24 active

[DeviceB-Vlan-interface60] port m-lag ipv6 virtual-ip FE80::12 link-local

# 开启Vlan-interface60接口从未经请求的NA报文中学习邻居信息的功能。

[DeviceB-Vlan-interface60] ipv6 nd unsolicited-na-learning enable

[DeviceB-Vlan-interface60] quit

[DeviceB-Vlan-interface60] quit

# 配置Vlan-interface60接口为M-LAG保留接口。

[DeviceB] m-lag mad exclude interface vlan-interface 60

# 配置上行口GigabitEthernet1/0/6的IPv4地址和IPv6地址。

[DeviceB] interface gigabitethernet 1/0/6

[DeviceB-GigabitEthernet1/0/6] port link-mode route

[DeviceB-GigabitEthernet1/0/6] ip address 33.1.1.1 24

[DeviceB-GigabitEthernet1/0/6] ipv6 address 33:1::1 64

[DeviceB-GigabitEthernet1/0/6] quit

# 配置OSPF。

[DeviceB] ospf 1 router-id 11.1.1.2

[DeviceB-ospf-1] area 0

[DeviceB-ospf-1-area-0.0.0.0] quit

[DeviceB-ospf-1] quit

[DeviceB] interface vlan-interface 102

[DeviceB-Vlan-interface102] ospf 1 area 0

[DeviceB-Vlan-interface102] ospf peer sub-address enable 10.102.0.4

[DeviceB-Vlan-interface102] quit

[DeviceB] interface vlan-interface 60

[DeviceB-Vlan-interface60] ospf 1 area 0

[DeviceB-Vlan-interface60] ospf peer sub-address enable 10.60.0.4

[DeviceB-Vlan-interface60] quit

[DeviceB] interface gigabitethernet 1/0/6

[DeviceB-GigabitEthernet1/0/6] ospf 1 area 0

[DeviceB-GigabitEthernet1/0/6] quit

# 配置OSPFv3。

[DeviceB] ospfv3 1

[DeviceB-ospfv3-1] router-id 10.1.1.2

[DeviceB-ospfv3-1] area 0

[DeviceB-ospfv3-1-area-0.0.0.0] quit

[DeviceB-ospfv3-1] quit

[DeviceB] interface vlan-interface 102

[DeviceB-Vlan-interface102] ospfv3 1 area 0

[DeviceB-Vlan-interface102] quit

[DeviceB] interface vlan-interface 60

[DeviceB-Vlan-interface60] ospfv3 1 area 0

[DeviceB-Vlan-interface60] quit

[DeviceB] interface gigabitethernet 1/0/6

[DeviceB-GigabitEthernet1/0/6] ospfv3 1 area 0

[DeviceB-GigabitEthernet1/0/6] quit

(5)     配置Device C

# 配置接口GigabitEthernet1/0/1、GigabitEthernet1/0/2以及loopback0的IPv4地址和IPv6地址。

<Sysname> system-view

[Sysname] sysname DeviceC

[DeviceC] interface LoopBack0

[DeviceC-LoopBack0] ip address 10.10.10.10 255.255.255.255

[DeviceC-LoopBack0] ipv6 address 10:10:10::10/128

[DeviceC-LoopBack0] quit

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] port link-mode route

[DeviceC-GigabitEthernet1/0/1] ip address 32.1.1.2 24

[DeviceC-GigabitEthernet1/0/1] ipv6 address 32:1::2 64

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] port link-mode route

[DeviceC-GigabitEthernet1/0/2] ip address 33.1.1.2 24

[DeviceC-GigabitEthernet1/0/2] ipv6 address 33:1::2 64

[DeviceC-GigabitEthernet1/0/2] quit

# 配置OSPF。

[DeviceC] ospf 1 router-id 11.1.1.3

[DeviceC-ospf-1] area 0

[DeviceC-ospf-1-area-0.0.0.0] quit

[DeviceC-ospf-1] quit

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] ospf 1 area 0

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] ospf 1 area 0

[DeviceC-GigabitEthernet1/0/2] quit

[DeviceC] interface LoopBack0

[DeviceC-LoopBack0] ospf 1 area 0.0.0.0

[DeviceC-LoopBack0] quit

# 配置OSPFv3。

[DeviceC] ospfv3 1

[DeviceC-ospfv3-1] router-id 10.1.1.3

[DeviceC-ospfv3-1] area 0

[DeviceC-ospfv3-1-area-0.0.0.0] quit

[DeviceC-ospfv3-1] quit

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] ospfv3 1 area 0

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] ospfv3 1 area 0

[DeviceC-GigabitEthernet1/0/2] quit

[DeviceC] interface LoopBack0

[DeviceC-LoopBack0] ospfv3 1 area 0.0.0.0

[DeviceC-LoopBack0] quit

(6)     配置Device D

# 创建VLAN 102。

<Sysname> system-view

[Sysname] sysname DeviceD

[DeviceD] vlan 102

# 创建二层聚合接口3,并配置该接口为动态聚合模式。

[DeviceD] interface bridge-aggregation 3

[DeviceD-Bridge-Aggregation3] link-aggregation mode dynamic

[DeviceD-Bridge-Aggregation3] quit

# 将端口GigabitEthernet1/0/1~GigabitEthernet1/0/4加入到聚合组3中。

[DeviceD] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/4

[DeviceD-if-range] port link-aggregation group 3

[DeviceD-if-range] quit

# 配置二层聚合接口3为Trunk端口,并允许携带VLAN 102的报文通过。

[DeviceD] interface bridge-aggregation 3

[DeviceD-Bridge-Aggregation3] port link-type trunk

[DeviceD-Bridge-Aggregation3] port trunk permit vlan 102

[DeviceD-Bridge-Aggregation3] quit

# 创建接口Vlan-interface102,并配置其IPv4和IPv6地址。

[DeviceD] interface vlan-interface 102

[DeviceD-Vlan-interface102] ip address 10.102.0.2 24

[DeviceD-Vlan-interface102] ipv6 address 10:102::2 64

[DeviceD-Vlan-interface102] quit

# 配置OSPF。

[DeviceD] ospf 1 router-id 11.1.1.4

[DeviceD-ospf-1] area 0

[DeviceD-ospf-1-area-0.0.0.0] quit

[DeviceD-ospf-1] quit

[DeviceD] interface vlan-interface 102

[DeviceD-Vlan-interface102] ospf 1 area 0

[DeviceD-Vlan-interface102] quit

# 配置OSPFv3。

[DeviceD] ospfv3 1

[DeviceD-ospfv3-1] router-id 10.1.1.4

[DeviceD-ospfv3-1] area 0

[DeviceD-ospfv3-1-area-0.0.0.0] quit

[DeviceD-ospfv3-1] quit

[DeviceD] interface vlan-interface 102

[DeviceD-Vlan-interface102] ospfv3 1 area 0

[DeviceD-Vlan-interface102] quit

(7)     配置Device F

# 创建VLAN 60。

<Sysname> system-view

[Sysname] sysname DeviceF

[DeviceF] vlan 60

# 配置二层以太网接口GigabitEthernet1/0/2为Trunk端口,并允许携带VLAN 60的报文通过。

[DeviceF] interface gigabitethernet 1/0/2

[DeviceF-GigabitEthernet1/0/2] port link-type trunk

[DeviceF-GigabitEthernet1/0/2] port trunk permit vlan 60

[DeviceF-GigabitEthernet1/0/2] quit

# 创建接口Vlan-interface60,并配置其IPv4和IPv6地址。

[DeviceF] interface vlan-interface 60

[DeviceF-Vlan-interface60] ip address 10.60.0.2 24

[DeviceF-Vlan-interface60] ipv6 address 10:60::2 64

[DeviceF-Vlan-interface60] quit

# 配置OSPF。

[DeviceF] ospf 1 router-id 11.1.1.6

[DeviceF-ospf-1] area 0

[DeviceF-ospf-1-area-0.0.0.0] quit

[DeviceF-ospf-1] quit

[DeviceF] interface vlan-interface 60

[DeviceF-Vlan-interface60] ospf 1 area 0

[DeviceF-Vlan-interface60] quit

# 配置OSPFv3。

[DeviceF] ospfv3 1

[DeviceF-ospfv3-1] router-id 10.1.1.6

[DeviceF-ospfv3-1] area 0

[DeviceF-ospfv3-1-area-0.0.0.0] quit

[DeviceF-ospfv3-1] quit

[DeviceF] interface vlan-interface 60

[DeviceF-Vlan-interface60] ospfv3 1 area 0

[DeviceF-Vlan-interface60] quit

1.6  验证配置

1. M-LAG系统状态正常

# 以DeviceB为例,查看DeviceA和Device B之间M-LAG系统状态简要信息。

<DeviceB> display m-lag summary

Flags: A -- Aggregate interface down, B -- No peer M-LAG interface configured

       C -- Configuration consistency check failed

       D -- Standby status in active/standby mode

 

Peer-link interface: BAGG1

Peer-link interface state (cause): UP

Keepalive link state (cause): UP

 

                     M-LAG interface information

M-LAG IF    M-LAG group  Local state (cause)  Peer state  Remaining down time(s)

BAGG3       1            UP                   UP          -

# 以DeviceB为例,查看DeviceA和Device B之间M-LAG系统状态详细信息。

<DeviceB> display m-lag verbose

Flags: A -- Home_Gateway, B -- Neighbor_Gateway, C -- Other_Gateway,

       D -- PeerLink_Activity, E -- DRCP_Timeout, F -- Gateway_Sync,

       G -- Port_Sync, H -- Expired

 

Peer-link interface/Peer-link interface ID: BAGG1/1

State: UP

Cause: -

Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG

Local Selected ports (index): GE1/0/3 (4), GE1/0/4 (5)

Peer Selected ports indexes: 4, 5

Reserved VLANs: -

 

M-LAG interface/M-LAG group ID: BAGG3/1

Local M-LAG interface state: UP

Peer M-LAG interface state: UP

M-LAG group state: UP

Local M-LAG role election type: None

Peer M-LAG role election type: None

Local M-LAG interface role: -

Peer M-LAG interface role: -

Local M-LAG interface down cause: -

Remaining M-LAG DOWN time: -

Local M-LAG interface LACP MAC: Config=N/A, Effective=0002-0002-0002

Peer M-LAG interface LACP MAC: Config=N/A, Effective=0002-0002-0002

Local M-LAG interface LACP priority: Config=32768, Effective=123

Peer M-LAG interface LACP priority: Config=32768, Effective=123

Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG

Local Selected ports (index): GE1/0/2 (3)

Peer Selected ports indexes: 2

 

2. 路由协议正常

# 以DeviceB上的OSPF邻居情况为例,查看Device B的OSPF邻居信息,可见其存在七个处于Full状态的邻居。

<DeviceB> display ospf peer

 

         OSPF Process 1 with Router ID 11.1.1.2

               Neighbor Brief Information

 

 Area: 0.0.0.0

 Router ID       Address         Pri Dead-Time  State             Interface

 11.1.1.3        33.1.1.2        1   31         Full/DR           GE1/0/6

 11.1.1.4        10.102.0.2      1   31         Full/DR           Vlan102

 11.1.1.1        10.102.0.3      1   37         Full/DROther      Vlan102

 11.1.1.6        10.60.0.2       1   34         Full/DR           Vlan60

 11.1.1.1        10.60.0.3       1   29         Full/DROther      Vlan60

# 在Device D和Device F上通过ping命令可以分别测试10.102.0.2和10.60.0.2到Device C上IP地址10.10.10.10正常可达。以单挂Device F设备上显示为例:

<DeviceE> ping -a 10.60.0.2 10.10.10.10

Ping 10.10.10.10 (10.10.10.10) from 10.60.0.2: 56 data bytes, press CTRL+C to break

56 bytes from 10.10.10.10: icmp_seq=0 ttl=254 time=1.000 ms

56 bytes from 10.10.10.10: icmp_seq=1 ttl=254 time=1.000 ms

56 bytes from 10.10.10.10: icmp_seq=2 ttl=254 time=1.000 ms

56 bytes from 10.10.10.10: icmp_seq=3 ttl=254 time=0.000 ms

56 bytes from 10.10.10.10: icmp_seq=4 ttl=254 time=1.000 ms

 

--- Ping statistics for 10.10.10.10 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms

# 中断Device A和Device C的互联链路后,通过抓包可见业务流量可以正常通过Device B和Device C之间的互联链路转发。

1.7  配置文件

·     Device A:

#

 sysname DeviceA

#

ospf 1 router-id 11.1.1.1

 area 0.0.0.0

#

ospfv3 1

 router-id 10.1.1.1

 area 0.0.0.0

#

vlan 1

#

vlan 60

#

vlan 102

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan all

 link-aggregation mode dynamic

 port m-lag peer-link 1

#

interface Bridge-Aggregation3

 port link-type trunk

 port trunk permit vlan 1 102

 link-aggregation mode dynamic

 port m-lag group 1

#

interface Vlan-interface60

 ip address 10.60.0.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospf peer sub-address enable 10.60.0.3

 ospfv3 1 area 0.0.0.0

 port m-lag virtual-ip 10.60.0.3 255.255.255.0 active

 port m-lag ipv6 virtual-ip FE80::10 link-local

 ipv6 nd unsolicited-na-learning enable

 ipv6 address 10:60::1/64

#

interface Vlan-interface102

 ip address 10.102.0.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospf peer sub-address enable 10.102.0.3

 ospfv3 1 area 0.0.0.0

 port m-lag virtual-ip 10.102.0.3 255.255.255.0 active

 port m-lag ipv6 virtual-ip FE80::2 link-local

 mac-address 0003-0003-0003

 ipv6 address 10:102::1/64

#

interface GigabitEthernet1/0/5

 port link-mode route

 ip address 21.1.1.1 255.255.255.0

 ipv6 address 21::1/64

#

interface GigabitEthernet1/0/6

 port link-mode route

 ip address 32.1.1.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 32:1::1/64

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 102

 port link-aggregation group 3

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 60

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

 m-lag mad exclude interface GigabitEthernet1/0/5

 m-lag mad exclude interface Vlan-interface60

 m-lag mad exclude interface Vlan-interface102

 m-lag system-mac 0002-0002-0002

 m-lag system-number 1

 m-lag extra-vlan 60

 m-lag system-priority 123

 m-lag keepalive ip destination 21.1.1.2 source 21.1.1.1

#

·     Device B:

#

 sysname DeviceB

#

ospf 1 router-id 11.1.1.2

 area 0.0.0.0

#

ospfv3 1

 router-id 10.1.1.2

 area 0.0.0.0

#

vlan 60

#

vlan 102

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan all

 link-aggregation mode dynamic

 port m-lag peer-link 1

#

interface Bridge-Aggregation3

 port link-type trunk

 port trunk permit vlan 1 102

 link-aggregation mode dynamic

 port m-lag group 1

#

interface Vlan-interface60

 ip address 10.60.0.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospf peer sub-address enable 10.60.0.4

 ospfv3 1 area 0.0.0.0

 port m-lag virtual-ip 10.60.0.4 255.255.255.0 active

 port m-lag ipv6 virtual-ip FE80::12 link-local

 ipv6 nd unsolicited-na-learning enable

 ipv6 address 10:60::1/64

#

interface Vlan-interface102

 ip address 10.102.0.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospf peer sub-address enable 10.102.0.4

 ospfv3 1 area 0.0.0.0

 port m-lag virtual-ip 10.102.0.4 255.255.255.0 active

 port m-lag ipv6 virtual-ip FE80::4 link-local

 mac-address 0003-0003-0003

 ipv6 address 10:102::1/64

#

interface GigabitEthernet1/0/5

 port link-mode route

 ip address 21.1.1.2 255.255.255.0

 ipv6 address 21::2/64

#

interface GigabitEthernet1/0/6

 port link-mode route

 ip address 33.1.1.1 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 33:1::1/64

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 102

 port link-aggregation group 3

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

 m-lag mad exclude interface GigabitEthernet1/0/5

 m-lag mad exclude interface Vlan-interface60

 m-lag mad exclude interface Vlan-interface102

 m-lag system-mac 0002-0002-0002

 m-lag system-number 2

 m-lag system-priority 123

 m-lag extra-vlan 60

 m-lag keepalive ip destination 21.1.1.1 source 21.1.1.2

#

·     Device C:

#

 sysname DeviceC

#

ospf 1 router-id 11.1.1.3

 area 0.0.0.0

#

ospfv3 1

 router-id 10.1.1.3

 area 0.0.0.0

#

interface LoopBack0

 ip address 10.10.10.10 255.255.255.255

 ospfv3 1 area 0.0.0.0

 ipv6 address 10:10:10::10/128

 ospf 1 area 0.0.0.0

#

interface GigabitEthernet1/0/1

 port link-mode route

 ip address 32.1.1.2 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 32:1::2/64

#

interface GigabitEthernet1/0/2

 port link-mode route

 ip address 33.1.1.2 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 33:1::2/64

#

·     Device D:

#

 sysname DeviceD

#

ospf 1 router-id 11.1.1.4

 area 0.0.0.0

#

ospfv3 1

 router-id 10.1.1.4

 area 0.0.0.0

#

vlan 1

#

vlan 102

#

interface Bridge-Aggregation3

 port link-type trunk

 port trunk permit vlan 1 102

 link-aggregation mode dynamic

#

interface Vlan-interface102

 ip address 10.102.0.2 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 10:102::2/64

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 102

 port link-aggregation group 3

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 102

 port link-aggregation group 3

#

·     Device F:

#

 sysname DeviceF

#

ospf 1 router-id 11.1.1.6

 area 0.0.0.0

#

ospfv3 1

 router-id 10.1.1.6

 area 0.0.0.0

#

vlan 1

#

vlan 60

#

interface Vlan-interface60

 ip address 10.60.0.2 255.255.255.0

 ospf 1 area 0.0.0.0

 ospfv3 1 area 0.0.0.0

 ipv6 address 10:60::2/64

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 60

#

 

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们