SR6602两条外网如何做负载,不做策略路由
(0)
您好,配置静态路由加配置检测就可以,参考
H3C SR6600路由器 配置指导-R2420(V1.12)_三层技术-IP路由配置指导_静态路由配置-新华三集团-H3C
如图1-3所示,Router S、Router A和Router D通过静态路由实现网络互连。要求当Router S和Router A之间的链路出现故障时,业务可以快速切换到链路B上。
(1) 配置各路由器接口的IP地址与静态路由
请按照上面组网图配置各接口的IP地址和子网掩码,具体配置过程略。
在Router S、Router A和Router D上配置静态路由使Router S可以到达Router D的Loopback0口,Router D可以到达Router S的Loopback0口。
具体配置如下:
# 在Router S上配置静态路由。
<RouterS> system-view
[RouterS] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 13.13.13.2
# 在Router D上配置静态路由。
<RouterD> system-view
[RouterD] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/2 13.13.13.1
# 在Router A上配置静态路由。
<RouterA> system-view
[RouterA] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 24.24.24.4
[RouterA] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/1 12.12.12.1
(2) 配置静态路由快速重路由
# 配置Router S。
[RouterS] bfd echo-source-ip 1.1.1.1
[RouterS] ip ip-prefix abc index 10 permit 4.4.4.4 32
[RouterS] route-policy frr permit node 10
[RouterS-route-policy] if-match ip-prefix abc
[RouterS-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1 backup-nexthop 12.12.12.2
[RouterS-route-policy] quit
[RouterS] ip route-static fast-reroute route-policy frr
# 配置Router D。
[RouterD] bfd echo-source-ip 4.4.4.4
[RouterD] ip ip-prefix abc index 10 permit 1.1.1.1 32
[RouterD] route-policy frr permit node 10
[RouterD-route-policy] if-match ip-prefix abc
[RouterD-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1 backup-nexthop 24.24.24.2
[RouterD-route-policy] quit
[RouterD] ip route-static fast-reroute route-policy frr
(3) 检验配置效果
# 在Router S上查看4.4.4.4/32路由,可以看到备份下一跳信息。
[RouterS] display ip routing-table 4.4.4.4 verbose
Routing Table : Public
Summary Count : 1
Destination: 4.4.4.4/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 13.13.13.2 Interface: GigabitEthernet2/1/2
BkNextHop: 12.12.12.2 BkInterface: GigabitEthernet2/1/1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 00h01m27s
Tag: 0
# 在Router D上查看1.1.1.1/32路由,可以看到备份下一跳信息。
[RouterS] display ip routing-table 1.1.1.1 verbose
Routing Table : Public
Summary Count : 1
Destination: 1.1.1.1/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 13.13.13.1 Interface: GigabitEthernet2/1/2
BkNextHop: 24.24.24.2 BkInterface: GigabitEthernet2/1/1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 00h01m27s
Tag: 0
l 在Router A上配置静态路由可以到达120.1.1.0/24网段路由,在Router B上配置静态路由可以到达121.1.1.0/24网段路由,并使能BFD检测功能。
l 当Router A和Router B通过L2 Switch通信的链路出现故障时BFD能够快速感知,并且切换到Router C进行通信。
图1-4 静态路由与BFD联动配置组网图
设备 | 接口 | IP地址 | 设备 | 接口 | IP地址 |
Router A | GE2/1/1 | 12.1.1.1/24 | Router B | GE2/1/1 | 12.1.1.2/24 |
| GE2/1/2 | 10.1.1.102/24 |
| GE2/1/2 | 13.1.1.1/24 |
Router C | GE2/1/1 | 10.1.1.100/24 |
|
|
|
| GE2/1/2 | 13.1.1.2/24 |
|
|
|
(1) 配置各接口的IP地址(略)
(2) 配置BFD
# 在Router A上配置静态路由,并使能BFD检测功能,通过BFD控制报文方式实现BFD功能。
<RouterA> system-view
[RouterA] interface GigabitEthernet 2/1/1
[RouterA-GigabitEthernet2/1/1] bfd min-transmit-interval 500
[RouterA-GigabitEthernet2/1/1] bfd min-receive-interval 500
[RouterA-GigabitEthernet2/1/1] bfd detect-multiplier 9
[RouterA-GigabitEthernet2/1/1] quit
[RouterA] ip route-static 120.1.1.0 24 GigabitEthernet 2/1/1 12.1.1.2 bfd control-packet
[RouterA] ip route-static 120.1.1.0 24 GigabitEthernet 2/1/2 10.1.1.100 preference 65
[RouterA] quit
# 在Router B上配置静态路由,并使能BFD检测功能,通过BFD控制报文方式实现BFD功能。
<RouterB> system-view
[RouterB] interface GigabitEthernet 2/1/1
[RouterB-GigabitEthernet2/1/1] bfd min-transmit-interval 500
[RouterB-GigabitEthernet2/1/1] bfd min-receive-interval 500
[RouterB-GigabitEthernet2/1/1] bfd detect-multiplier 9
[RouterB-GigabitEthernet2/1/1] quit
[RouterB] ip route-static 121.1.1.0 24 GigabitEthernet 2/1/1 12.1.1.1 bfd control-packet
[RouterB] ip route-static 121.1.1.0 24 GigabitEthernet 2/1/2 13.1.1.2 preference 65
[RouterB] quit
(3) 检查配置结果
下面以Router A为例,Router B和Router A类似,不再赘述。
<RouterA> display bfd session
Total Session Num: 1 Init Mode: Active
Session Working Under Ctrl Mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
4/7 12.1.1.1 12.1.1.2 Up 2000ms GigabitEthernet2/1/1
# 在Router A上查看静态路由。
<RouterA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2
Static Routing table Status : < Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 60 0 12.1.1.2 GE2/1/1
Direct Routing table Status : <Inactive>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 65 0 10.1.1.100 GE2/1/2
# 在Router A上打开BFD功能调试信息开关。
<RouterA> debugging bfd event
<RouterA> debugging bfd scm
<RouterA> terminal debugging
# Router A和交换机之间链路发生故障时,可以看到Router A能够快速感知Router B的变化。
%Jul 27 10:18:18:672 2007 RouterA BFD/4/LOG:Sess[12.1.1.1/12.1.1.2, GigabitEthernet2/1/1,Ctrl], Sta: UP->DOWN, Diag: 1
*Jul 27 10:18:18:672 2007 RouterA BFD/7/EVENT:Send sess-down Msg, [Src:12.1.1.1,Dst:12.1.1.2,GigabitEthernet2/1/1,Ctrl], instance:0, protocol:STATIC
*Jul 27 10:18:19:172 2007 RouterA BFD/7/EVENT:Receive Delete-sess, [Src:12.1.1.1,Dst:12.1.1.2,GigabitEthernet2/1/1,Ctrl], Direct, Instance:0x0, Proto:STATIC
*Jul 27 10:18:19:172 2007 RouterA BFD/7/EVENT:Notify driver to stop receiving bf
# 通过display ip routing-table protocol static命令查看路表信息。Router A选择经过Router C的静态路由到达Router B。
<RouterA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2
Static Routing table Status : < Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 65 0 10.1.1.100 GE2/1/2
Static Routing table Status : < Inactive>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 60 0 12.1.1.2 GE2/1/1
(0)
暂无评论
您好,请知:
不部署聚合,要实现负载,可尝试在NAT转换策略中,1条链路只让一个网段出去,另1条链路让另外一个网段出去。
或者配置静态路由加配置检测:
如图1-3所示,Router S、Router A和Router D通过静态路由实现网络互连。要求当Router S和Router A之间的链路出现故障时,业务可以快速切换到链路B上。
(1) 配置各路由器接口的IP地址与静态路由
请按照上面组网图配置各接口的IP地址和子网掩码,具体配置过程略。
在Router S、Router A和Router D上配置静态路由使Router S可以到达Router D的Loopback0口,Router D可以到达Router S的Loopback0口。
具体配置如下:
# 在Router S上配置静态路由。
<RouterS> system-view
[RouterS] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 13.13.13.2
# 在Router D上配置静态路由。
<RouterD> system-view
[RouterD] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/2 13.13.13.1
# 在Router A上配置静态路由。
<RouterA> system-view
[RouterA] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 24.24.24.4
[RouterA] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/1 12.12.12.1
(2) 配置静态路由快速重路由
# 配置Router S。
[RouterS] bfd echo-source-ip 1.1.1.1
[RouterS] ip ip-prefix abc index 10 permit 4.4.4.4 32
[RouterS] route-policy frr permit node 10
[RouterS-route-policy] if-match ip-prefix abc
[RouterS-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1 backup-nexthop 12.12.12.2
[RouterS-route-policy] quit
[RouterS] ip route-static fast-reroute route-policy frr
# 配置Router D。
[RouterD] bfd echo-source-ip 4.4.4.4
[RouterD] ip ip-prefix abc index 10 permit 1.1.1.1 32
[RouterD] route-policy frr permit node 10
[RouterD-route-policy] if-match ip-prefix abc
[RouterD-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1 backup-nexthop 24.24.24.2
[RouterD-route-policy] quit
[RouterD] ip route-static fast-reroute route-policy frr
(3) 检验配置效果
# 在Router S上查看4.4.4.4/32路由,可以看到备份下一跳信息。
[RouterS] display ip routing-table 4.4.4.4 verbose
Routing Table : Public
Summary Count : 1
Destination: 4.4.4.4/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 13.13.13.2 Interface: GigabitEthernet2/1/2
BkNextHop: 12.12.12.2 BkInterface: GigabitEthernet2/1/1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 00h01m27s
Tag: 0
# 在Router D上查看1.1.1.1/32路由,可以看到备份下一跳信息。
[RouterS] display ip routing-table 1.1.1.1 verbose
Routing Table : Public
Summary Count : 1
Destination: 1.1.1.1/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 13.13.13.1 Interface: GigabitEthernet2/1/2
BkNextHop: 24.24.24.2 BkInterface: GigabitEthernet2/1/1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 00h01m27s
Tag: 0
l 在Router A上配置静态路由可以到达120.1.1.0/24网段路由,在Router B上配置静态路由可以到达121.1.1.0/24网段路由,并使能BFD检测功能。
l 当Router A和Router B通过L2 Switch通信的链路出现故障时BFD能够快速感知,并且切换到Router C进行通信。
图1-4 静态路由与BFD联动配置组网图
设备 | 接口 | IP地址 | 设备 | 接口 | IP地址 |
Router A | GE2/1/1 | 12.1.1.1/24 | Router B | GE2/1/1 | 12.1.1.2/24 |
| GE2/1/2 | 10.1.1.102/24 |
| GE2/1/2 | 13.1.1.1/24 |
Router C | GE2/1/1 | 10.1.1.100/24 |
|
|
|
| GE2/1/2 | 13.1.1.2/24 |
|
|
|
(1) 配置各接口的IP地址(略)
(2) 配置BFD
# 在Router A上配置静态路由,并使能BFD检测功能,通过BFD控制报文方式实现BFD功能。
<RouterA> system-view
[RouterA] interface GigabitEthernet 2/1/1
[RouterA-GigabitEthernet2/1/1] bfd min-transmit-interval 500
[RouterA-GigabitEthernet2/1/1] bfd min-receive-interval 500
[RouterA-GigabitEthernet2/1/1] bfd detect-multiplier 9
[RouterA-GigabitEthernet2/1/1] quit
[RouterA] ip route-static 120.1.1.0 24 GigabitEthernet 2/1/1 12.1.1.2 bfd control-packet
[RouterA] ip route-static 120.1.1.0 24 GigabitEthernet 2/1/2 10.1.1.100 preference 65
[RouterA] quit
# 在Router B上配置静态路由,并使能BFD检测功能,通过BFD控制报文方式实现BFD功能。
<RouterB> system-view
[RouterB] interface GigabitEthernet 2/1/1
[RouterB-GigabitEthernet2/1/1] bfd min-transmit-interval 500
[RouterB-GigabitEthernet2/1/1] bfd min-receive-interval 500
[RouterB-GigabitEthernet2/1/1] bfd detect-multiplier 9
[RouterB-GigabitEthernet2/1/1] quit
[RouterB] ip route-static 121.1.1.0 24 GigabitEthernet 2/1/1 12.1.1.1 bfd control-packet
[RouterB] ip route-static 121.1.1.0 24 GigabitEthernet 2/1/2 13.1.1.2 preference 65
[RouterB] quit
(3) 检查配置结果
下面以Router A为例,Router B和Router A类似,不再赘述。
<RouterA> display bfd session
Total Session Num: 1 Init Mode: Active
Session Working Under Ctrl Mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
4/7 12.1.1.1 12.1.1.2 Up 2000ms GigabitEthernet2/1/1
# 在Router A上查看静态路由。
<RouterA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2
Static Routing table Status : < Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 60 0 12.1.1.2 GE2/1/1
Direct Routing table Status : <Inactive>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 65 0 10.1.1.100 GE2/1/2
# 在Router A上打开BFD功能调试信息开关。
<RouterA> debugging bfd event
<RouterA> debugging bfd scm
<RouterA> terminal debugging
# Router A和交换机之间链路发生故障时,可以看到Router A能够快速感知Router B的变化。
%Jul 27 10:18:18:672 2007 RouterA BFD/4/LOG:Sess[12.1.1.1/12.1.1.2, GigabitEthernet2/1/1,Ctrl], Sta: UP->DOWN, Diag: 1
*Jul 27 10:18:18:672 2007 RouterA BFD/7/EVENT:Send sess-down Msg, [Src:12.1.1.1,Dst:12.1.1.2,GigabitEthernet2/1/1,Ctrl], instance:0, protocol:STATIC
*Jul 27 10:18:19:172 2007 RouterA BFD/7/EVENT:Receive Delete-sess, [Src:12.1.1.1,Dst:12.1.1.2,GigabitEthernet2/1/1,Ctrl], Direct, Instance:0x0, Proto:STATIC
*Jul 27 10:18:19:172 2007 RouterA BFD/7/EVENT:Notify driver to stop receiving bf
# 通过display ip routing-table protocol static命令查看路表信息。Router A选择经过Router C的静态路由到达Router B。
<RouterA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2
Static Routing table Status : < Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 65 0 10.1.1.100 GE2/1/2
Static Routing table Status : < Inactive>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
120.1.1.0/24 Static 60 0 12.1.1.2 GE2/1/1
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论