This is an article that was created 1337 days ago, and the information may have evolved or changed.
实验说明:
设备互联线路,IP 地址、路由协议、可靠性等配置自定义
实验效果:
PC_1 网段流量经R1出互联网
PC_2 网段流量经R2出互联网
当任意互联网线路故障后,全部流量走另一线路出互联网
解决思路:
设备互联,IP地址规划如图
Core_SW1、Core_SW2 做堆叠,F1/0/53 to F1/0/54堆叠口,Ten 1/0/50为 BFD 检测线
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<Core_SW1>dis irf MemberID Role Priority CPU-Mac Description *+1 Master 15 72f0-e201-0504 --- 2 Standby 10 72f0-e6bc-0604 --- -------------------------------------------------- * indicates the device is the master. + indicates the device through which the user logs in. <Core_SW1>dis irf topology Topology Info ------------------------------------------------------------------------- IRF-Port1 IRF-Port2 MemberID Link neighbor Link neighbor Belong To 1 DIS --- UP 2 72f0-e201-0504 2 UP 1 DIS --- 72f0-e201-0504
<Core_SW1>dis link-aggregation summary Aggregation Interface Type: BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle Aggregation Mode: S -- Static, D -- Dynamic Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Actor System ID: 0x8000, 72f0-e201-0500
AGG AGG Partner ID Selected Unselected Individual Share Interface Mode Ports Ports Ports Type -------------------------------------------------------------------------------- BAGG3 S None 2 0 0 Shar RAGG1 S None 2 0 0 Shar RAGG2 S None 2 0 0 Shar <Core_SW1>dis ip int b *down: administratively down (s): spoofing (l): loopback Interface Physical Protocol IP Address Description GE1/0/1 up up -- -- GE1/0/2 up up -- -- GE2/0/1 up up -- -- GE2/0/2 up up -- -- MGE0/0/0 down down -- -- RAGG1 up up 10.1.1.1 -- RAGG2 up up 10.1.1.5 -- Vlan10 up up 192.168.10.254 -- Vlan20 up up 192.168.20.254 --
<R1>dis link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port: A -- Auto Port Status: S -- Selected, U -- Unselected, I -- Individual Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1 Aggregation Mode: Static Loadsharing Type: Shar Port Status Priority Oper-Key -------------------------------------------------------------------------------- GE0/1 S 32768 1 GE0/2 S 32768 1 <R1>dis ip int b *down: administratively down (s): spoofing (l): loopback Interface Physical Protocol IP Address Description GE0/0 up up 101.1.1.1 -- GE0/1 up up -- -- GE0/2 up up -- -- GE5/0 down down -- -- GE5/1 down down -- -- GE6/0 down down -- -- GE6/1 down down -- -- RAGG1 up up 10.1.1.2 -- Ser1/0 down down -- -- Ser2/0 down down -- -- Ser3/0 down down -- -- Ser4/0 down down -- --
<R2>dis link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port: A -- Auto Port Status: S -- Selected, U -- Unselected, I -- Individual Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1 Aggregation Mode: Static Loadsharing Type: Shar Port Status Priority Oper-Key -------------------------------------------------------------------------------- GE0/1 S 32768 1 GE0/2 S 32768 1 <R2>dis ip int b *down: administratively down (s): spoofing (l): loopback Interface Physical Protocol IP Address Description GE0/0 up up 201.1.1.1 -- GE0/1 up up -- -- GE0/2 up up -- -- GE5/0 down down -- -- GE5/1 down down -- -- GE6/0 down down -- -- GE6/1 down down -- -- RAGG1 up up 10.1.1.6 -- Ser1/0 down down -- -- Ser2/0 down down -- -- Ser3/0 down down -- -- Ser4/0 down down -- --
核心交换机 Core_SW 与 SW3 之间启用二层聚合链路
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<SW3>dis link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port: A -- Auto Port Status: S -- Selected, U -- Unselected, I -- Individual Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1 Aggregation Mode: Static Loadsharing Type: Shar Port Status Priority Oper-Key -------------------------------------------------------------------------------- GE1/0/1 S 32768 1 GE1/0/2 S 32768 1
<Core_SW1>dis cur | inc route policy-based-route vlan20nexthop permit node 1 ip policy-based-route vlan20nexthop port link-mode route port link-mode route port link-mode route port link-mode route ip route-static 0.0.0.0 0 10.1.1.2 track 2 ip route-static 0.0.0.0 0 10.1.1.6 preference 80
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<R1>dis ip routing-table pro static
Summary count : 3
Static Routing table status : <Active> Summary count : 3