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内的主机与外部网络的三层互通。
device A
# 配置DR系统参数。 system-view[DeviceA] drni system-mac 1-1-1Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y[DeviceA] drni system-number 1Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y[DeviceA] drni system-priority 123Changing 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# 配置端口Ten-GigabitEthernet1/0/5工作在三层模式,并配置IP地址为Keepalive报文的源IP地址。[DeviceA] interface ten-gigabitethernet 1/0/5[DeviceA-Ten-GigabitEthernet1/0/5] port link-mode route[DeviceA-Ten-GigabitEthernet1/0/5] ip address 1.1.1.1 24[DeviceA-Ten-GigabitEthernet1/0/5] quit# 配置Keepalive链路接口为保留接口。[DeviceA] drni mad exclude interface ten-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# 分别将端口Ten-GigabitEthernet1/0/6和Ten-GigabitEthernet1/0/7加入到聚合组1中。[DeviceA] interface ten-gigabitethernet 1/0/6[DeviceA-Ten-GigabitEthernet1/0/6] port link-aggregation group 1[DeviceA-Ten-GigabitEthernet1/0/6] quit[DeviceA] interface ten-gigabitethernet 1/0/7[DeviceA-Ten-GigabitEthernet1/0/7] port link-aggregation group 1[DeviceA-Ten-GigabitEthernet1/0/7] quit# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] port link-type trunkConfiguring Ten-GigabitEthernet1/0/6 done.Configuring Ten-GigabitEthernet1/0/7 done.[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/6 done.Configuring Ten-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 (其他品牌的peer_link)[DeviceA-Bridge-Aggregation3] quit# 分别将端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4加入到聚合组3中。[DeviceA] interface ten-gigabitethernet 1/0/3[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 3[DeviceA-Ten-GigabitEthernet1/0/3] quit[DeviceA] interface ten-gigabitethernet 1/0/4[DeviceA-Ten-GigabitEthernet1/0/4] port link-aggregation group 3[DeviceA-Ten-GigabitEthernet1/0/4] quit# 配置二层聚合接口3为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceA] interface bridge-aggregation 3[DeviceA-Bridge-Aggregation3] port link-type trunkConfiguring Ten-GigabitEthernet1/0/3 done.Configuring Ten-GigabitEthernet1/0/4 done.[DeviceA-Bridge-Aggregation3] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/3 done.Configuring Ten-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# 分别将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2加入到聚合组4中。[DeviceA] interface ten-gigabitethernet 1/0/1[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 4[DeviceA-Ten-GigabitEthernet1/0/1] quit[DeviceA] interface ten-gigabitethernet 1/0/2[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 4[DeviceA-Ten-GigabitEthernet1/0/2] quit# 配置二层聚合接口4为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceA] interface bridge-aggregation 4[DeviceA-Bridge-Aggregation4] port link-type trunkConfiguring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceA-Bridge-Aggregation4] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceA-Bridge-Aggregation4] quit device B
# 配置DR系统参数。 system-view[DeviceB] drni system-mac 1-1-1Changing the system MAC might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y[DeviceB] drni system-number 2Changing the system number might flap the intra-portal link and cause DR system setup failure. Continue? [Y/N]:y[DeviceB] drni system-priority 123Changing 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# 配置端口Ten-GigabitEthernet1/0/5工作在三层模式,并配置IP地址为Keepalive报文的源IP地址。[DeviceB] interface ten-gigabitethernet 1/0/5[DeviceB-Ten-GigabitEthernet1/0/5] port link-mode route[DeviceB-Ten-GigabitEthernet1/0/5] ip address 1.1.1.2 24[DeviceB-Ten-GigabitEthernet1/0/5] quit# 配置Keepalive链路接口为保留接口。[DeviceB] drni mad exclude interface ten-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# 分别将端口Ten-GigabitEthernet1/0/6和Ten-GigabitEthernet1/0/7加入到聚合组2中。[DeviceB] interface ten-gigabitethernet 1/0/6[DeviceB-Ten-GigabitEthernet1/0/6] port link-aggregation group 2[DeviceB-Ten-GigabitEthernet1/0/6] quit[DeviceB] interface ten-gigabitethernet 1/0/7[DeviceB-Ten-GigabitEthernet1/0/7] port link-aggregation group 2[DeviceB-Ten-GigabitEthernet1/0/7] quit# 配置二层聚合接口2为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceB] interface bridge-aggregation 2[DeviceB-Bridge-Aggregation2] port link-type trunkConfiguring Ten-GigabitEthernet1/0/6 done.Configuring Ten-GigabitEthernet1/0/7 done.[DeviceB-Bridge-Aggregation2] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/6 done.Configuring Ten-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# 分别将端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4加入到聚合组3中。[DeviceB] interface ten-gigabitethernet 1/0/3[DeviceB-Ten-GigabitEthernet1/0/3] port link-aggregation group 3[DeviceB-Ten-GigabitEthernet1/0/3] quit[DeviceB] interface ten-gigabitethernet 1/0/4[DeviceB-Ten-GigabitEthernet1/0/4] port link-aggregation group 3[DeviceB-Ten-GigabitEthernet1/0/4] quit# 配置二层聚合接口3为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceB] interface bridge-aggregation 3[DeviceB-Bridge-Aggregation3] port link-type trunkConfiguring Ten-GigabitEthernet1/0/3 done.Configuring Ten-GigabitEthernet1/0/4 done.[DeviceB-Bridge-Aggregation3] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/3 done.Configuring Ten-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# 分别将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2加入到聚合组4中。[DeviceB] interface ten-gigabitethernet 1/0/1[DeviceB-Ten-GigabitEthernet1/0/1] port link-aggregation group 4[DeviceB-Ten-GigabitEthernet1/0/1] quit[DeviceB] interface ten-gigabitethernet 1/0/2[DeviceB-Ten-GigabitEthernet1/0/2] port link-aggregation group 4[DeviceB-Ten-GigabitEthernet1/0/2] quit# 配置二层聚合接口4为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。[DeviceB] interface bridge-aggregation 4[DeviceB-Bridge-Aggregation4] port link-type trunkConfiguring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceB-Bridge-Aggregation4] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceB-Bridge-Aggregation4] quit device C
# 创建VLAN 10、20和100。 system-view[DeviceC] vlan 10[DeviceC-vlan10] quit[DeviceC] vlan 20[DeviceC-vlan20] quit[DeviceC] vlan 100# 将Ten-GigabitEthernet1/0/3加入VLAN 100。[DeviceC] vlan 100[DeviceC-vlan100] port ten-gigabitethernet 1/0/3[DeviceC-vlan100] quit# 创建二层聚合接口1,并配置该接口为动态聚合模式。[DeviceC] interface bridge-aggregation 1[DeviceC-Bridge-Aggregation1] link-aggregation mode dynamic[DeviceC-Bridge-Aggregation1] quit# 将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2加入到聚合组1中。[DeviceC] interface range ten-gigabitethernet 1/0/1 to ten-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 trunkConfiguring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceC-Bridge-Aggregation1] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/1 done.Configuring Ten-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。[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# 创建和上行端口Ten-GigabitEthernet1/0/3关联的Track项1。[DeviceC] track 1 interface ten-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 device D
# 创建VLAN 10、20和200。 system-view[DeviceD] vlan 10[DeviceD-vlan10] quit[DeviceD] vlan 20[DeviceD-vlan20] quit[DeviceD] vlan 200# 将Ten-GigabitEthernet1/0/3加入VLAN 200。[DeviceD] vlan 200[DeviceD-vlan200] port ten-gigabitethernet 1/0/3[DeviceD-vlan200] quit# 创建二层聚合接口2,并配置该接口为动态聚合模式。[DeviceD] interface bridge-aggregation 2[DeviceD-Bridge-Aggregation2] link-aggregation mode dynamic[DeviceD-Bridge-Aggregation2] quit# 将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2加入到聚合组2中。[DeviceD] interface range ten-gigabitethernet 1/0/1 to ten-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 trunkConfiguring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.[DeviceD-Bridge-Aggregation2] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/1 done.Configuring Ten-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。[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# 创建和上行端口Ten-GigabitEthernet1/0/3关联的Track项2。[DeviceD] track 2 interface ten-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 device E
# 创建VLAN 100,并将接口Ten-GigabitEthernet1/0/1加入该VLAN。 system-view[DeviceE] vlan 100[DeviceE-vlan100] port ten-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,并将接口Ten-GigabitEthernet1/0/2加入该VLAN。[DeviceE] vlan 200[DeviceE-vlan200] port ten-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,并将接口Ten-GigabitEthernet1/0/3加入该VLAN。[DeviceE] vlan 30[DeviceE-vlan30] port ten-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 100.1.1.0 0.0.0.255[DeviceE-ospf-1-area-0.0.0.0] network 200.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 device F
# 创建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# 将端口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4加入到聚合组4中。[DeviceF] interface range ten-gigabitethernet 1/0/1 to ten-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 trunkConfiguring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.Configuring Ten-GigabitEthernet1/0/3 done.Configuring Ten-GigabitEthernet1/0/4 done.[DeviceF-Bridge-Aggregation4] port trunk permit vlan 10 20Configuring Ten-GigabitEthernet1/0/1 done.Configuring Ten-GigabitEthernet1/0/2 done.Configuring Ten-GigabitEthernet1/0/3 done.Configuring Ten-GigabitEthernet1/0/4 done.[DeviceF-Bridge-Aggregation4] quit验证配置
[DeviceA] display drni summaryGlobal consistency check : SUCCESSInconsistent type 1 global settings: - IPP IPP ID StateBAGG3 1 UP DR interface DR group ID State Check result Type 1 inconsistencyBAGG4 4 UP SUCCESS -[DeviceA] display drni verboseFlags: 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/1State: UPLocal state/Peer state: ABDFG/ABDFGLocal Selected ports (index): 2, 5Peer Selected ports indexes: 2, 5 DR interface/DR group ID: BAGG4/4State: UPLocal state/Peer state: ABDFG/ABDFGLocal Selected ports (index): 16385, 16388Peer Selected ports indexes: 32769, 32772# 在Device F上分别查看聚合组的详细信息。可以看到Device F的端口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4均处于选中状态,此时Device F将Device A和Device B认为是一台设备,从而实现了跨设备的聚合。[DeviceF] display link-aggregation verboseLoadsharing Type: Shar -- Loadsharing, NonS -- Non-LoadsharingPort Status: S -- Selected, U -- Unselected, I -- IndividualPort: A -- Auto port, M -- Management port, R -- Reference portFlags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregate Interface: Bridge-Aggregation4Creation Mode: ManualAggregation Mode: DynamicLoadsharing Type: SharManagement VLANs: NoneSystem ID: 0x8000, 1eba-3c46-0300Local: Port Status Priority Index Oper-Key Flag XGE1/0/1 S 32768 1 1 {ACDEF} XGE1/0/2 S 32768 2 1 {ACDEF} XGE1/0/3 S 32768 3 1 {ACDEF} XGE1/0/4 S 32768 4 1 {ACDEF}Remote: Actor Priority Index Oper-Key SystemID Flag XGE1/0/1(R) 32768 16385 40004 0x7b , 0001-0001-0001 {ACDEF} XGE1/0/2 32768 16388 40004 0x7b , 0001-0001-0001 {ACDEF} XGE1/0/3 32768 32769 40004 0x7b , 0001-0001-0001 {ACDEF} XGE1/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 vrrpIPv4 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 vrrpIPv4 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=126Reply from 30.1.1.1: bytes=32 time=1ms TTL=126Reply from 30.1.1.1: bytes=32 time=1ms TTL=126Reply 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 | 留言与评论(共有 0 条评论) “” |