• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C数据中心交换机DRNI配置指导书-6W104

03-三级DRNI+VLAN双活网关+OSPF配置举例-6W101

本章节下载  (353.75 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Switches/00-Public/Configure/Operation_Manual/H3C_DRNI-3143/202211/1714057_30005_0.htm

03-三级DRNI+VLAN双活网关+OSPF配置举例-6W101


1 三级DRNI+VLAN双活网关+OSPF配置举例

1.1  组网需求

用户网络采用核心-汇聚-接入三层结构。为了提高网络的可靠性,核心层、汇聚层和接入层分别部署两台设备,且每一层的两台设备之间组成DR系统:

·     Device A和Device B组成DR system 1,作为接入设备,连接虚拟机VM。

·     Device C和Device D组成DR system 2,作为汇聚设备。

·     Device E和Device F组成DR system 3,作为核心设备,连接服务器Server.。

为满足虚拟机VM和服务器Server的入网需求,汇聚层的DR成员设备同时作为VM的IPv4/IPv6网关,核心层的DR成员设备同时作为Server的IPv4/IPv6网关。汇聚层DR成员设备和核心层DR成员设备之间运行OSPF,以确保路由可达。

图1-1 三级DRNI+IPv4和IPv6 VLAN双活网关+OSPF组网图

 

设备

接口

IP地址

对接设备及接口

Device A

XGE1/0/24

IPv4 220.1.1.1/24

Device B XGE2/0/24

Device B

XGE2/0/24

IPv4 220.1.1.2/24

Device A XGE1/0/24

Device C

WGE1/0/11

IPv4 220.1.1.3/24

Device D WGE2/0/11

Vlan-int10

IPv4 10.1.1.1/24

IPv6 10:1::1/64

-

Vlan-int20

IPv4 20.1.1.1/24

IPv6 20:1::1/64

Device E Vlan-int20

Device F Vlan-int20

Device D

WGE2/0/11

IPv4 220.1.1.4/24

Device C WGE1/0/11

Vlan-int10

IPv4 10.1.1.1/24

IPv6 10:1::1/64

-

Vlan-int20

IPv4 20.1.1.1/24

IPv6 20:1::1/64

Device E Vlan-int20

Device F Vlan-int20

Device E

XGE1/4/5

IPv4 220.1.1.5/24

Device F XGE2/4/5

Vlan-int20

IPv4 20.1.1.2/24

IPv6 20:1::2/64

Device C Vlan-int20

Device D Vlan-int20

Vlan-int30

IPv4 30.1.1.1/24

IPv6 30:1::1/64

Device G Vlan-int30

Device F

XGE2/4/5

IPv4 220.1.1.6/24

Device E XGE1/4/5

Vlan-int20

IPv4 20.1.1.2/24

IPv6 20:1::2/64

Device C Vlan-int20

Device D Vlan-int20

Vlan-int30

IPv4 30.1.1.1/24

IPv6 30:1::1/64

Device G Vlan-int30

 

1.2  适用设备及使用版本

说明

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

 

设备

软件版本

S6805/S6825/S6850/S9850/S9820-64H/S9820-8C

R6635版本

S6800/S6860/S6900

不支持(暂无版本支持DRNI动态路由接入功能)

S12500X-AF/S12500F-AF/S6890

R2820版本

S12500G-AF

版本验证中,请联系技术支持获取最新版本信息

S6812/S6813

版本开发中,请联系技术支持获取最新版本信息

 

1.3  配置思路

接入层设备包含Device A和Device B,汇聚层设备包含Device C和Device D,核心层设备包含Device E和Device F。

在Device C和Device D上:配置VLAN接口10的IPv4和IPv6地址,该地址作为VM的IPv4和IPv6网关地址;配置VLAN接口20的IPv4和IPv6地址,该接口作为与核心层设备的互连接口。

在Device E和Device F上:配置VLAN接口30的IPv4和IPv6地址,该地址作为Server的IPv4和IPv6网关地址;配置VLAN接口20的IPv4和IPv6地址,该接口作为与汇聚层设备的互连接口。

在Device C、Device D、Device E、Device F的VLAN接口20上分别配置DRNI虚拟IP地址,并开启OSPF使用接口的从IP地址建立邻居关系的功能。在Device C、Device D的VLAN接口10和VLAN接口20上开启OSPF/OSPFv3功能,在Device E、Device F的VLAN接口20和VLAN接口30上开启OSPF/OSPFv3功能。Device C使用VLAN接口20的DRNI虚拟IP地址与Device D、Device E、Device F建立OSPF/OSPFv3邻居;Device D、Device E、Device F同理,每台设备分别使用DRNI虚拟IP地址与其他三台设备建立OSPF/OSPFv3邻居。

1.3.1  配置概览

·     配置DRNI

·     配置双活网关

·     配置DR设备之间OSPF

1.3.2  配置DRNI

1. Device A和Device B

Device A

Device B

命令说明

注意事项

drni system-mac 2-2-2

drni system-mac 2-2-2

配置DR系统MAC地址

同一分布式聚合组中,所有DR设备的系统MAC地址必须相同

drni system-number 1

drni system-number 2

配置DR系统编号

 

同一分布式聚合组中的DR设备应配置不同的系统编号

drni system-priority 123

drni system-priority 123

配置DR系统优先级

同一分布式聚合组中,所有DR设备的系统优先级必须相同

drni standalone enable

drni standalone enable

开启DR设备独立工作模式

-

drni keepalive ip destination 220.1.1.2 source 220.1.1.1

drni keepalive ip destination 220.1.1.1 source 220.1.1.2

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

-

interface Ten-GigabitEthernet 1/0/24

interface Ten-GigabitEthernet 2/0/24

进入Keepalive链路的接口视图

-

port link-mode route

port link-mode route

配置Keepalive链路接口工作在三层模式

-

ip address 220.1.1.1 24

ip address 220.1.1.2 24

配置Keepalive链路接口的IP地址

-

quit

quit

退回系统视图

-

drni mad exclude interface Ten-GigabitEthernet 1/0/24

drni mad exclude interface Ten-GigabitEthernet 2/0/24

配置Keepalive链路接口为DRNI保留接口

-

interface bridge-aggregation 1

interface bridge-aggregation 1

创建聚合口用作IPP口

-

quit

quit

退回系统视图

-

Interface HundredGigE 1/0/28

interface HundredGigE 2/0/28

进入IPL链路物理端口视图

-

port link-aggregation group 1

port link-aggregation group 1

IPL链路物理端口加入IPL聚合组

-

quit

quit

退回系统视图

-

interface bridge-aggregation 1

interface bridge-aggregation 1

进入IPL聚合组视图

-

undo mac-address static source-check enable

undo mac-address static source-check enable

关闭报文入接口与静态MAC地址表项匹配检查功能

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置用作IPP的聚合口工作在动态聚合模式

-

port drni intra-portal-port 1

port drni intra-portal-port 1

配置聚合口1为IPP口

-

quit

quit

退回系统视图

-

interface bridge-aggregation 2

interface bridge-aggregation 2

创建连接VM的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接VM的聚合组工作在动态聚合模式

-

port drni group 2

port drni group 2

配置聚合口2加入DR组2

-

quit

quit

退回系统视图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

创建连接Device C和Device D的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接Device C和Device D的聚合组工作在动态聚合模式

-

port drni group 3

port drni group 3

配置聚合口3加入DR组3

-

quit

quit

退回系统视图

-

interface HundredGigE 1/0/27

interface HundredGigE 2/0/27

进入DR设备连接VM设备的物理端口视图

-

port link-aggregation group 2

port link-aggregation group 2

加入DR聚合组

-

quit

quit

退回系统视图

-

interface range HundredGigE 1/0/25 HundredGigE 1/0/26

interface range HundredGigE 2/0/25 HundredGigE 2/0/26

进入DR设备连接Device C和Device D设备的物理端口视图

-

port link-aggregation group 3

port link-aggregation group 3

加入DR聚合组

-

quit

quit

退回系统视图

-

link-aggregation global load-sharing algorithm 7

link-aggregation global load-sharing algorithm 7

配置全局采用的聚合负载分担HASH算法

用户可以通过display counters命令查看各个成员端口流量情况,判断链路流量是否均衡。如果流量均衡情况不理想,可以通过本命令调整聚合负载分担HASH算法尝试更理想的算法

S6812/S6813不支持此命令

 

2. Device C和Device D

Device C

Device D

命令说明

注意事项

drni system-mac 1-1-1

drni system-mac 1-1-1

配置DR系统MAC地址

同一分布式聚合组中,所有DR设备的系统MAC地址必须相同

drni system-number 1

drni system-number 2

配置DR系统编号

同一分布式聚合组中的DR设备应配置不同的系统编号

drni system-priority 124

drni system-priority 124

配置DR系统优先级

同一分布式聚合组中,所有DR设备的系统优先级必须相同

drni standalone enable

drni standalone enable

开启DR设备独立工作模式

-

drni keepalive ip destination 220.1.1.4 source 220.1.1.3

drni keepalive ip destination 220.1.1.3 source 220.1.1.4

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

-

interface Twenty-FiveGigE 1/0/11

interface Twenty-FiveGigE 2/0/11

进入Keepalive链路的接口视图

-

port link-mode route

port link-mode route

配置Keepalive链路接口工作在三层模式

-

ip address 220.1.1.3 24

ip address 220.1.1.4 24

配置Keepalive链路接口的IP地址

-

quit

quit

退回系统视图

-

drni mad exclude interface Twenty-FiveGigE 1/0/11

drni mad exclude interface Twenty-FiveGigE 2/0/11

配置Keepalive链路接口为DRNI保留接口

-

interface bridge-aggregation 1

interface bridge-aggregation 1

创建聚合口用作IPP口

-

quit

quit

退回系统视图

-

Interface HundredGigE 1/0/26

interface HundredGigE 2/0/26

进入IPL链路物理端口视图

-

port link-aggregation group 1

port link-aggregation group 1

IPL链路物理端口加入IPL聚合组

-

quit

quit

退回系统视图

-

interface bridge-aggregation 1

interface bridge-aggregation 1

进入IPL聚合组视图

-

undo mac-address static source-check enable

undo mac-address static source-check enable

关闭报文入接口与静态MAC地址表项匹配检查功能

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置用作IPP的聚合口工作在动态聚合模式

-

port drni intra-portal-port 1

port drni intra-portal-port 1

配置聚合口1为IPP口

-

quit

quit

退回系统视图

-

interface bridge-aggregation 2

interface bridge-aggregation 2

创建连接Device E和Device F的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接Device E和Device F的聚合组工作在动态聚合模式

-

port drni group 2

port drni group 2

配置聚合口3加入DR组2

-

quit

quit

退回系统视图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

创建连接Device A和Device B的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接Device A和Device B的聚合组工作在动态聚合模式

-

port drni group 3

port drni group 3

配置聚合口3加入DR组3

-

quit

quit

退回系统视图

-

interface range HundredGigE 1/0/28 HundredGigE 1/0/29

interface range HundredGigE 2/0/28 HundredGigE 2/0/29

进入DR设备连接Device E和Device F设备的物理端口视图

-

port link-aggregation group 2

port link-aggregation group 2

加入DR聚合组

-

quit

quit

退回系统视图

-

interface range HundredGigE 1/0/30 HundredGigE 1/0/31

interface range HundredGigE 2/0/30 HundredGigE 2/0/31

进入DR设备连接Device A和Device B设备的物理端口视图

-

port link-aggregation group 3

port link-aggregation group 3

加入DR聚合组

-

quit

quit

退回系统视图

-

link-aggregation global load-sharing algorithm 7

link-aggregation global load-sharing algorithm 7

配置全局采用的聚合负载分担HASH算法

用户可以通过display counters命令查看各个成员端口流量情况,判断链路流量是否均衡。如果流量均衡情况不理想,可以通过本命令调整聚合负载分担HASH算法尝试更理想的算法

S6812/S6813不支持此命令

 

3. Device E和Device F

Device E

Device F

命令说明

注意事项

drni system-mac 1-2-3

drni system-mac 1-2-3

配置DR系统MAC地址

同一分布式聚合组中,所有DR设备的系统MAC地址必须相同

drni system-number 1

drni system-number 2

配置DR系统编号

同一分布式聚合组中的DR设备应配置不同的系统编号

drni system-priority 122

drni system-priority 122

配置DR系统优先级

同一分布式聚合组中,所有DR设备的系统优先级必须相同

drni standalone enable

drni standalone enable

开启DR设备独立工作模式

-

drni keepalive ip destination 220.1.1.6 source 220.1.1.5

drni keepalive ip destination 220.1.1.5 source 220.1.1.6

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

-

interface Ten-GigabitEthernet 1/4/5

interface Ten-GigabitEthernet 2/4/5

进入Keepalive链路的接口视图

-

port link-mode route

port link-mode route

配置Keepalive链路接口工作在三层模式

-

ip address 220.1.1.5 24

ip address 220.1.1.6 24

配置Keepalive链路接口的IP地址

-

quit

quit

退回系统视图

-

drni mad exclude  interface Ten-GigabitEthernet 1/4/5

drni mad exclude interface Ten-GigabitEthernet 2/4/5

配置Keepalive链路接口为DRNI保留接口

-

interface bridge-aggregation 1

interface bridge-aggregation 1

创建聚合口用作IPP口

-

quit

quit

退回系统视图

-

Interface HundredGigE 1/1/8

interface HundredGigE 2/1/8

进入IPL链路物理端口视图

-

port link-aggregation group 1

port link-aggregation group 1

IPL链路物理端口加入IPL聚合组

-

quit

quit

退回系统视图

-

interface bridge-aggregation 1

interface bridge-aggregation 1

进入IPL聚合组视图

-

undo mac-address static source-check enable

undo mac-address static source-check enable

关闭报文入接口与静态MAC地址表项匹配检查功能

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置用作IPP的聚合口工作在动态聚合模式

-

port drni intra-portal-port 1

port drni intra-portal-port 1

配置聚合口1为IPP口

-

quit

quit

退回系统视图

-

interface bridge-aggregation 2

interface bridge-aggregation 2

创建连接Device C和Device D的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接Device C和Device D的聚合组工作在动态聚合模式

-

port drni group 2

port drni group 2

配置聚合口2加入DR组2

-

quit

quit

退回系统视图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

创建连接Device G的聚合组

-

link-aggregation mode dynamic

link-aggregation mode dynamic

配置连接Device G的聚合组工作在动态聚合模式

-

port drni group 3

port drni group 3

配置聚合口3加入DR组3

-

quit

quit

退回系统视图

-

interface range HundredGigE 1/0/4 HundredGigE 1/0/5

interface range HundredGigE 2/0/4 HundredGigE 2/0/5

进入DR设备连接Device C和Device D设备的物理端口视图

-

port link-aggregation group 2

port link-aggregation group 2

加入DR聚合组

-

quit

quit

退回系统视图

-

interface HundredGigE1/0/6

interface HundredGigE2/0/6

进入DR设备连接Device G的物理端口视图

-

port link-aggregation group 3

port link-aggregation group 3

加入DR聚合组

-

quit

quit

退回系统视图

-

link-aggregation global load-sharing algorithm 7

link-aggregation global load-sharing algorithm 7

配置全局采用的聚合负载分担HASH算法

用户可以通过display counters命令查看各个成员端口流量情况,判断链路流量是否均衡。如果流量均衡情况不理想,可以通过本命令调整聚合负载分担HASH算法尝试更理想的算法

S6812/S6813不支持此命令

 

1.3.3  配置双活网关

1. Device A和Device B

Device A

Device B

命令说明

配置目的

vlan 10

vlan 10

创建VLAN 10

-

interface bridge-aggregation 2

interface bridge-aggregation 2

进入连接VM的聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口为Trunk端口

-

port trunk permit vlan 10

port trunk permit vlan 10

允许VLAN 10的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

quit

quit

退回系统图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

进入连接Device C&D的聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口3为Trunk端口

-

port trunk permit vlan 10

port trunk permit vlan 10

允许VLAN 10的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

 

2. Device C和Device D

Device C

Device D

命令说明

配置目的

vlan 10 20

vlan 10 20

创建VLAN 10、20

-

interface bridge-aggregation 2

interface bridge-aggregation 2

进入连接Device E和Device F的聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口3为Trunk端口

-

port trunk permit vlan 20

port trunk permit vlan 20

允许VLAN 20的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

quit

quit

退回系统视图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

进入连接Device A和Device B的聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口为Trunk端口

-

port trunk permit vlan 10

port trunk permit vlan 10

允许VLAN 10的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

quit

quit

退回系统视图

-

interface vlan-interface 10

interface vlan-interface 10

创建接口Vlan-interface10

-

ip address 10.1.1.1 255.255.255.0

ip address 10.1.1.1 255.255.255.0

配置接口Vlan-interface10的IPv4地址,使其作为IPv4双活网关

-

mac-address 0010-0010-0010

mac-address 0010-0010-0010

配置接口Vlan-interface10的MAC地址

-

ipv6 address 10:1::1 64

ipv6 address 10:1::1 64

配置接口Vlan-interface10的IPv6地址,使其作为IPv6双活网关

-

quit

quit

退回系统视图

-

drni mad exclude  interface Vlan-interface10

drni mad exclude  interface Vlan-interface10

配置接口Vlan-interface10为DRNI保留接口

-

interface vlan-interface 20

interface vlan-interface 20

创建接口Vlan-interface20

-

ip address 20.1.1.1 255.255.255.0

ip address 20.1.1.1 255.255.255.0

配置接口Vlan-interface20的IPv4地址

作为与核心设备互联的接口地址

mac-address 0020-0020-0020

mac-address 0020-0020-0020

配置接口Vlan-interface20的MAC地址

-

ipv6 address 20:1::1 64

ipv6 address 20:1::1 64

配置接口Vlan-interface20的IPv6地址

作为与核心设备互联的接口地址

quit

quit

退回系统视图

-

drni mad exclude  interface Vlan-interface20

drni mad exclude  interface Vlan-interface20

配置接口Vlan-interface20为DRNI保留接口

-

 

3. Device E和Device F

Device E

Device F

命令说明

配置目的

vlan 20 30

vlan 20 30

创建VLAN 20、30

-

interface bridge-aggregation 2

interface bridge-aggregation 2

进入连接Device C和Device D的聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口为Trunk端口

-

port trunk permit vlan 20

port trunk permit vlan 20

允许VLAN 20的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

quit

quit

退回系统视图

-

interface bridge-aggregation 3

interface bridge-aggregation 3

进入连接Device G聚合组视图

-

port link-type trunk

port link-type trunk

配置二层聚合接口3为Trunk端口

-

port trunk permit vlan 30

port trunk permit vlan 30

允许VLAN 30的报文通过

-

undo port trunk permit vlan 1

undo port trunk permit vlan 1

禁止VLAN 1的报文通过

-

port lacp system-priority 101

port lacp system-priority 100

配置LACP优先级

为不同的DR设备配置不同的LACP优先级,使得脑裂时只选中高优先级成员口

quit

quit

退回系统视图

-

interface vlan-interface 30

interface vlan-interface 30

创建接口Vlan-interface30

-

ip address 30.1.1.1 255.255.255.0

ip address 30.1.1.1 255.255.255.0

配置接口Vlan-interface 30的IPv4地址

作为IPv4双活网关

mac-address 0030-0030-0030

mac-address 0030-0030-0030

配置接口Vlan-interface 30的MAC地址

-

ipv6 address 30:1::1 64

ipv6 address 30:1::1 64

配置接口Vlan-interface 30的IPv6地址

作为IPv6双活网关

quit

quit

退回系统视图

-

drni mad exclude  interface Vlan-interface30

drni mad exclude  interface Vlan-interface30

配置接口Vlan-interface30为DRNI保留接口

-

interface vlan-interface 20

interface vlan-interface 20

创建接口Vlan-interface20

-

ip address 20.1.1.2 255.255.255.0

ip address 20.1.1.2 255.255.255.0

配置接口Vlan-interface20的IPv4地址

作为与汇聚设备互联的接口地址

mac-address 0020-0020-0021

mac-address 0020-0020-0021

配置接口Vlan-interface20的MAC地址

-

ipv6 address 20:1::2 64

ipv6 address 20:1::2 64

配置接口Vlan-interface20的IPv6地址

作为与汇聚设备互联的接口地址

quit

quit

退回系统视图

-

drni mad exclude  interface Vlan-interface20

drni mad exclude  interface Vlan-interface20

配置接口Vlan-interface20为DRNI保留接口

-

 

1.3.4  配置DR设备之间OSPF

1. Device C和Device D

Device C

Device D

命令说明

配置目的

router id 3.3.3.3

router id 4.4.4.4

配置Router ID

-

ospf 1

ospf 1

配置OSPF进程

-

area 0

area 0

配置OSFP区域

-

quit

quit

退回系统视图

-

interface vlan-interface 10

interface vlan-interface 10

进入VLAN接口视图

-

ospf 1 area 0.0.0.0

ospf 1 area 0.0.0.0

在接口上使能OSPF

-

quit

quit

退回系统视图

-

interface vlan-interface 20

interface vlan-interface 20

进入VLAN接口视图

-

ospf 1 area 0.0.0.0

ospf 1 area 0.0.0.0

在接口上使能OSPF

-

quit

quit

退回系统视图

-

ospfv3 1

ospfv3 1

配置OSPFv3进程

-

router-id 3.3.3.3

router-id 4.4.4.4

配置Router ID

-

area 0

area 0

配置OSFPv3区域

-

quit

quit

退回系统视图

-

interface vlan-interface 10

interface vlan-interface 10

进入VLAN接口视图

-

ospfv3 1 area 0.0.0.0

ospfv3 1 area 0.0.0.0

在接口上使能OSPFv3

-

quit

quit

退回系统视图

-

interface vlan-interface 20

interface vlan-interface 20

进入VLAN接口视图

-

ospfv3 1 area 0.0.0.0

ospfv3 1 area 0.0.0.0

在接口上使能OSPFv3

-

port drni virtual-ip 20.1.1.103 255.255.255.0 active

port drni virtual-ip 20.1.1.104 255.255.255.0 active

配置接口的DRNI虚拟IPv4地址

用于与核心层设备和对端DR设备建立OSPF邻居

port drni ipv6 virtual-ip FE80::6 link-local

port drni ipv6 virtual-ip FE80::8 link-local

配置接口的DRNI虚拟IPv6地址

用于与核心层设备和对端DR设备建立OSPFv3邻居

ospf peer sub-address enable 20.1.1.103

ospf peer sub-address enable 20.1.1.104

开启OSPF使用接口的从IP地址建立邻居关系的功能

不同DR成员设备上的相同网关接口需要具有相同的IP地址和MAC地址,因而DR成员设备无法使用主地址与其他设备之间建立路由邻居关系,因此需要开启OSPF使用接口的从IP地址建立邻居关系的功能

 

2. Device E和Device F

Device E

Device F

命令说明

配置目的

router id 1.1.1.1

router id 2.2.2.2

配置Router ID

-

ospf 1

ospf 1

配置OSPF进程

-

area 0

area 0

配置OSFP区域

-

quit

quit

退回系统视图

-

interface vlan-interface 20

interface vlan-interface 20

进入VLAN接口视图

-

ospf 1 area 0.0.0.0

ospf 1 area 0.0.0.0

在接口上使能OSPF

-

quit

quit

退回系统视图

-

interface vlan-interface 30

interface vlan-interface 30

进入VLAN接口视图

-

ospf 1 area 0.0.0.0

ospf 1 area 0.0.0.0

在接口上使能OSPF

-

quit

quit

退回系统视图

-

ospfv3 1

ospfv3 1

配置OSPFv3进程

-

router-id 1.1.1.1

router-id 2.2.2.2

配置Router ID

-

area 0

area 0

配置OSFP区域

-

quit

quit

退回系统视图

-

interface vlan-interface 20

interface vlan-interface 20

进入VLAN接口视图

-

ospfv3 1 area 0.0.0.0

ospfv3 1 area 0.0.0.0

在接口上使能OSPFv3

-

port drni virtual-ip 20.1.1.101 255.255.255.0 active

port drni virtual-ip 20.1.1.102 255.255.255.0 active

配置接口的DRNI虚拟IPv4地址

用于与核心层设备和对端DR设备建立OSPF邻居

port drni ipv6 virtual-ip FE80::2 link-local

port drni ipv6 virtual-ip FE80::4 link-local

配置接口的DRNI虚拟IPv6地址

用于与核心层设备和对端DR设备建立OSPFv3邻居

ospf peer sub-address enable 20.1.1.101

ospf peer sub-address enable 20.1.1.102

开启OSPF使用接口的从IP地址建立邻居关系的功能

不同DR成员设备上的相同网关接口需要具有相同的IP地址和MAC地址,因而DR成员设备无法使用主地址与其他设备之间建立路由邻居关系,因此需要开启OSPF使用接口的从IP地址建立邻居关系的功能

quit

quit

退回系统视图

-

interface vlan-interface 30

interface vlan-interface 30

进入VLAN接口视图

-

ospfv3 1 area 0.0.0.0

ospfv3 1 area 0.0.0.0

在接口上使能OSPFv3

-

 

1.4  配置上行设备

Device G

命令说明

vlan 30

创建VLAN 30

quit

退回系统视图

interface bridge-aggregation 3

创建与Device E和Device F连接的聚合口,并进入聚合口视图

link-aggregation mode dynamic

配置聚合口工作在动态聚合模式

quit

退回系统视图

Interface range HundredGigE 2/0/1 HundredGigE 2/0/2

进入与Device E和Device F相连端口视图

port link-aggregation group 3

物理口加入聚合组3

quit

退回系统视图

interface bridge-aggregation 3

进入与Device E和Device F连接的聚合口视图

port link-type trunk

配置二层聚合接口为Trunk端口

port trunk permit vlan 30

允许VLAN 30的报文通过

undo port trunk permit vlan 1

不允许VLAN 1的报文通过

quit

退回系统视图

Interface HundredGigE 2/0/64

进入与Server连接的端口视图

port access vlan 30

允许VLAN 30通过

 

1.5  流量模型

1.5.1  流量模型概述

流量模型描述表格主要包含以下信息:

·     编号:即流量编号,格式为U-X-XXX。其中,U表示Underlay流量;X表示协议号,取值包括4(IPv4)和6(IPv6);XXX表示流量序号。

·     类型:即流量类型,取值包括IPv4已知单播、IPv6已知单播。

·     流量方向:即流量的发送方向,取值为南北,表示南北向流量。

·     流量路径:即流量经过的每个节点。

·     仿真方式:进行本组网测试时,采用的流量仿真方式,一般为测试仪器仿真,即采用测试仪模拟服务器发送流量。

·     流量大小:流量负载的大小,取值包括轻载(仿真流量小于1000条流)和重载(仿真流量大于1000条流)。

·     上墙/LB方式:本组网中无防火墙和LB设备,不涉及上墙和LB方式。

1.5.2  Underlay流量模型

表1-1 Underlay流量

编号

类型

流量方向

流量路径

仿真方式

流量大小

上墙/LB方式

U-4-101

IPv4已知单播

南北

VM-DR sytem 1-DR sytem 2-DR sytem 3-Server

测试仪器

轻载

不涉及

U-6-101

IPv6已知单播

南北

VM-DR sytem 1-DR sytem 2-DR sytem 3-Server

测试仪器

轻载

不涉及

 

1.6  收敛时间测试

表1-2 链路单点故障测试情况表

设备

故障类型

流量中断时间

DR

DR成员链路单点故障

不超过500ms

DR成员链路单点故障恢复

0ms

IPL链路故障

不超过500ms

IPL链路故障恢复

不超过10ms

Keepalive链路故障

0ms

Keepalive链路故障恢复

0ms

Keepalive和IPL都故障

不超过5000ms

Keepalive和IPL都故障恢复

不超过10000ms

升级操作

不超过500ms(传统方式,两台DR设备逐台升级)

扩容操作

0ms

替换操作

盒式整机替换:不超过500ms

框式:

·     整机替换:不超过1000ms

·     网板替换:0ms

·     业务板替换:不超过500ms

 

1.7  验证配置

1.7.1  DRNI系统状态正常

查看Device C和Device D之间DRNI系统状态,可以看到DR系统正常建立。下文以Device C为例,Device D与此类似。

# 显示分布式聚合系统的接口摘要信息。

[DeviceC] display drni summary

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

       C -- Configuration consistency check failed

IPP: BAGG1

IPP state (cause): UP

Keepalive link state (cause): UP

                     DR interface information

DR interface  DR group  Local state (cause)  Peer state  Remaining down time(s)

BAGG2         2         UP                   UP          -

BAGG3         3         UP                   UP          -

# 显示分布式聚合Keepalive报文的信息。

[DeviceC] display drni keepalive

Neighbor keepalive link status (cause): Up

Neighbor is alive for: 92565 s 440 ms

Keepalive packet transmission status:

  Sent: Successful

  Received: Successful

Last received keepalive packet information:

  Source IP address: 220.1.1.4

  Time: 2022/01/29 03:35:51

  Action: Accept

displaytributed relay keepalive parameters:

Destination IP address: 220.1.1.4

Source IP address: 220.1.1.3

Keepalive UDP port : 6400

Keepalive VPN name : N/A

Keepalive interval : 1000 ms

Keepalive timeout  : 5 sec

Keepalive hold time: 3 sec

# 显示分布式聚合系统信息。

[DeviceC] display drni system

                     System information

Local system number: 1                      Peer system number: 2

Local system MAC: 0001-0001-0001            Peer system MAC: 0001-0001-0001

Local system priority: 124                  Peer system priority: 124

Local bridge MAC: dcda-8037-2bc0            Peer bridge MAC: 9ce8-9573-aba2

Local effective role: Secondary             Peer effective role: Primary

Health level: 0

Standalone mode on split: Enabled

In standalone mode: No

                     System timer information

Timer                      State       Value (s)    Remaining time (s)

Auto recovery              displayabled    -            -

Restore delay              displayabled    180          -

Consistency-check delay    displayabled    90           -

Standalone delay           displayabled    0            -

Role to None delay         displayabled    60           -

# 显示分布式聚合系统的接口详细信息。

[DeviceC] display drni verbose

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

       D -- IPP_Activity, E -- DRCP_Timeout, F -- Gateway_Sync,

       G -- Port_Sync, H -- Expired

IPP/IPP ID: BAGG1/1

State: UP

Cause: -

Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG

Local Selected ports (index): HGE1/0/26 (30)

Peer Selected ports indexes: 225

DR interface/DR group ID: BAGG2/2

Local DR interface state: UP

Peer DR interface state: UP

DR group state: UP

Local DR interface down cause: -

Remaining DRNI DOWN time: -

Local DR interface LACP MAC: Config=N/A, Effective=0001-0001-0001

Peer DR interface LACP MAC: Config=N/A, Effective=0001-0001-0001

Local DR interface LACP priority: Config=32768, Effective=124

Peer DR interface LACP priority: Config=32768, Effective=124

Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG

Local Selected ports (index): HGE1/0/28 (40), HGE1/0/29 (45)

Peer Selected ports indexes: 235, 240

DR interface/DR group ID: BAGG3/3

Local DR interface state: UP

Peer DR interface state: UP

DR group state: UP

Local DR interface down cause: -

Remaining DRNI DOWN time: -

Local DR interface LACP MAC: Config=N/A, Effective=0001-0001-0001

Peer DR interface LACP MAC: Config=N/A, Effective=0001-0001-0001

Local DR interface LACP priority: Config=32768, Effective=124

Peer DR interface LACP priority: Config=32768, Effective=124

Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG

Local Selected ports (index): HGE1/0/30 (50), HGE1/0/31 (55)

Peer Selected ports indexes: 245, 250

1.7.2  路由协议正常

# 查看Device  C上OSPF邻居信息。

[DeviceC] display ospf peer

                           

         OSPF Process 1 with Router ID 3.3.3.3

               Neighbor Brief Information

                               

 Area: 0.0.0.0       

 Router ID       Address         Pri Dead-Time  State             Interface

 1.1.1.1         20.1.1.101      1   36         2-Way/ -          Vlan20

 2.2.2.2         20.1.1.102      1   32         Full/BDR          Vlan20

 4.4.4.4         20.1.1.104      1   31         Full/DR           Vlan20

# 查看Device C上OSPFv3邻居信息。

[DeviceC] display ospfv3 peer

                           

               OSPFv3 Process 1 with Router ID 3.3.3.3

                 

 Area: 0.0.0.0       

-------------------------------------------------------------------------

 Router ID       Pri State             Dead-Time InstID Interface

 1.1.1.1         1   2-Way/ -          00:00:32  0      Vlan20

 2.2.2.2         1   Full/BDR          00:00:40  0      Vlan20

 4.4.4.4         1   Full/DR           00:00:34  0      Vlan20

# 查看Device D上OSPF邻居信息。

[DeviceD] display ospf peer

                               

         OSPF Process 1 with Router ID 4.4.4.4

               Neighbor Brief Information

                 

 Area: 0.0.0.0       

 Router ID       Address         Pri Dead-Time  State             Interface

 1.1.1.1         20.1.1.101      1   36         Full/DROther      Vlan20

 2.2.2.2         20.1.1.102      1   33         Full/BDR          Vlan20

 3.3.3.3         20.1.1.103      1   33         Full/DROther      Vlan20

# 查看Device D上OSPFv3邻居信息。

[DeviceD] display ospfv3 peer

OSPFv3 Process 1 with Router ID 4.4.4.4

Area: 0.0.0.0

-------------------------------------------------------------------------

Router ID       Pri State             Dead-Time InstID Interface

1.1.1.1         1   Full/DROther      00:00:33  0      Vlan20

2.2.2.2         1   Full/BDR          00:00:32  0      Vlan20

3.3.3.3         1   Full/DROther      00:00:32  0      Vlan20

# 在Device E上查看OSPF邻居信息。

[DeviceE] displayplay ospf peer

OSPF Process 1 with Router ID 1.1.1.1

Neighbor Brief Information

Area: 0.0.0.0       

Router ID       Address         Pri Dead-Time  State             Interface

2.2.2.2         20.1.1.102      1   38         Full/BDR          Vlan20

3.3.3.3         20.1.1.103      1   38         2-Way/ -          Vlan20

4.4.4.4         20.1.1.104      1   37         Full/DR           Vlan20

# 在Device E上查看OSPFv3邻居信息。

[DeviceE] displayplay ospfv3 peer

 OSPFv3 Process 1 with Router ID 1.1.1.1

Area: 0.0.0.0

------------------------------------------------------------------------

Router ID       Pri State             Dead-Time InstID Interface

2.2.2.2         1   Full/BDR          00:00:38  0      Vlan20

3.3.3.3         1   2-Way/ -          00:00:38  0      Vlan20

4.4.4.4         1   Full/DR           00:00:32  0      Vlan20

# 在Device F上查看OSPF邻居信息。

[DeviceF] display ospf peer

OSPF Process 1 with Router ID 2.2.2.2

Neighbor Brief Information

Area: 0.0.0.0       

Router ID       Address         Pri Dead-Time  State             Interface

1.1.1.1         20.1.1.101      1   30         Full/DROther      Vlan20

3.3.3.3         20.1.1.103      1   37         Full/DROther      Vlan20

4.4.4.4         20.1.1.104      1   36         Full/DR           Vlan20

# 在Device F上查看OSPFv3邻居信息。

[DeviceF] display ospfv3 peer

OSPFv3 Process 1 with Router ID 2.2.2.2

Area: 0.0.0.0

-------------------------------------------------------------------------

Router ID       Pri State             Dead-Time InstID Interface

1.1.1.1         1   Full/DROther      00:00:38  0      Vlan20

3.3.3.3         1   Full/DROther      00:00:37  0      Vlan20

4.4.4.4         1   Full/DR           00:00:31  0      Vlan20

1.8  升级操作

1.8.1  升级前的命令行检查

升级前的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-3 升级前的命令行检查汇总表

Device E

Device F

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

1.8.2  升级操作

具体操作步骤请参考“H3C交换机DRNI升级、替换、扩容指导”。

1.8.3  升级操作中流量中断时间

采用传统升级方式,两台DR设备逐台升级:单点故障时间正切小于500ms,回切小于150ms。具体参见“1.6  收敛时间测试”。

1.8.4  升级后的命令行检查

升级后的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-4 升级后的命令行检查汇总表

Device E

Device F

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

 

1.9  扩容操作

说明

本文描述的扩容操作指新增一组Leaf设备。

 

1.9.1  扩容前的命令行检查

扩容前的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-5 扩容前的命令行检查汇总表

DR 1设备

DR 2设备

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

1.9.2  扩容操作

(1)     新增设备断开网管

(2)     升级完成相应版本

(3)     做好预配置

(4)     接入网管

(5)     控制器进行纳管

1.9.3  扩容操作中流量中断时间

具体参见“1.6  收敛时间测试”。

1.9.4  扩容后的命令行检查

扩容后的命令行检查,请参见下表中的命令行。

表1-6 扩容后的命令行检查汇总表

DR 1设备

DR 2设备

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

1.10  替换操作

1.10.1  业务板替换操作

1. 替换前的命令行检查

替换前的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-7 替换前的命令行检查汇总表

DR 1设备

DR 2设备

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

 

2. 替换操作

相关业务板上的业务及网管流量应先行切换到正常业务板上。

支持业务板热插拔或者整机断电替换,具体根据现场情况而定。

具体操作步骤请参考“H3C交换机DRNI升级、替换、扩容指导”。

3. 替换操作中流量中断时间

具体参见“1.6  收敛时间测试”。

4. 替换后的命令行检查

与替换前命令行检查相同。

1.10.2  网板替换操作

1. 替换前的命令行检查

替换前的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-8 替换前的命令行检查汇总表

DR 1设备

DR 2设备

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

 

2. 替换操作

支持网板热插拔或者整机断电替换,具体根据现场情况而定。

3. 替换操作中流量中断时间

具体参见“1.6  收敛时间测试”。

4. 替换后的命令行检查

与替换前命令行检查相同。

1.10.3  设备替换操作

1. 替换前的命令行检查

替换前的命令行检查,请参见“1.7  验证配置”和以下表格中的命令行。

表1-9 替换前的命令行检查汇总表

DR 1设备

DR 2设备

命令说明

display device

display device

用来显示分布式聚合系统的接口摘要信息

display boot-loader

display boot-loader

用来显示本次启动和下次启动所采用的启动软件包的名称

display version

display version

用来显示系统版本信息

2. 替换操作

具体操作步骤请参考“H3C交换机DRNI升级、替换、扩容指导”。

3. 替换操作中流量中断时间

具体参见“1.6  收敛时间测试”。

4. 替换后的命令行检查

与替换前命令行检查相同。

 

 

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

新华三官网
联系我们