58-DRNI典型配置举例
本章节下载: 58-DRNI典型配置举例 (647.92 KB)
本文档介绍DRNI特性的配置举例。
DRNI是一种跨设备链路聚合技术,将两台物理设备在聚合层面虚拟成一台设备来实现跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解DRNI特性。
如图1所示,Device A和Device B为接入设备,Device C和Device D为网关设备。现要求使用DRNI技术实现接入设备的冗余保护和流量负载分担功能。具体要求如下:
· 在Device A和Device B上部署DRNI,实现接入设备的冗余备份和流量负载分担。
· 分别在Device A和Device B上配置保留接口,用于DRNI主备设备间Keepalive报文的传输,检测Device A和Device B是否故障。
· 在Device C和Device D上部署VRRP,当网关设备工作正常时,区域A用户通过网关设备Device C进行数据转发;区域B用户通过网关设备Device D进行数据转发,实现流量的负载分担。
· 当Device C或者Device C的上行接口发生故障后,Device D能够迅速承担区域A内主机流量的转发任务;Device C故障恢复后,继续承担VRRP备份组1的网关功能。
· 当Device D或者Device D的上行接口发生故障后,Device C能够迅速承担区域B内主机流量的转发任务;Device D故障恢复后,继续承担VRRP备份组2的网关功能。
· 在Device C、Device D和Device E上搭建OSPF网络,Device C和Device D通过OSPF发布区域A和区域B内的主机所在网段的路由,以实现区域A和区域B内的主机与外部网络的三层互通。
图1 基于接入层的DRNI配置组网图
设备 |
接口 |
IP地址 |
设备 |
接口 |
IP地址 |
Device A |
GE1/0/5 |
1.1.1.1/24 |
Device B |
GE1/0/5 |
1.1.1.2/24 |
Device C |
Vlan-int100 |
100.1.1.1/24 |
Device D |
Vlan-int100 |
200.1.1.1/24 |
|
Vlan-int10 |
10.1.1.1/24 |
|
Vlan-int10 |
10.1.1.2/24 |
|
Vlan-int20 |
20.1.1.1/24 |
|
Vlan-int20 |
20.1.1.2/24 |
|
Virtual IP 1 |
10.1.1.100/24 |
|
Virtual IP 1 |
10.1.1.100/24 |
|
Virtual IP 2 |
20.1.1.100/24 |
|
Virtual IP 2 |
20.1.1.100/24 |
Device E |
Vlan-int100 |
100.1.1.2/24 |
|
|
|
|
Vlan-int200 |
200.1.1.2/24 |
|
|
|
|
Vlan-int30 |
30.1.1.1/24 |
|
|
|
· 分别在Device A和Device B上配置保留接口的IP地址,且保证能够三层互通,用于DRNI主备设备间Keepalive报文的传输。
· 为了让Device C和Device D分别成为VRRP备份组1和VRRP备份组2中的Master,需要在VRRP备份组1中为Device C配置较高的优先级,在VRRP备份组2中为Device D配置较高的优先级。
表1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本 |
S6525XE-HI系列 |
Release 6008及以上版本 |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx |
S5560X-HI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx |
S5500V2-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
MS4520V2-30F |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
MS4520V2-30C MS4520V2-54C |
Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
ES5500系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列 IE4320系列 |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
配置DRNI时,需要注意:
· 要求所有DR设备配置相同的系统MAC地址和系统优先级,配置不同的系统编号。
· 一台DR设备上只能配置一个IPP口。
· 建议用户将Keepalive接口配置为保留接口,避免在DRNI建立过程中被置为MAD DOWN状态,造成错误检测。
配置VRRP时,需要注意:
· VRRP备份组的虚拟IP地址不能为全零地址(0.0.0.0)、广播地址(255.255.255.255)、环回地址、非A/B/C类地址和其它非法IP地址(如0.0.0.1)。
· 建议将备份组的虚拟IP地址和备份组中设备下行接口的IP地址配置为同一网段,否则可能导致局域网内的主机无法访问外部网络。
对于S5570S-EI、S5500V3-SI、S3600V3-EI和S3600V3-SI系列交换机,将二层以太网接口切换为三层以太网接口或创建三层聚合接口时,需要先使用reserve-vlan-interface命令配置本地类型VLAN接口资源预留。关于reserve-vlan-interface命令的具体介绍,请参见相关产品的VLAN配置和VLAN命令。
# 配置DR系统参数。
<DeviceA> system-view
[DeviceA] drni system-mac 1-1-1
Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceA] drni system-number 1
Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceA] drni system-priority 123
Changing the system priority might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceA] drni keepalive ip destination 1.1.1.2 source 1.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 1.1.1.1 24
[DeviceA-GigabitEthernet1/0/5] quit
# 配置Keepalive链路接口为保留接口。
[DeviceA] drni mad exclude interface gigabitethernet 1/0/5
# 创建VLAN 10和VLAN 20。
[DeviceA] vlan 10
[DeviceA-vlan10] quit
[DeviceA] vlan 20
[DeviceA-vlan20] quit
# 创建动态二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet1/0/6和GigabitEthernet1/0/7加入到聚合组1中。
[DeviceA] interface gigabitethernet 1/0/6
[DeviceA-GigabitEthernet1/0/6] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/6] quit
[DeviceA] interface gigabitethernet 1/0/7
[DeviceA-GigabitEthernet1/0/7] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/7] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
Configuring GigabitEthernet1/0/6 done.
Configuring GigabitEthernet1/0/7 done.
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/6 done.
Configuring GigabitEthernet1/0/7 done.
[DeviceA-Bridge-Aggregation1] quit
# 创建动态二层聚合接口3,并配置该接口为IPP口。
[DeviceA] interface bridge-aggregation 3
[DeviceA-Bridge-Aggregation3] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation3] port drni intra-portal-port 1
[DeviceA-Bridge-Aggregation3] quit
# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组3中。
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 3
[DeviceA-GigabitEthernet1/0/3] quit
[DeviceA] interface gigabitethernet 1/0/4
[DeviceA-GigabitEthernet1/0/4] port link-aggregation group 3
[DeviceA-GigabitEthernet1/0/4] quit
# 配置二层聚合接口3为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceA] interface bridge-aggregation 3
[DeviceA-Bridge-Aggregation3] port link-type trunk
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceA-Bridge-Aggregation3] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceA-Bridge-Aggregation3] quit
# 创建动态二层聚合接口4,并配置该接口为DR口4。
[DeviceA] interface bridge-aggregation 4
[DeviceA-Bridge-Aggregation4] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation4] port drni group 4
[DeviceA-Bridge-Aggregation4] quit
# 分别将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组4中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 4
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 4
[DeviceA-GigabitEthernet1/0/2] quit
# 配置二层聚合接口4为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceA] interface bridge-aggregation 4
[DeviceA-Bridge-Aggregation4] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceA-Bridge-Aggregation4] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceA-Bridge-Aggregation4] quit
# 配置DR系统参数。
<DeviceB> system-view
[DeviceB] drni system-mac 1-1-1
Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceB] drni system-number 2
Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceB] drni system-priority 123
Changing the system priority might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceB] drni keepalive ip destination 1.1.1.1 source 1.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 1.1.1.2 24
[DeviceB-GigabitEthernet1/0/5] quit
# 配置Keepalive链路接口为保留接口。
[DeviceB] drni mad exclude interface gigabitethernet 1/0/5
# 创建VLAN 10和VLAN 20。
[DeviceB] vlan 10
[DeviceB-vlan10] quit
[DeviceB] vlan 20
[DeviceB-vlan20] quit
# 创建动态二层聚合接口2。
[DeviceB] interface bridge-aggregation 2
[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation2] quit
# 分别将端口GigabitEthernet1/0/6和GigabitEthernet1/0/7加入到聚合组2中。
[DeviceB] interface gigabitethernet 1/0/6
[DeviceB-GigabitEthernet1/0/6] port link-aggregation group 2
[DeviceB-GigabitEthernet1/0/6] quit
[DeviceB] interface gigabitethernet 1/0/7
[DeviceB-GigabitEthernet1/0/7] port link-aggregation group 2
[DeviceB-GigabitEthernet1/0/7] quit
# 配置二层聚合接口2为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceB] interface bridge-aggregation 2
[DeviceB-Bridge-Aggregation2] port link-type trunk
Configuring GigabitEthernet1/0/6 done.
Configuring GigabitEthernet1/0/7 done.
[DeviceB-Bridge-Aggregation2] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/6 done.
Configuring GigabitEthernet1/0/7 done.
[DeviceB-Bridge-Aggregation2] quit
# 创建动态二层聚合接口3,并配置该接口为IPP口。
[DeviceB] interface bridge-aggregation 3
[DeviceB-Bridge-Aggregation3] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation3] port drni intra-portal-port 1
[DeviceB-Bridge-Aggregation3] quit
# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组3中。
[DeviceB] interface gigabitethernet 1/0/3
[DeviceB-GigabitEthernet1/0/3] port link-aggregation group 3
[DeviceB-GigabitEthernet1/0/3] quit
[DeviceB] interface gigabitethernet 1/0/4
[DeviceB-GigabitEthernet1/0/4] port link-aggregation group 3
[DeviceB-GigabitEthernet1/0/4] quit
# 配置二层聚合接口3为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceB] interface bridge-aggregation 3
[DeviceB-Bridge-Aggregation3] port link-type trunk
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceB-Bridge-Aggregation3] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceB-Bridge-Aggregation3] quit
# 创建动态二层聚合接口4,并配置该接口为DR口4。
[DeviceB] interface bridge-aggregation 4
[DeviceB-Bridge-Aggregation4] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation4] port drni group 4
[DeviceB-Bridge-Aggregation4] quit
# 分别将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组4中。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 4
[DeviceB-GigabitEthernet1/0/1] quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-aggregation group 4
[DeviceB-GigabitEthernet1/0/2] quit
# 配置二层聚合接口4为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceB] interface bridge-aggregation 4
[DeviceB-Bridge-Aggregation4] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceB-Bridge-Aggregation4] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceB-Bridge-Aggregation4] quit
# 创建VLAN 10、20和100。
<DeviceC> system-view
[DeviceC] vlan 10
[DeviceC-vlan10] quit
[DeviceC] vlan 20
[DeviceC-vlan20] quit
[DeviceC] vlan 100
# 将GigabitEthernet1/0/3加入VLAN 100。
[DeviceC] vlan 100
[DeviceC-vlan100] port gigabitethernet 1/0/3
[DeviceC-vlan100] quit
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[DeviceC] interface bridge-aggregation 1
[DeviceC-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceC-Bridge-Aggregation1] quit
# 将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组1中。
[DeviceC] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/2
[DeviceC-if-range] port link-aggregation group 1
[DeviceC-if-range] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceC] interface bridge-aggregation 1
[DeviceC-Bridge-Aggregation1] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceC-Bridge-Aggregation1] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceC-Bridge-Aggregation1] quit
# 创建上行接口Vlan-interface100,并配置其IP地址。
[DeviceC] interface vlan-interface 100
[DeviceC-Vlan-interface100] ip address 100.1.1.1 24
[DeviceC-Vlan-interface100] quit
# 创建接口Vlan-interface10和Vlan-interface20,并配置其IP地址。
[DeviceC] interface vlan-interface 10
[DeviceC-vlan-interface10] ip address 10.1.1.1 24
[DeviceC-vlan-interface10] quit
[DeviceC] interface vlan-interface 20
[DeviceC-vlan-interface20] ip address 20.1.1.1 24
[DeviceC-vlan-interface20] quit
# 为接口Vlan-interface10创建备份组1,并配置备份组1的虚拟IP地址为10.1.1.100。
[DeviceC] interface vlan-interface 10
[DeviceC-Vlan-interface10] vrrp vrid 1 virtual-ip 10.1.1.100
# 设置Device C在备份组1中的优先级为200,以保证Device C成为Master,从而和Device C在DRNI中角色一致。
[DeviceC-Vlan-interface10] vrrp vrid 1 priority 200
[DeviceC-Vlan-interface10] quit
# 为接口Vlan-interface20创建备份组2,并配置备份组2的虚拟IP地址为20.1.1.100。
[DeviceC] interface vlan-interface 20
[DeviceC-Vlan-interface20] vrrp vrid 2 virtual-ip 20.1.1.100
[DeviceC-vlan-interface20] quit
# 设置Device C在备份组1中工作在抢占方式,配置抢占延迟时间为500厘秒。
[DeviceC] interface vlan-interface 10
[DeviceC-Vlan-interface10] vrrp vrid 1 preempt-mode delay 500
[DeviceC-Vlan-interface10] quit
# 创建和上行端口GigabitEthernet1/0/3关联的Track项1。
[DeviceC] track 1 interface gigabitethernet 1/0/3
# 配置监视Track项1,Track项的状态为Negative时,Device C在VRRP备份组1中的优先级降低的数值为150。
[DeviceC] interface vlan-interface 10
[DeviceC-Vlan-interface10] vrrp vrid 1 track 1 priority reduced 150
[DeviceC-Vlan-interface10] quit
# 配置OSPF。
[DeviceC] ospf
[DeviceC-ospf-1] area 0
[DeviceC-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[DeviceC-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceC-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[DeviceC-ospf-1-area-0.0.0.0] quit
[DeviceC-ospf-1] quit
# 创建VLAN 10、20和200。
<DeviceD> system-view
[DeviceD] vlan 10
[DeviceD-vlan10] quit
[DeviceD] vlan 20
[DeviceD-vlan20] quit
[DeviceD] vlan 200
# 将GigabitEthernet1/0/3加入VLAN 200。
[DeviceD] vlan 200
[DeviceD-vlan200] port gigabitethernet 1/0/3
[DeviceD-vlan200] quit
# 创建二层聚合接口2,并配置该接口为动态聚合模式。
[DeviceD] interface bridge-aggregation 2
[DeviceD-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceD-Bridge-Aggregation2] quit
# 将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组2中。
[DeviceD] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/2
[DeviceD-if-range] port link-aggregation group 2
[DeviceD-if-range] quit
# 配置二层聚合接口2为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceD] interface bridge-aggregation 2
[DeviceD-Bridge-Aggregation2] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceD-Bridge-Aggregation2] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceD-Bridge-Aggregation2] quit
# 创建上行接口Vlan-interface200,并配置其IP地址。
[DeviceD] interface vlan-interface 200
[DeviceD-Vlan-interface200] ip address 200.1.1.1 24
[DeviceD-Vlan-interface200] quit
# 创建接口Vlan-interface10和Vlan-interface20,并配置其IP地址。
[DeviceD] interface vlan-interface 10
[DeviceD-vlan-interface10] ip address 10.1.1.2 24
[DeviceD-vlan-interface10] quit
[DeviceD] interface vlan-interface 20
[DeviceD-vlan-interface20] ip address 20.1.1.2 24
[DeviceD-vlan-interface20] quit
# 为接口Vlan-interface10创建备份组1,并配置备份组1的虚拟IP地址为10.1.1.100。
[DeviceD] interface vlan-interface 10
[DeviceD-Vlan-interface10] vrrp vrid 1 virtual-ip 10.1.1.100
[DeviceD-vlan-interface10] quit
# 为接口Vlan-interface20创建备份组2,并配置备份组2的虚拟IP地址为20.1.1.100。
[DeviceD] interface vlan-interface 20
[DeviceD-Vlan-interface20] vrrp vrid 2 virtual-ip 20.1.1.100
# 设置Device D在备份组2中的优先级为200,以保证Device D成为Master,从而和Device D在DRNI中角色一致。
[DeviceD-Vlan-interface20] vrrp vrid 2 priority 200
# 设置Device D在备份组2中工作在抢占方式,配置抢占延迟时间为500厘秒。
[DeviceD-Vlan-interface20] vrrp vrid 2 preempt-mode delay 500
[DeviceD-Vlan-interface20] quit
# 创建和上行端口GigabitEthernet1/0/3关联的Track项2。
[DeviceD] track 2 interface gigabitethernet 1/0/3
# 配置监视Track项2,Track项的状态为Negative时,Device D在VRRP备份组2中的优先级降低的数值为150。
[DeviceD] interface vlan-interface 20
[DeviceD-Vlan-interface20] vrrp vrid 2 track 2 priority reduced 150
[DeviceD-Vlan-interface20] quit
# 配置OSPF。
[DeviceD] ospf
[DeviceD-ospf-1] area 0
[DeviceD-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] network 200.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] quit
[DeviceD-ospf-1] quit
# 创建VLAN 100,并将接口GigabitEthernet1/0/1加入该VLAN。
<DeviceE> system-view
[DeviceE] vlan 100
[DeviceE-vlan100] port gigabitethernet 1/0/1
[DeviceE-vlan100] quit
# 创建接口Vlan-interface100,并配置其IP地址。
[DeviceE] interface vlan-interface 100
[DeviceE-vlan-interface100] ip address 100.1.1.2 24
[DeviceE-vlan-interface100] quit
# 创建VLAN 200,并将接口GigabitEthernet1/0/2加入该VLAN。
[DeviceE] vlan 200
[DeviceE-vlan200] port gigabitethernet 1/0/2
[DeviceE-vlan200] quit
# 创建接口Vlan-interface200,并配置其IP地址。
[DeviceE] interface vlan-interface 200
[DeviceE-vlan-interface200] ip address 200.1.1.2 24
[DeviceE-vlan-interface200] quit
# 创建VLAN 30,并将接口GigabitEthernet1/0/3加入该VLAN。
[DeviceE] vlan 30
[DeviceE-vlan30] port gigabitethernet 1/0/3
[DeviceE-vlan30] quit
# 创建接口Vlan-interface30,并配置其IP地址。
[DeviceE] interface vlan-interface 30
[DeviceE-vlan-interface30] ip address 30.1.1.1 24
[DeviceE-vlan-interface30] quit
# 配置OSPF。
[DeviceD] ospf
[DeviceD-ospf-1] area 0
[DeviceD-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] network 200.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[DeviceD-ospf-1-area-0.0.0.0] quit
[DeviceD-ospf-1] quit
# 创建VLAN 10和VLAN 20。
[DeviceF] vlan 10
[DeviceF-vlan10] quit
[DeviceF] vlan 20
[DeviceF-vlan20] quit
# 创建动态二层聚合接口4。
[DeviceF] interface bridge-aggregation 4
[DeviceF-Bridge-Aggregation4] link-aggregation mode dynamic
[DeviceF-Bridge-Aggregation4] quit
# 将端口GigabitEthernet1/0/1~GigabitEthernet1/0/4加入到聚合组4中。
[DeviceF] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/4
[DeviceF-if-range] port link-aggregation group 4
[DeviceF-if-range] quit
# 配置二层聚合接口4为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[DeviceF] interface bridge-aggregation 4
[DeviceF-Bridge-Aggregation4] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceF-Bridge-Aggregation4] port trunk permit vlan 10 20
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceF-Bridge-Aggregation4] quit
不同版本的交换机的显示信息不同,请以设备实际情况为准。本配置举例采用Release 6615P03版本进行验证。
# 在Device A上查看DRNI的简要信息和详细信息。可以看到Device A和Device B成功组成分布式聚合系统。
[DeviceA] display drni summary
Flags: A -- Aggregate interface down, B -- No peer DR interface configured
C -- Configuration consistency check failed
IPP: BAGG3
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)
BAGG4 4 UP UP -
[DeviceA] 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: BAGG3/1
State: UP
Cause: -
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/3 (260), GE1/0/4 (261)
Peer Selected ports indexes: 260, 261
DR interface/DR group ID: BAGG4/4
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=0001-0001-0001, Effective=0001-0001-0001
Peer DR interface LACP MAC: Config=0001-0001-0001, Effective=0001-0001-0001
Local DR interface LACP priority: Config=123, Effective=123
Peer DR interface LACP priority: Config=123, Effective=123
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/1 (258), GE1/0/2 (259)
Peer Selected ports indexes: 258, 259
# 在Device F上分别查看聚合组的详细信息。可以看到Device F的端口GigabitEthernet1/0/1~GigabitEthernet1/0/4均处于选中状态,此时Device F将Device A和Device B认为是一台设备,从而实现了跨设备的聚合。
[DeviceF] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation4
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 1eba-3c46-0300
Local:
Port Status Priority Index Oper-Key Flag
GE1/0/1 S 32768 1 1 {ACDEF}
GE1/0/2 S 32768 2 1 {ACDEF}
GE1/0/3 S 32768 3 1 {ACDEF}
GE1/0/4 S 32768 4 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
GE1/0/1(R) 32768 16385 40004 0x7b , 0001-0001-0001 {ACDEF}
GE1/0/2 32768 16388 40004 0x7b , 0001-0001-0001 {ACDEF}
GE1/0/3 32768 32769 40004 0x7b , 0001-0001-0001 {ACDEF}
GE1/0/4 32768 32772 40004 0x7b , 0001-0001-0001 {ACDEF}
# 在Device C和Device D上查看VRRP备份组的信息。可以看到Device C在备份组1中为Master,Device D在备份组2中为Master,从而保证区域A的主机通过Device C与外部通信,区域B的主机通过Device D与外部通信。
[DeviceC] display vrrp
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface VRID State Running Adver Auth Virtual
Pri Timer Type IP
---------------------------------------------------------------------
Vlan10 1 Master 200 100 None 10.1.1.100
Vlan20 2 Backup 100 100 None 20.1.1.100
[DeviceD] display vrrp
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface VRID State Running Adver Auth Virtual
Pri Timer Type IP
---------------------------------------------------------------------
Vlan10 1 Backup 100 100 None 10.1.1.100
Vlan20 2 Master 200 100 None 20.1.1.100
# 查看Device E上的OSPF邻居信息,可以看到Device E与Device C和Device D分别建立OSPF邻居,从而确保了三层互通。
[DeviceE] display ospf peer
OSPF Process 1 with Router ID 200.1.1.2
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
100.1.1.1 100.1.1.1 1 35 Full/BDR Vlan100
200.1.1.1 200.1.1.1 1 33 Full/BDR Vlan200
# 在区域A的主机上ping 30.1.1.1,可以ping通。
C:\Documents and Settings\Administrator>ping 30.1.1.1
Pinging 30.1.1.1 with 32 bytes of data:
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Ping statistics for 30.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
部分交换机的配置文件中会显示port link-mode bridge命令,请以实际情况为准。
· Device A:
#
vlan 10
#
vlan 20
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
#
interface Bridge-Aggregation3
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Bridge-Aggregation4
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
port drni group 4
#
interface GigabitEthernet1/0/5
port link-mode route
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 3
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 3
#
interface GigabitEthernet1/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 1
#
interface GigabitEthernet1/0/7
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 1
#
drni system-mac 0001-0001-0001
drni system-number 1
drni system-priority 123
drni keepalive ip destination 1.1.1.2 source 1.1.1.1
#
drni mad exclude interface GigabitEthernet1/0/5
#
· Device B:
#
vlan 10
#
vlan 20
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
#
interface Bridge-Aggregation3
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Bridge-Aggregation4
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
port drni group 4
#
interface GigabitEthernet1/0/5
port link-mode route
ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 3
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 3
#
interface GigabitEthernet1/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 2
#
interface GigabitEthernet1/0/7
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 2
#
drni system-mac 0001-0001-0001
drni system-number 2
drni system-priority 123
drni keepalive ip destination 1.1.1.1 source 1.1.1.2
#
drni mad exclude interface GigabitEthernet1/0/5
#
· Device C:
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255
network 100.1.1.0 0.0.0.255
#
vlan 10
#
vlan 20
#
vlan 100
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
#
interface Vlan-interface10
ip address 10.1.1.1 255.255.255.0
vrrp vrid 1 virtual-ip 10.1.1.100
vrrp vrid 1 priority 200
vrrp vrid 1 preempt-mode delay 500
vrrp vrid 1 track 1 priority reduced 150
#
interface Vlan-interface20
ip address 20.1.1.1 255.255.255.0
vrrp vrid 2 virtual-ip 20.1.1.100
#
interface Vlan-interface100
ip address 100.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 1
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 1
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 100
#
track 1 interface GigabitEthernet1/0/3
#
· Device D:
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255
network 200.1.1.0 0.0.0.255
#
vlan 10
#
vlan 20
#
vlan 200
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
#
interface Vlan-interface10
ip address 10.1.1.2 255.255.255.0
vrrp vrid 1 virtual-ip 10.1.1.100
#
interface Vlan-interface20
ip address 20.1.1.2 255.255.255.0
vrrp vrid 2 virtual-ip 20.1.1.100
vrrp vrid 2 priority 200
vrrp vrid 2 preempt-mode delay 500
vrrp vrid 2 track 2 priority reduced 150
#
interface Vlan-interface200
ip address 200.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 2
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 2
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 200
#
track 2 interface GigabitEthernet1/0/3
#
· Device E:
#
ospf 1
area 0.0.0.0
network 30.1.1.0 0.0.0.255
network 100.1.1.0 0.0.0.255
network 200.1.1.0 0.0.0.255
#
vlan 30
#
vlan 100
#
vlan 200
#
interface Vlan-interface30
ip address 30.1.1.1 255.255.255.0
#
interface Vlan-interface100
ip address 100.1.1.2 255.255.255.0
#
interface Vlan-interface200
ip address 200.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 100
#
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 200
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 30
#
· Device F:
#
vlan 10
#
vlan 20
#
interface Bridge-Aggregation4
port link-type trunk
port trunk permit vlan 1 10 20
link-aggregation mode dynamic
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
port link-aggregation group 4
#
如图2所示,Device A和Device B为汇聚层设备,通过在Device A和Device B上部署DRNI和VRRP,可以满足以下要求:
· 当Device A侧链路发生故障时,流量可以快速切换到Device B侧链路,保证可靠性。同时为了高效利用带宽,Device A和Device B侧链路可以同时转发报文,实现负载分担。
· 在网关设备工作正常时,区域A用户通过网关设备Device A进行数据转发;区域B用户通过网关设备Device B进行数据转发,实现流量的负载分担。
· 当Device A或者Device A的上行接口发生故障后,Device B能够迅速承担区域A内主机流量的转发任务;Device A故障恢复后,继续承担VRRP备份组1的网关功能。
· 当Device B或者Device B的上行接口发生故障后,Device A能够迅速承担区域B内主机流量的转发任务;Device B故障恢复后,继续承担VRRP备份组2的网关功能。
· 在Device A、Device B和Device E上搭建OSPF,Device A和Device B通过OSPF发布区域A和区域B内的主机所在网段的路由,以实现区域A和区域B内的主机与外部网络的三层互通。
图2 基于汇聚层的DRNI配置组网图
设备 |
接口 |
IP地址 |
设备 |
接口 |
IP地址 |
Device A |
GE1/0/5 |
1.1.1.1/24 |
Device B |
GE1/0/5 |
1.1.1.2/24 |
|
Vlan-int100 |
100.1.1.1/24 |
|
Vlan-int100 |
100.1.1.2/24 |
|
Vlan-int101 |
101.1.1.1/24 |
|
Vlan-int101 |
101.1.1.2/24 |
|
Vlan-int10 |
10.1.1.1/24 |
|
Vlan-int20 |
20.1.1.1/24 |
|
Virtual IP 1 |
100.1.1.100/24 |
|
Virtual IP 1 |
100.1.1.100/24 |
|
Virtual IP 2 |
101.1.1.100/24 |
|
Virtual IP 2 |
101.1.1.100/24 |
Device E |
Vlan-int10 |
10.1.1.2/24 |
|
|
|
|
Vlan-int20 |
20.1.1.2/24 |
|
|
|
|
Vlan-int30 |
30.1.1.1/24 |
|
|
|
· 分别在Device A和Device B上配置保留接口的IP地址,且保证能够三层互通,用于DRNI主备设备间Keepalive报文的传输。
· 为了让Device A和Device B分别成为VRRP备份组1和VRRP备份组2中的Master,需要在VRRP备份组1中为Device A配置较高的优先级,在VRRP备份组2中为Device B配置较高的优先级。
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本 |
S6525XE-HI系列 |
Release 6008及以上版本 |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列 |
S5560X-HI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列 |
S5500V2-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列 |
MS4520V2-30F |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列 |
MS4520V2-30C MS4520V2-54C |
Release 65xx系列、Release 6615Pxx系列 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
ES5500系列 |
Release 63xx系列、Release 65xx系列、Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列 IE4320系列 |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
配置DRNI时,需要注意:
· 要求所有DR设备配置相同的系统MAC地址和系统优先级,配置不同的系统编号。
· 一台DR设备上只能配置一个IPP口。
· 建议用户将Keepalive接口配置为保留接口,避免在DRNI建立过程中被置为MAD DOWN状态,造成错误检测。
配置VRRP时,需要注意:
· 备份组的虚拟IP地址不能为全零地址(0.0.0.0)、广播地址(255.255.255.255)、环回地址、非A/B/C类地址和其它非法IP地址(如0.0.0.1)。
· 建议将备份组的虚拟IP地址和备份组中设备下行接口的IP地址配置为同一网段,否则可能导致局域网内的主机无法访问外部网络。
对于S5570S-EI、S5500V3-SI、S3600V3-EI和S3600V3-SI系列交换机,将二层以太网接口切换为三层以太网接口或创建三层聚合接口时,需要先使用reserve-vlan-interface命令配置本地类型VLAN接口资源预留。关于reserve-vlan-interface命令的具体介绍,请参见相关产品的VLAN配置和VLAN命令。
# 配置DR系统参数。
<DeviceA> system-view
[DeviceA] drni system-mac 1-1-1
Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceA] drni system-number 1
Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceA] drni system-priority 123
Changing the system priority might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceA] drni keepalive ip destination 1.1.1.2 source 1.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 1.1.1.1 24
[DeviceA-GigabitEthernet1/0/5] quit
# 配置Keepalive链路接口为保留接口。
[DeviceA] drni mad exclude interface gigabitethernet 1/0/5
# 创建动态二层聚合接口125,并配置该接口为IPP口。
[DeviceA] interface bridge-aggregation 125
[DeviceA-Bridge-Aggregation125] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation125] port drni intra-portal-port 1
[DeviceA-Bridge-Aggregation125] quit
# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组125中。
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 125
[DeviceA-GigabitEthernet1/0/3] quit
[DeviceA] interface gigabitethernet 1/0/4
[DeviceA-GigabitEthernet1/0/4] port link-aggregation group 125
[DeviceA-GigabitEthernet1/0/4] quit
# 创建动态二层聚合接口100,并配置该接口为DR口1。
[DeviceA] interface bridge-aggregation 100
[DeviceA-Bridge-Aggregation100] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation100] port drni group 1
[DeviceA-Bridge-Aggregation100] quit
# 将端口GigabitEthernet1/0/1加入到聚合组100中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 100
[DeviceA-GigabitEthernet1/0/1] quit
# 创建动态二层聚合接口101,并配置该接口为DR口2。
[DeviceA] interface bridge-aggregation 101
[DeviceA-Bridge-Aggregation101] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation101] port drni group 2
[DeviceA-Bridge-Aggregation101] quit
# 将端口GigabitEthernet1/0/2加入到聚合组101中。
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 101
[DeviceA-GigabitEthernet1/0/2] quit
# 创建VLAN 10、100和101。
[DeviceA] vlan 10
[DeviceA-vlan10] quit
[DeviceA] vlan 100
[DeviceA-vlan100] quit
[DeviceA] vlan 101
[DeviceA-vlan101] quit
# 将端口GigabitEthernet1/0/6加入VLAN 10。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 1/0/6
[DeviceA-vlan10] quit
# 配置二层聚合接口100为Trunk端口,并允许VLAN 100的报文通过。
[DeviceA] interface bridge-aggregation 100
[DeviceA-Bridge-Aggregation100] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
[DeviceA-Bridge-Aggregation100] port trunk permit vlan 100
Configuring GigabitEthernet1/0/1 done.
[DeviceA-Bridge-Aggregation100] quit
# 配置二层聚合接口101为Trunk端口,并允许VLAN 101的报文通过。
[DeviceA] interface bridge-aggregation 101
[DeviceA-Bridge-Aggregation101] port link-type trunk
Configuring GigabitEthernet1/0/2 done.
[DeviceA-Bridge-Aggregation101] port trunk permit vlan 101
Configuring GigabitEthernet1/0/2 done.
[DeviceA-Bridge-Aggregation101] quit
# 配置二层聚合接口125为Trunk端口,并允许VLAN 100和101的报文通过。
[DeviceA] interface bridge-aggregation 125
[DeviceA-Bridge-Aggregation125] port link-type trunk
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceA-Bridge-Aggregation125] port trunk permit vlan 100 101
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceA-Bridge-Aggregation125] quit
# 创建接口Vlan-interface10、Vlan-interface100和Vlan-interface101,并配置其IP地址。
[DeviceA] interface vlan-interface 10
[DeviceA-vlan-interface10] ip address 10.1.1.1 24
[DeviceA-vlan-interface10] quit
[DeviceA] interface vlan-interface 100
[DeviceA-vlan-interface100] ip address 100.1.1.1 24
[DeviceA-vlan-interface100] quit
[DeviceA] interface vlan-interface 101
[DeviceA-vlan-interface101] ip address 101.1.1.1 24
[DeviceA-vlan-interface101] quit
# 配置OSPF。
[DeviceA] ospf
[DeviceA-ospf-1] area 0
[DeviceA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[DeviceA-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[DeviceA-ospf-1-area-0.0.0.0] network 101.1.1.0 0.0.0.255
[DeviceA-ospf-1-area-0.0.0.0] quit
[DeviceA-ospf-1] quit
# 为接口Vlan-interface100创建备份组1,并配置备份组1的虚拟IP地址为100.1.1.100。
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] vrrp vrid 1 virtual-ip 100.1.1.100
# 设置Device A在备份组1中的优先级为200,以保证Device A成为Master,从而和Device A在DRNI中角色一致。
[DeviceA-Vlan-interface100] vrrp vrid 1 priority 200
[DeviceA-Vlan-interface100] quit
# 为接口Vlan-interface101创建备份组2,并配置备份组2的虚拟IP地址为101.1.1.100。
[DeviceA] interface vlan-interface 101
[DeviceA-Vlan-interface101] vrrp vrid 2 virtual-ip 101.1.1.100
[DeviceA-Vlan-interface101] quit
# 设置Device A在备份组1中工作在抢占方式,配置抢占延迟时间为500厘秒。
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] vrrp vrid 1 preempt-mode delay 500
[DeviceA-Vlan-interface100] quit
# 创建和上行端口GigabitEthernet1/0/6关联的Track项1。
[DeviceA] track 1 interface gigabitethernet 1/0/6
# 配置监视Track项1,Track项的状态为Negative时,Device A在VRRP备份组1中的优先级降低的数值为150。
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] vrrp vrid 1 track 1 priority reduced 150
[DeviceA-Vlan-interface100] quit
# 配置DR系统参数。
<DeviceB> system-view
[DeviceB] drni system-mac 1-1-1
Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceB] drni system-number 2
Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
[DeviceB] drni system-priority 123
Changing the system priority might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceB] drni keepalive ip destination 1.1.1.1 source 1.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 1.1.1.2 24
[DeviceB-GigabitEthernet1/0/5] quit
# 配置Keepalive链路接口为保留接口。
[DeviceB] drni mad exclude interface gigabitethernet 1/0/5
# 创建动态二层聚合接口125,并配置该接口为IPP口。
[DeviceB] interface bridge-aggregation 125
[DeviceB-Bridge-Aggregation125] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation125] port drni intra-portal-port 1
[DeviceB-Bridge-Aggregation125] quit
# 分别将端口GigabitEthernet1/0/3和GigabitEthernet1/0/4加入到聚合组125中。
[DeviceB] interface gigabitethernet 1/0/3
[DeviceB-GigabitEthernet1/0/3] port link-aggregation group 125
[DeviceB-GigabitEthernet1/0/3] quit
[DeviceB] interface gigabitethernet 1/0/4
[DeviceB-GigabitEthernet1/0/4] port link-aggregation group 125
[DeviceB-GigabitEthernet1/0/4] quit
# 创建动态二层聚合接口100,并配置该接口为DR口1。
[DeviceB] interface bridge-aggregation 100
[DeviceB-Bridge-Aggregation100] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation100] port drni group 1
[DeviceB-Bridge-Aggregation100] quit
# 将端口GigabitEthernet1/0/2加入到聚合组100中。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-aggregation group 100
[DeviceB-GigabitEthernet1/0/2] quit
# 创建动态二层聚合接口101,并配置该接口为DR口2。
[DeviceB] interface bridge-aggregation 101
[DeviceB-Bridge-Aggregation101] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation101] port drni group 2
[DeviceB-Bridge-Aggregation101] quit
# 将端口GigabitEthernet1/0/1加入到聚合组101中。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 101
[DeviceB-GigabitEthernet1/0/1] quit
# 创建VLAN 20、100和101。
[DeviceB] vlan 20
[DeviceB-vlan20] quit
[DeviceB] vlan 100
[DeviceB-vlan100] quit
[DeviceB] vlan 101
[DeviceB-vlan101] quit
# 将端口GigabitEthernet1/0/6加入VLAN 20。
[DeviceB] vlan 20
[DeviceB-vlan20] port gigabitethernet 1/0/6
[DeviceB-vlan20] quit
# 配置二层聚合接口100为Trunk端口,并允许VLAN 100的报文通过。
[DeviceB] interface bridge-aggregation 100
[DeviceB-Bridge-Aggregation100] port link-type trunk
Configuring GigabitEthernet1/0/2 done.
[DeviceB-Bridge-Aggregation100] port trunk permit vlan 100
Configuring GigabitEthernet1/0/2 done.
[DeviceB-Bridge-Aggregation100] quit
# 配置二层聚合接口101为Trunk端口,并允许VLAN 101的报文通过。
[DeviceB] interface bridge-aggregation 101
[DeviceB-Bridge-Aggregation101] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
[DeviceB-Bridge-Aggregation101] port trunk permit vlan 101
Configuring GigabitEthernet1/0/1 done.
[DeviceB-Bridge-Aggregation101] quit
# 配置二层聚合接口125为Trunk端口,并允许VLAN 100和101的报文通过。
[DeviceB] interface bridge-aggregation 125
[DeviceB-Bridge-Aggregation125] port link-type trunk
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceB-Bridge-Aggregation125] port trunk permit vlan 100 101
Configuring GigabitEthernet1/0/3 done.
Configuring GigabitEthernet1/0/4 done.
[DeviceB-Bridge-Aggregation125] quit
# 创建接口Vlan-interface20、Vlan-interface100和Vlan-interface101,并配置其IP地址。
[DeviceB] interface vlan-interface 20
[DeviceB-vlan-interface20] ip address 20.1.1.1 24
[DeviceB-vlan-interface20] quit
[DeviceB] interface vlan-interface 100
[DeviceB-vlan-interface100] ip address 100.1.1.2 24
[DeviceB-vlan-interface100] quit
[DeviceB] interface vlan-interface 101
[DeviceB-vlan-interface101] ip address 101.1.1.2 24
[DeviceB-vlan-interface101] quit
# 配置OSPF。
[DeviceB] ospf
[DeviceB-ospf-1] area 0
[DeviceB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceB-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[DeviceB-ospf-1-area-0.0.0.0] network 101.1.1.0 0.0.0.255
[DeviceB-ospf-1-area-0.0.0.0] quit
[DeviceB-ospf-1] quit
# 为接口Vlan-interface100创建备份组1,并配置备份组1的虚拟IP地址为100.1.1.100。
[DeviceB] interface vlan-interface 100
[DeviceB-Vlan-interface100] vrrp vrid 1 virtual-ip 100.1.1.100
[DeviceB-Vlan-interface100] quit
# 为接口Vlan-interface101创建备份组2,并配置备份组2的虚拟IP地址为101.1.1.100。
[DeviceB] interface vlan-interface 101
[DeviceB-Vlan-interface101] vrrp vrid 2 virtual-ip 101.1.1.100
# 设置Device B在备份组2中的优先级为200,以保证Device B成为Master,从而和Device B在DRNI中角色一致。
[DeviceA-Vlan-interface101] vrrp vrid 2 priority 200
# 设置Device B在备份组2中工作在抢占方式,配置抢占延迟时间为500厘秒。
[DeviceB-Vlan-interface101] vrrp vrid 2 preempt-mode delay 500
[DeviceB-Vlan-interface101] quit
# 创建和上行端口GigabitEthernet1/0/6关联的Track项2。
[DeviceB] track 2 interface gigabitethernet 1/0/6
# 配置监视Track项2,Track项的状态为Negative时,Device B在VRRP备份组2中的优先级降低的数值为150。
[DeviceB] interface vlan-interface 101
[DeviceB-Vlan-interface101] vrrp vrid 2 track 2 priority reduced 150
[DeviceB-Vlan-interface101] quit
# 创建VLAN 100。
[DeviceC] vlan 100
[DeviceC-vlan100] quit
# 将端口GigabitEthernet1/0/3加入VLAN 100。
[DeviceC] interface gigabitethernet 1/0/3
[DeviceC-GigabitEthernet1/0/3] port access vlan 100
[DeviceC-GigabitEthernet1/0/3] quit
# 创建二层聚合接口100,并配置该接口为动态聚合模式。
<DeviceC> system-view
[DeviceC] interface bridge-aggregation 100
[DeviceC-Bridge-Aggregation100] link-aggregation mode dynamic
[DeviceC-Bridge-Aggregation100] quit
# 分别将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组100中。
[DeviceC] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/2
[DeviceC-if-range] port link-aggregation group 100
[DeviceC-if-range] quit
# 配置二层聚合接口100为Trunk端口,并允许VLAN 100的报文通过。
[DeviceC] interface bridge-aggregation 100
[DeviceC-Bridge-Aggregation100] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceC-Bridge-Aggregation100] port trunk permit vlan 100
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceC-Bridge-Aggregation100] quit
# 创建VLAN 101。
[DeviceD] vlan 101
[DeviceD-vlan101] quit
# 将端口GigabitEthernet1/0/3加入VLAN 101。
[DeviceD] interface gigabitethernet 1/0/3
[DeviceD-GigabitEthernet1/0/3] port access vlan 101
[DeviceD-GigabitEthernet1/0/3] quit
# 创建二层聚合接口101,并配置该接口为动态聚合模式。
<DeviceD> system-view
[DeviceD] interface bridge-aggregation 101
[DeviceD-Bridge-Aggregation101] link-aggregation mode dynamic
[DeviceD-Bridge-Aggregation101] quit
# 分别将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组101中。
[DeviceD] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/2
[DeviceD-if-range] port link-aggregation group 101
[DeviceD-if-range] quit
# 配置二层聚合接口101为Trunk端口,并允许VLAN 101的报文通过。
[DeviceD] interface bridge-aggregation 101
[DeviceD-Bridge-Aggregation101] port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceD-Bridge-Aggregation101] port trunk permit vlan 101
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[DeviceD-Bridge-Aggregation101] quit
# 创建VLAN 10,并将接口GigabitEthernet1/0/1加入该VLAN。
<DeviceE> system-view
[DeviceE] vlan 10
[DeviceE-vlan10] port gigabitethernet 1/0/1
[DeviceE-vlan10] quit
# 创建接口Vlan-interface10,并配置其IP地址。
[DeviceE] interface vlan-interface 10
[DeviceE-vlan-interface10] ip address 10.1.1.2 24
[DeviceE-vlan-interface10] quit
# 创建VLAN 20,并将接口GigabitEthernet1/0/2加入该VLAN。
[DeviceE] vlan 20
[DeviceE-vlan20] port gigabitethernet 1/0/2
[DeviceE-vlan20] quit
# 创建接口Vlan-interface20,并配置其IP地址。
[DeviceE] interface vlan-interface 20
[DeviceE-vlan-interface20] ip address 20.1.1.2 24
[DeviceE-vlan-interface20] quit
# 创建VLAN 30,并将接口GigabitEthernet1/0/3加入该VLAN。
[DeviceE] vlan 30
[DeviceE-vlan30] port gigabitethernet 1/0/3
[DeviceE-vlan30] quit
# 创建接口Vlan-interface30,并配置其IP地址。
[DeviceE] interface vlan-interface 30
[DeviceE-vlan-interface30] ip address 30.1.1.1 24
[DeviceE-vlan-interface30] quit
# 配置OSPF。
[DeviceE] ospf
[DeviceE-ospf-1] area 0
[DeviceE-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[DeviceE-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[DeviceE-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[DeviceE-ospf-1-area-0.0.0.0] quit
[DeviceE-ospf-1] quit
不同版本的交换机的显示信息不同,请以设备实际情况为准。本配置举例采用Release 6615P03版本进行验证。
# 在Device A上查看DRNI的简要信息和详细信息。可以看到Device A和Device B成功组成分布式聚合系统。
[DeviceA] display drni summary
Flags: A -- Aggregate interface down, B -- No peer DR interface configured
C -- Configuration consistency check failed
IPP: BAGG125
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)
BAGG100 1 UP UP -
BAGG101 2 UP UP -
[DeviceA] 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: BAGG125/1
State: UP
Cause: -
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/3 (261), GE1/0/4 (262)
Peer Selected ports indexes: 261, 262
DR interface/DR group ID: BAGG100/1
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=0001-0001-0001, Effective=0001-0001-0001
Peer DR interface LACP MAC: Config=0001-0001-0001, Effective=0001-0001-0001
Local DR interface LACP priority: Config=123, Effective=123
Peer DR interface LACP priority: Config=123, Effective=123
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/1 (259)
Peer Selected ports indexes: 259
DR interface/DR group ID: BAGG101/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=0001-0001-0001, Effective=0001-0001-0001
Peer DR interface LACP MAC: Config=0001-0001-0001, Effective=0001-0001-0001
Local DR interface LACP priority: Config=123, Effective=123
Peer DR interface LACP priority: Config=123, Effective=123
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/2 (260)
Peer Selected ports indexes: 260
# 在Device C和Device D上分别查看二层聚合组100和二层聚合组101的详细信息。可以看到Device C和Device D的端口GigabitEthernet1/0/1、GigabitEthernet1/0/2均处于选中状态,此时Device C和Device D将DeviceA和DeviceB认为是一台设备,从而实现了跨设备的聚合。
[DeviceC] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation100
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 8e33-8e4a-0300
Local:
Port Status Priority Index Oper-Key Flag
GE1/0/1 S 32768 1 1 {ACDEF}
GE1/0/2 S 32768 2 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
GE1/0/1(R) 32768 16386 40001 0x7b , 0001-0001-0001 {ACDEF}
GE1/0/2 32768 32770 40001 0x7b , 0001-0001-0001 {ACDEF}
[DeviceD] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation101
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 8e33-9400-0400
Local:
Port Status Priority Index Oper-Key Flag
GE1/0/1 S 32768 1 1 {ACDEF}
GE1/0/2 S 32768 2 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
GE1/0/1(R) 32768 16387 40002 0x7b , 0001-0001-0001 {ACDEF}
GE1/0/2 32768 32771 40002 0x7b , 0001-0001-0001 {ACDEF}
# 在Device A和Device B上查看VRRP备份组的信息。可以看到Device A在备份组1中为Master,Device B在备份组2中为Master,从而保证区域A内的主机通过Device A与外部通信,区域B内的主机通过Device B与外部通信。
[DeviceA] display vrrp
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface VRID State Running Adver Auth Virtual
Pri Timer Type IP
---------------------------------------------------------------------
Vlan100 1 Master 200 100 None 100.1.1.100
Vlan101 2 Backup 100 100 None 101.1.1.100
[DeviceB] display vrrp
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface VRID State Running Adver Auth Virtual
Pri Timer Type IP
---------------------------------------------------------------------
Vlan100 1 Backup 100 100 None 100.1.1.100
Vlan101 2 Master 200 100 None 101.1.1.100
# 查看Device E上的OSPF邻居信息,可以看到Device E与Device A和Device B分别建立OSPF邻居,从而确保了三层互通。
[DeviceE] display ospf peer
OSPF Process 1 with Router ID 30.1.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
101.1.1.1 10.1.1.1 1 34 Full/DR Vlan10
101.1.1.2 20.1.1.1 1 36 Full/DR Vlan20
# 在区域A内的主机上使用ping命令验证区域B内的主机是否可达(主机安装的操作系统为Windows XP),可以看出区域A和区域B内的主机可以互相ping通;在区域A内的主机ping 30.1.1.1,可以ping通。以上表明通过DRNI实现三层转发。
C:\Documents and Settings\Administrator>ping 101.1.1.4
Pinging 101.1.1.4 with 32 bytes of data:
Reply from 101.1.1.4: bytes=32 time=1ms TTL=126
Reply from 101.1.1.4: bytes=32 time=1ms TTL=126
Reply from 101.1.1.4: bytes=32 time=1ms TTL=126
Reply from 101.1.1.4: bytes=32 time=1ms TTL=126
Ping statistics for 101.1.1.4:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
C:\Documents and Settings\Administrator>ping 30.1.1.1
Pinging 30.1.1.1 with 32 bytes of data:
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Reply from 30.1.1.1: bytes=32 time=1ms TTL=126
Ping statistics for 30.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
部分交换机的配置文件中会显示port link-mode bridge命令,请以实际情况为准。
· Device A:
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 100.1.1.0 0.0.0.255
network 101.1.1.0 0.0.0.255
#
vlan 10
#
vlan 100 to 101
#
interface Bridge-Aggregation100
port link-type trunk
port trunk permit vlan 1 100
link-aggregation mode dynamic
port drni group 1
#
interface Bridge-Aggregation101
port link-type trunk
port trunk permit vlan 1 101
link-aggregation mode dynamic
port drni group 2
#
interface Bridge-Aggregation125
port link-type trunk
port trunk permit vlan 1 100 to 101
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Vlan-interface10
ip address 10.1.1.1 255.255.255.0
#
interface Vlan-interface100
ip address 100.1.1.1 255.255.255.0
vrrp vrid 1 virtual-ip 100.1.1.100
vrrp vrid 1 priority 200
vrrp vrid 1 preempt-mode delay 500
vrrp vrid 1 track 1 priority reduced 150
#
interface Vlan-interface101
ip address 101.1.1.1 255.255.255.0
vrrp vrid 2 virtual-ip 101.1.1.100
#
interface GigabitEthernet1/0/5
port link-mode route
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
port link-aggregation group 100
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 101
port link-aggregation group 101
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 to 101
port link-aggregation group 125
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 to 101
port link-aggregation group 125
#
interface GigabitEthernet1/0/6
port link-mode bridge
port access vlan 10
#
drni system-mac 0001-0001-0001
drni system-number 1
drni system-priority 123
drni keepalive ip destination 1.1.1.2 source 1.1.1.1
#
drni mad exclude interface GigabitEthernet1/0/5
#
track 1 interface GigabitEthernet1/0/6
#
· Device B:
ospf 1
area 0.0.0.0
network 20.1.1.0 0.0.0.255
network 100.1.1.0 0.0.0.255
network 101.1.1.0 0.0.0.255
#
vlan 20
#
vlan 100 to 101
#
interface Bridge-Aggregation100
port link-type trunk
port trunk permit vlan 1 100
link-aggregation mode dynamic
port drni group 1
#
interface Bridge-Aggregation101
port link-type trunk
port trunk permit vlan 1 101
link-aggregation mode dynamic
port drni group 2
#
interface Bridge-Aggregation125
port link-type trunk
port trunk permit vlan 1 100 to 101
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Vlan-interface20
ip address 20.1.1.1 255.255.255.0
#
interface Vlan-interface100
ip address 100.1.1.2 255.255.255.0
vrrp vrid 1 virtual-ip 100.1.1.100
#
interface Vlan-interface101
ip address 101.1.1.2 255.255.255.0
vrrp vrid 2 virtual-ip 101.1.1.100
vrrp vrid 2 priority 200
vrrp vrid 2 preempt-mode delay 500
vrrp vrid 2 track 2 priority reduced 150
#
interface GigabitEthernet1/0/5
port link-mode route
ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 101
port link-aggregation group 101
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
port link-aggregation group 100
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 to 101
port link-aggregation group 125
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100 to 101
port link-aggregation group 125
#
interface GigabitEthernet1/0/6
port link-mode bridge
port access vlan 20
#
drni system-mac 0001-0001-0001
drni system-number 2
drni system-priority 123
drni keepalive ip destination 1.1.1.1 source 1.1.1.2
#
drni mad exclude interface GigabitEthernet1/0/5
#
track 2 interface GigabitEthernet1/0/6
#
· Device C:
#
vlan 100
#
interface Bridge-Aggregation100
port link-type trunk
port trunk permit vlan 1 100
link-aggregation mode dynamic
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
port link-aggregation group 100
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 100
port link-aggregation group 100
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 100
#
· Device D:
#
vlan 101
#
interface Bridge-Aggregation101
port link-type trunk
port trunk permit vlan 1 101
link-aggregation mode dynamic
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 101
port link-aggregation group 101
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 101
port link-aggregation group 101
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 101
#
· Device E:
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255
network 30.1.1.0 0.0.0.255
#
vlan 10
#
vlan 20
#
vlan 30
#
interface Vlan-interface10
ip address 10.1.1.2 255.255.255.0
#
interface Vlan-interface20
ip address 20.1.1.2 255.255.255.0
#
interface Vlan-interface30
ip address 30.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 20
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 30
#
如图3所示:
· Device A和Device B组成DR系统,Device D通过DR接口接入DR系统。
· Device A和Device B通过等价路由接入到上行设备Device C。
由于用户对服务器的入网需求,现需要:
· 两台DR设备Device A和Device B同时作为服务器的IPv4网关和IPv6网关。
· 如果Device A或Device B与上行设备Device C的链路故障,报文可以通过路由绕行到对端DR设备处理,不影响服务器与外部网络的通信。
图3 DRNI组网IPv4和IPv6 VLAN双活网关组网图
接口 |
IP地址 |
对接设备及接口 |
|
Device A |
GE1/0/1 |
- |
Device D: GE1/0/1 |
GE1/0/2 |
- |
Device D: GE1/0/2 |
|
GE1/0/3 |
- |
Device B: GE1/0/3 |
|
GE1/0/4 |
- |
Device B: GE1/0/4 |
|
GE1/0/5 |
IPv4:21.1.1.1 IPv6:21::1 |
Device B: GE1/0/5 |
|
GE1/0/6 |
- |
Device C: GE1/0/1 |
|
Vlan-int100 |
IPv4:100.1.1.100/24 IPv6:100::100/64 |
- |
|
Vlan-int101 |
IPv4:101.1.1.1/24 IPv6:101::1/64 |
Device B: Vlan-int101 · IPv4:101.1.1.2/24 · IPv6:101::2/64 |
|
Vlan-int32 |
IPv4:32.1.1.1/24 IPv6:32::1/64 |
Device C: Vlan-int32 · IPv4:32.1.1.2/24 · IPv6:32::2/64 |
|
Device B |
GE1/0/1 |
- |
Device D: GE1/0/3 |
GE1/0/2 |
- |
Device D: GE1/0/4 |
|
GE1/0/3 |
- |
Device A: GE1/0/3 |
|
GE1/0/4 |
- |
Device A: GE1/0/4 |
|
GE1/0/5 |
IPv4:21.1.1.2 IPv6:21::2 |
Device A: GE1/0/5 |
|
GE1/0/6 |
- |
Device C: GE1/0/6 |
|
Vlan-int100 |
IPv4:100.1.1.100/24 IPv6:100::100/64 |
- |
|
Vlan-int101 |
IPv4:101.1.1.2/24 IPv6:101::2/64 |
Device A: Vlan-int101 · IPv4:101.1.1.1/24 · IPv6:101::1/64 |
|
Vlan-int33 |
IPv4:33.1.1.1/24 IPv6:33::1/64 |
Device C: Vlan-int33 · IPv4:33.1.1.2/24 · IPv6:33::2/64 |
|
Device C |
GE1/0/1 |
- |
Device A: GE1/0/6 |
GE1/0/2 |
- |
Device B: GE1/0/6 |
|
GE1/0/3 |
- |
Network 1 |
|
Vlan-int22 |
IPv4:22.1.1.1/24 IPv6:22::1/64 |
Network 1 |
|
Vlan-int32 |
IPv4:32.1.1.2/24 IPv6:32::2/64 |
Device A: Vlan-int32 · IPv4:32.1.1.1/24 · IPv6:32::1/64 |
|
Vlan-int33 |
IPv4:33.1.1.2/24 IPv6:33::2/64 |
Device B: Vlan-int33 · IPv4:33.1.1.1/24 · IPv6:33::1/64 |
|
Device D |
GE1/0/1 |
- |
Device A: GE1/0/1 |
GE1/0/2 |
- |
Device A: GE1/0/2 |
|
GE1/0/3 |
- |
Device B: GE1/0/1 |
|
GE1/0/4 |
- |
Device B: GE1/0/2 |
· Device A和Device B配置VLAN接口100作为IPv4和IPv6的双活网关。Device A和Device B在VLAN接口100配置相同的IPv4地址和MAC地址、IPv6地址和IPv6 Link-local地址,以便IPv4和IPv6用户均可通过该网关访问外部网络。
· 配置Device A和Device B通过VLAN接口101实现三层互通。如果Device A或Device B与上行设备Device C的链路故障,报文可以通过路由绕行到对端DR设备处理。
表3 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx |
S6550XE-HI系列 |
不支持 |
S6525XE-HI系列 |
不支持 |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5500V2-EI系列 |
Release 6615Pxx系列、Release 6628Pxx |
MS4520V2-30F |
Release 6615Pxx系列、Release 6628Pxx |
MS4520V2-30C MS4520V2-54C |
Release 6615Pxx系列、Release 6628Pxx |
MS4520V2-28S MS4520V2-24TP |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx |
ES5500系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列 IE4320系列 |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
同级DRNI设备的drni system-mac应配置为相同,不同级DRNI设备的drni system-mac一定要配置为不同。
对于S5570S-EI、S5500V3-SI、S3600V3-EI和S3600V3-SI系列交换机,将二层以太网接口切换为三层以太网接口或创建三层聚合接口时,需要先使用reserve-vlan-interface命令配置本地类型VLAN接口资源预留。关于reserve-vlan-interface命令的具体介绍,请参见相关产品的VLAN配置和VLAN命令。
# 配置DRNI系统参数。
<DeviceA> system-view
[DeviceA] drni system-mac 0002-0002-0002
[DeviceA] drni system-number 1
[DeviceA] drni system-priority 123
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceA] drni 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 255.255.255.0
[DeviceA-GigabitEthernet1/0/5] ipv6 address 21::1 64
[DeviceA-GigabitEthernet1/0/5] quit
# 配置Keepalive链路接口为DRNI保留接口。
[DeviceA] drni 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配置为IPP口。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port drni intra-portal-port 1
[DeviceA-Bridge-Aggregation1] undo port trunk permit vlan 1
[DeviceA-Bridge-Aggregation1] quit
# 创建动态二层聚合接口3,并配置该接口为DR口1。
[DeviceA] interface bridge-aggregation 3
[DeviceA-Bridge-Aggregation3] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation3] port drni group 1
[DeviceA-Bridge-Aggregation3] quit
# 将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组3中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 3
[DeviceA-GigabitEthernet1/0/2] quit
# 创建VLAN 100、VLAN 101。
[DeviceA] vlan 100
[DeviceA-vlan100] quit
[DeviceA] vlan 101
[DeviceA-vlan101] quit
# 配置二层聚合接口3为Trunk端口,并允许VLAN 100的报文通过。
[DeviceA] interface bridge-aggregation 3
[DeviceA-Bridge-Aggregation3] port link-type trunk
[DeviceA-Bridge-Aggregation3] port trunk permit vlan 100
[DeviceA-Bridge-Aggregation3] undo port trunk permit vlan 1
[DeviceA-Bridge-Aggregation3] quit
# 配置接口Vlan-interface100的IPv4地址和MAC地址,使其作为IPv4双活网关,IPv4地址为100.1.1.100,MAC地址为0000-0010-0010。
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] ip address 100.1.1.100 255.255.255.0
[DeviceA-Vlan-interface100] mac-address 0000-0010-0010
# 配置接口Vlan-interface100的IPv6地址和Link-local地址,使其作为IPv6双活网关,IPv6地址为100::100,Link-local地址为FE80::80。
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] ipv6 address 100::100 64
[DeviceA-Vlan-interface100] ipv6 address FE80::80 link-local
# 配置Vlan-interface100接口为DRNI保留接口。
[DeviceA] drni mad exclude interface vlan-interface100
# 创建接口Vlan-interface101,并配置其IPv4和IPv6地址,用于DR设备间三层互通。
[DeviceA] interface vlan-interface 101
[DeviceA-Vlan-interface101] ip address 101.1.1.1 255.255.255.0
[DeviceA-Vlan-interface101] ipv6 address 101::1 64
[DeviceA-Vlan-interface101] quit
# 配置Vlan-interface101接口为DRNI保留接口。
[DeviceA] drni mad exclude interface vlan-interface101
# 配置Router ID为3.3.3.3。
[DeviceA] router id 3.3.3.3
# 配置OSPF,配置VLAN 100、VLAN 101接口使能OSPF,VLAN 100接口在OSPF中静默,实现DR设备间IPv4网络互通。
[DeviceA] ospf 1
[DeviceA-ospf-1] silent-interface vlan-interface 100
[DeviceA-ospf-1] import-route direct
[DeviceA-ospf-1] area 0
[DeviceA-ospf-1-area-0.0.0.0] quit
[DeviceA-ospf-1] quit
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] ospf 1 area 0.0.0.0
[DeviceA-Vlan-interface100] quit
[DeviceA] interface vlan-interface 101
[DeviceA-Vlan-interface101] ospf 1 area 0.0.0.0
[DeviceA-Vlan-interface101] quit
# 配置OSPFv3,配置VLAN 100、VLAN 101接口使能OSPFv3,VLAN 100接口在OSPFv3中静默,实现DR设备间IPv6网络互通。
[DeviceA] ospfv3 1
[DeviceA-ospfv3-1] silent-interface vlan-interface 100
[DeviceA-ospfv3-1] import-route direct
[DeviceA-ospfv3-1] area 0
[DeviceA-ospfv3-1-area-0.0.0.0] quit
[DeviceA-ospfv3-1] quit
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] ospfv3 1 area 0.0.0.0
[DeviceA-Vlan-interface100] quit
[DeviceA] interface vlan-interface 101
[DeviceA-Vlan-interface101] ospfv3 1 area 0.0.0.0
[DeviceA-Vlan-interface101] quit
# 创建VLAN 32,配置DR上行口GigabitEthernet1/0/6属于VLAN 32。
[DeviceA] vlan 32
[DeviceA-vlan32] quit
[DeviceA] interface gigabitethernet 1/0/6
[DeviceA-GigabitEthernet1/0/6] port link-type trunk
[DeviceA-GigabitEthernet1/0/6] port trunk permit vlan 32
[DeviceA-GigabitEthernet1/0/6] undo port trunk permit vlan 1
[DeviceA-GigabitEthernet1/0/6] quit
# 创建VLAN 32接口,配置VLAN 32接口的IPv4地址和IPv6地址,并使能该接口的OSPF和OSPFv3功能。
[DeviceA] interface vlan-interface 32
[DeviceA-Vlan-interface32] ip address 32.1.1.1 255.255.255.0
[DeviceA-Vlan-interface32] ipv6 address 32::1 64
[DeviceA-Vlan-interface32] ospf 1 area 0
[DeviceA-Vlan-interface32] ospfv3 1 area 0
[DeviceA-Vlan-interface32] quit
# 配置DRNI系统参数。
<DeviceB> system-view
[DeviceB] drni system-mac 0002-0002-0002
[DeviceB] drni system-number 2
[DeviceB] drni system-priority 123
# 配置Keepalive报文的目的IP地址和源IP地址。
[DeviceB] drni 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] drni 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配置为IPP口。
[DeviceB] interface bridge-aggregation 1
[DeviceB-Bridge-Aggregation1] port drni intra-portal-port 1
[DeviceB-Bridge-Aggregation1] undo port trunk permit vlan 1
[DeviceB-Bridge-Aggregation1] quit
# 创建动态二层聚合接口3,并配置该接口为DR口1。
[DeviceB] interface bridge-aggregation 3
[DeviceB-Bridge-Aggregation3] link-aggregation mode dynamic
[DeviceB-Bridge-Aggregation3] port drni group 1
[DeviceB-Bridge-Aggregation3] quit
# 将端口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入到聚合组3中。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceB-GigabitEthernet1/0/1] quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-aggregation group 3
[DeviceB-GigabitEthernet1/0/2] quit
# 创建VLAN 100、101。
[DeviceB] vlan 100
[DeviceB-vlan100] quit
[DeviceB] vlan 101
[DeviceB-vlan101] quit
# 配置二层聚合接口3为Trunk端口,并允许VLAN 100的报文通过。
[DeviceB] interface bridge-aggregation 3
[DeviceB-Bridge-Aggregation3] port link-type trunk
[DeviceB-Bridge-Aggregation3] port trunk permit vlan 100
[DeviceB-Bridge-Aggregation3] undo port trunk permit vlan 1
[DeviceB-Bridge-Aggregation3] quit
# 配置接口Vlan-interface100的IPv4地址和MAC地址,使其作为IPv4双活网关,IPv4地址为100.1.1.100,MAC地址为0000-0010-0010。
[DeviceB] interface vlan-interface 100
[DeviceB-Vlan-interface100] ip address 100.1.1.100 255.255.255.0
[DeviceB-Vlan-interface100] mac-address 0000-0010-0010
# 配置接口Vlan-interface100的IPv6地址和Link-local地址,使其作为IPv6双活网关,IPv6地址为100::100,Link-local地址为FE80::80。
[DeviceB] interface vlan-interface 100
[DeviceB-Vlan-interface100] ipv6 address 100::100 64
[DeviceB-Vlan-interface100] ipv6 address FE80::80 link-local
# 配置Vlan-interface100接口为DRNI保留接口。
[DeviceB] drni mad exclude interface vlan-interface100
# 创建接口Vlan-interface101,并配置其IPv4和IPv6地址,用于DR设备间三层互通。
[DeviceB] interface vlan-interface 101
[DeviceB-vlan-interface101] ip address 101.1.1.2 24
[DeviceB-vlan-interface101] ipv6 address 101::2 64
[DeviceB-vlan-interface101] quit
# 配置Vlan-interface101接口为DRNI保留接口。
[DeviceB] drni mad exclude interface vlan-interface101
# 配置Router ID为4.4.4.4。
[DeviceB] router id 4.4.4.4
# 配置OSPF,配置VLAN 100、VLAN 101接口使能OSPF,VLAN 100接口在OSPF中静默,实现DR设备间IPv4网络互通。
[DeviceB] ospf 1
[DeviceB-ospf-1] silent-interface vlan-interface100
[DeviceB-ospf-1] import-route direct
[DeviceB-ospf-1] area 0
[DeviceB-ospf-1-area-0.0.0.0] quit
[DeviceB-ospf-1] quit
[DeviceB] interface vlan-interface 100
[DeviceB-Vlan-interface100] ospf 1 area 0.0.0.0
[DeviceB-Vlan-interface100] quit
[DeviceB] interface vlan-interface 101
[DeviceB-Vlan-interface101] ospf 1 area 0.0.0.0
[DeviceB-Vlan-interface101] quit
# 配置OSPFv3,配置VLAN 100、VLAN 101接口使能OSPFv3,VLAN 100接口在OSPFv3中静默,实现DR设备间IPv6网络互通。
[DeviceB] ospfv3 1
[DeviceB-ospf-1] silent-interface vlan-interface100
[DeviceB-ospfv3-1] import-route direct
[DeviceB-ospfv3-1] area 0
[DeviceB-ospfv3-1-area-0.0.0.0] quit
[DeviceB-ospfv3-1] quit
[DeviceB] interface vlan-interface 100
[DeviceB-vlan-interface100] ospfv3 1 area 0
[DeviceB-vlan-interface100] quit
[DeviceB] interface vlan-interface 101
[DeviceB-vlan-interface101] ospfv3 1 area 0
[DeviceB-vlan-interface101] quit
# 创建VLAN 33,配置DR上行口GigabitEthernet1/0/6属于VLAN 33。
[DeviceB] vlan 33
[DeviceB-vlan33] quit
[DeviceB] interface gigabitethernet 1/0/6
[DeviceB-GigabitEthernet1/0/6] port link-type trunk
[DeviceB-GigabitEthernet1/0/6] port trunk permit vlan 33
[DeviceB-GigabitEthernet1/0/6] undo port trunk permit vlan 1
[DeviceB-GigabitEthernet1/0/6] quit
# 创建VLAN 33接口,配置VLAN 33接口的IPv4地址和IPv6地址,并使能该接口的OSPF和OSPFv3功能。
[DeviceB] interface vlan-interface 33
[DeviceB-Vlan-interface33] ip address 33.1.1.1 255.255.255.0
[DeviceB-Vlan-interface33] ipv6 address 33::1 64
[DeviceB-Vlan-interface33] ospf 1 area 0
[DeviceB-Vlan-interface33] ospfv3 1 area 0
[DeviceB-Vlan-interface33] quit
# 创建VLAN 32,将Device C连接Device A的接口GigabitEthernet1/0/1加入VLAN 32,并配置VLAN接口32的IPv4地址和IPv6地址。
<DeviceC> system-view
[DeviceC] vlan 32
[DeviceC-vlan32] quit
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 32
[DeviceC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[DeviceC-GigabitEthernet1/0/] quit
[DeviceC] interface vlan-interface 32
[DeviceC-Vlan-interface32] ip address 32.1.1.2 24
[DeviceC-Vlan-interface32] ipv6 address 32::2 64
[DeviceC-Vlan-interface32] quit
# 创建VLAN 33,将Device C连接Device B的接口GigabitEthernet1/0/2加入VLAN 33,并配置VLAN接口33的IPv4地址和IPv6地址。
[DeviceC] vlan 33
[DeviceC-vlan33] quit
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] port link-type trunk
[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 33
[DeviceC-GigabitEthernet1/0/2] undo port trunk permit vlan 1
[DeviceC-GigabitEthernet1/0/2] quit
[DeviceC] interface vlan-interface 33
[DeviceC-Vlan-interface33] ip address 33.1.1.2 24
[DeviceC-Vlan-interface33] ipv6 address 33::2 64
[DeviceC-Vlan-interface33] quit
# 配置Router ID为5.5.5.5。
[DeviceC] router id 5.5.5.5
# 配置VLAN 32接口和VLAN 33接口使能OSPF功能。
[DeviceC] ospf 1
[DeviceC-ospf-1] import-route direct
[DeviceC-ospf-1] area 0
[DeviceC-ospf-1-area-0.0.0.0] quit
[DeviceC-ospf-1] quit
[DeviceC] interface vlan-interface 32
[DeviceC-Vlan-interface32] ospf 1 area 0
[DeviceC-Vlan-interface32] quit
[DeviceC] interface vlan-interface 33
[DeviceC-Vlan-interface33] ospf 1 area 0
[DeviceC-Vlan-interface33] quit
# 配置VLAN 32接口和VLAN 33接口使能OSPFv3功能。
[DeviceC] ospfv3 1
[DeviceC-ospfv3-1] import-route direct
[DeviceC-ospfv3-1] area 0
[DeviceC-ospfv3-1-area-0.0.0.0] quit
[DeviceC-ospfv3-1] quit
[DeviceC] interface vlan-interface 32
[DeviceC-Vlan-interface32] ospfv3 1 area 0
[DeviceC-Vlan-interface32] quit
[DeviceC] interface vlan-interface 33
[DeviceC-Vlan-interface33] ospfv3 1 area 0
[DeviceC-Vlan-interface33] quit
# 创建VLAN 22,配置与Network1网络连接的接口GigabitEthernet1/0/3加入VLAN 22,并配置VLAN 22接口的IPv4地址和IPv6地址。
[DeviceC] vlan 22
[DeviceC-vlan22] quit
[DeviceC] interface gigabitethernet 1/0/3
[DeviceC-GigabitEthernet1/0/3] port link-type trunk
[DeviceC-GigabitEthernet1/0/3] port trunk permit vlan 22
[DeviceC-GigabitEthernet1/0/3] undo port trunk permit vlan 1
[DeviceC-GigabitEthernet1/0/3] quit
[DeviceC] interface vlan-interface 22
[DeviceC-Vlan-interface22] ip address 22.1.1.1 24
[DeviceC-Vlan-interface22] ipv6 address 22::1 64
[DeviceC-Vlan-interface22] quit
# 创建二层聚合接口3,并配置该接口为动态聚合模式。
<DeviceD> system-view
[DeviceD] interface bridge-aggregation 3
[DeviceD-Bridge-Aggregation3] link-aggregation mode dynamic
[DeviceD-Bridge-Aggregation3] quit
# 将端口GigabitEthernet 1/0/1~GigabitEthernet 1/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
# 创建VLAN 100。
[DeviceD] vlan 100
[DeviceD-vlan100] quit
# 配置二层聚合接口3为Trunk端口,并允许VLAN 100的报文通过。
[DeviceD] interface bridge-aggregation 3
[DeviceD-Bridge-Aggregation3] port link-type trunk
[DeviceD-Bridge-Aggregation3] port trunk permit vlan 100
[DeviceD-Bridge-Aggregation3] undo port trunk permit vlan 1
[DeviceD-Bridge-Aggregation3] quit
查看DeviceA和Device B之间DRNI系统状态,DRNI正常建立。以DeviceA为例:
# 显示分布式聚合系统的接口摘要信息。
[DeviceA] 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)
BAGG3 1 UP UP -
# 显示分布式聚合Keepalive报文的信息。
[DeviceA] display drni keepalive
Neighbor keepalive link status: Up
Neighbor is alive for: 64765 s 28 ms
Keepalive packet transmission status:
Sent: Successful
Received: Successful
Last received keepalive packet information:
Source IP address: 21.1.1.2
Time: 2021/01/17 17:10:52
Action: Accept
Distributed relay keepalive parameters:
Destination IP address: 21.1.1.2
Source IP address: 21.1.1.1
Keepalive UDP port : 6400
Keepalive VPN name : N/A
Keepalive interval : 1000 ms
Keepalive timeout : 5 sec
Keepalive hold time: 3 sec
# 显示分布式聚合系统信息。
<Sysname> display drni system
System information
Local system number: 1 Peer system number: 2
Local system MAC: 0002-0002-0002 Peer system MAC: 0002-0002-0002
Local system priority: 123 Peer system priority: 123
Local bridge MAC: 3cd4-3ce1-0200 Peer bridge MAC: 3cd4-437d-0300
Local effective role: Primary Peer effective role: Secondary
Health level: 0
Standalone mode on split: Disabled
In standalone mode: No
System timer information
Timer State Value (s) Remaining time (s)
Auto recovery Disabled - -
Restore delay Disabled 30 -
Consistency-check delay Disabled 15 -
Standalone delay Disabled - -
Role to None delay Disabled 60 -
# 显示分布式聚合系统的接口详细信息。
[DeviceA] 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): GE1/0/3 (27), GE1/0/4 (32)
Peer Selected ports indexes: 125, 130
DR interface/DR group ID: BAGG3/1
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=0002-0002-0002
Peer DR interface LACP MAC: Config=N/A, Effective=0002-0002-0002
Local DR interface LACP priority: Config=32768, Effective=123
Peer DR interface LACP priority: Config=32768, Effective=123
Local DRCP flags/Peer DRCP flags: ABDFG/ABDFG
Local Selected ports (index): GE1/0/1 (12), GE1/0/2 (13)
Peer Selected ports indexes: 56, 57
# 查看Device A上OSPF邻居信息。
[DeviceA] 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
4.4.4.4 101.1.1.2 1 36 Full/DR Vlan101
5.5.5.5 32.1.1.2 1 38 Full/DR Vlan32
# 查看Device A上OSPFv3邻居信息。
[DeviceA] 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
4.4.4.4 1 Full/DR 00:00:36 0 Vlan101
5.5.5.5 1 Full/DR 00:00:35 0 Vlan32
# 查看Device B上OSPF邻居信息。
[DeviceB] 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
3.3.3.3 101.1.1.1 1 32 Full/BDR Vlan101
5.5.5.5 33.1.1.2 1 33 Full/DR Vlan33
# 查看Device B上OSPFv3邻居信息。
[DeviceB] 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
3.3.3.3 1 Full/BDR 00:00:35 0 Vlan101
5.5.5.5 1 Full/DR 00:00:38 0 Vlan33
# 在Device C上查看OSPF邻居信息。
[DeviceC] display ospf peer
OSPF Process 1 with Router ID 5.5.5.5
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
3.3.3.3 32.1.1.1 1 32 Full/DR Vlan32
4.4.4.4 33.1.1.1 1 38 Full/DR Vlan33
# 在Device C上查看OSPFv3邻居信息。
[DeviceC] display ospfv3 peer
OSPFv3 Process 1 with Router ID 5.5.5.5
Area: 0.0.0.0
-------------------------------------------------------------------------
Router ID Pri State Dead-Time InstID Interface
3.3.3.3 1 Full/DR 00:00:37 0 Vlan32
4.4.4.4 1 Full/DR 00:00:34 0 Vlan33
Server 1和Server 2可以与Network 1 IPv4、IPv6互通。
断开Device A连接Device C的接口,Server 1和Server 2仍然可以与Network 1通信(流量切换过程中有短暂丢包)。
· Device A:
#
router id 3.3.3.3
#
ospf 1
import-route direct
silent-interface Vlan-interface100
area 0.0.0.0
#
ospfv3 1
import-route direct
silent-interface Vlan-interface100
area 0.0.0.0
#
vlan 1
#
vlan 32
#
vlan 100 to 101
#
interface Bridge-Aggregation1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Bridge-Aggregation3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
link-aggregation mode dynamic
port drni group 1
#
interface Vlan-interface32
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/64
#
interface Vlan-interface100
ip address 100.1.1.100 255.255.255.0
ospf 1 area 0.0.0.0
ospfv3 1 area 0.0.0.0
mac-address 0000-0010-0010
ipv6 address FE80::80 link-local
ipv6 address 100::100/64
#
interface Vlan-interface101
ip address 101.1.1.1 255.255.255.0
ospf 1 area 0.0.0.0
ospfv3 1 area 0.0.0.0
ipv6 address 101::1/64
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
combo enable fiber
port link-aggregation group 3
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
combo enable fiber
port link-aggregation group 3
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
port link-aggregation group 1
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
port link-aggregation group 1
#
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 bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 32
#
drni system-mac 0002-0002-0002
drni system-number 1
drni system-priority 123
drni keepalive ip destination 21.1.1.2 source 21.1.1.1
drni mad exclude interface GigabitEthernet1/0/5
drni mad exclude interface Vlan-interface100
drni mad exclude interface Vlan-interface101
#
· Device B:
#
router id 4.4.4.4
#
ospf 1
import-route direct
silent-interface Vlan-interface100
area 0.0.0.0
#
ospfv3 1
import-route direct
silent-interface Vlan-interface100
area 0.0.0.0
#
vlan 1
#
vlan 33
#
vlan 100 to 101
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
port drni intra-portal-port 1
#
interface Bridge-Aggregation3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
link-aggregation mode dynamic
port drni group 1
#
interface Vlan-interface33
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/64
#
interface Vlan-interface100
ip address 100.1.1.100 255.255.255.0
ospf 1 area 0.0.0.0
ospfv3 1 area 0.0.0.0
mac-address 0000-0010-0010
ipv6 address FE80::80 link-local
ipv6 address 100::100/64
#
interface Vlan-interface101
ip address 101.1.1.2 255.255.255.0
ospf 1 area 0.0.0.0
ospfv3 1 area 0.0.0.0
ipv6 address 101::2/64
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
combo enable fiber
port link-aggregation group 3
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
combo enable fiber
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
#
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 bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 33
#
drni system-mac 0002-0002-0002
drni system-number 2
drni system-priority 123
drni keepalive ip destination 21.1.1.1 source 21.1.1.2
drni mad exclude interface GigabitEthernet1/0/5
drni mad exclude interface Vlan-interface100
drni mad exclude interface Vlan-interface101
#
· Device C:
#
router id 5.5.5.5
#
ospf 1
import-route direct
area 0.0.0.0
#
ospfv3 1
import-route direct
area 0.0.0.0
#
vlan 1
#
vlan 22
#
vlan 32 to 33
#
interface Vlan-interface22
ip address 22.1.1.1 255.255.255.0
ipv6 address 22::1/64
#
interface Vlan-interface32
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::2/64
#
interface Vlan-interface33
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::2/64
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 32
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 33
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 22
#
· Device D:
#
vlan 1
#
vlan 100
#
interface Bridge-Aggregation3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
link-aggregation mode dynamic
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port link-aggregation group 3
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port link-aggregation group 3
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port link-aggregation group 3
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port link-aggregation group 3
#
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!