原来使用1条电信的做单位互联网访问,新增1条联通的作为备用链路,如何配置?当1条链路出现问题时自动切换另一条线路?
知道的大神指教,求带命令。
设置列表
[H3C]display current-configuration
#
version 7.1.064, Release 7617
#
mdc Admin id 1
#
sysname H3C
#
password-recovery enable
#
vlan 1
#
interface Serial3/2/0
#
interface Serial3/2/1
#
interface Serial3/2/2
#
interface Serial3/2/3
#
interface Serial3/2/4
#
interface Serial3/2/5
#
interface Serial3/2/6
#
interface Serial3/2/7
#
interface NULL0
#
interface GigabitEthernet3/0/0
port link-mode route
combo enable copper
#
interface GigabitEthernet3/0/1
port link-mode route
combo enable copper
#
interface GigabitEthernet3/1/0
port link-mode route
ip address 10.1.1.1 255.255.255.252
nat outbound
#
interface GigabitEthernet3/1/1
port link-mode route
#
interface GigabitEthernet3/1/2
port link-mode route
#
interface GigabitEthernet3/1/3
port link-mode route
#
interface GigabitEthernet3/1/4
port link-mode route
#
interface GigabitEthernet3/1/5
port link-mode route
#
interface GigabitEthernet3/1/6
port link-mode route
#
interface GigabitEthernet3/1/7
port link-mode route
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet3/4/0
port link-mode route
#
interface GigabitEthernet3/4/1
port link-mode route
#
interface GigabitEthernet3/4/2
port link-mode route
#
interface GigabitEthernet3/4/3
port link-mode route
#
interface GigabitEthernet3/4/4
port link-mode route
#
interface GigabitEthernet3/4/5
port link-mode route
#
interface GigabitEthernet3/4/6
port link-mode route
#
interface GigabitEthernet3/4/7
port link-mode route
#
interface M-GigabitEthernet0/0/0
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0 1
user-role network-admin
#
line vty 0 4
authentication-mode scheme
user-role network-operator
#
line vty 5 63
user-role network-operator
#
ip route-static 0.0.0.0 0 211.160.246.21
#
ssh server enable
ssh user xxxxx service-type stelnet authentication-type password
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user xywdgs class manage
password hash xxxx
service-type ssh telnet terminal https
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
public-key peer 192.168.10.1
public-key-code begin
xxxxxx
public-key-code end
peer-public-key end
#
return
(0)
您好,请知:
关于双链路在主链路故障时能快速切换,可以部署NQA检测来实现,以下是配置举例,请参考:
· Router A到达Router C的静态路由下一跳为Router B。
· 在Router A上通过静态路由、Track与NQA联动,对到达Router C的静态路由有效性进行实时判断。
图1-17 NQA联动配置组网图
(1) 配置各接口的IP地址。(配置过程略)
(2) 在Router A上配置静态路由,并与Track项关联。
# 配置到达Router C的静态路由下一跳地址为10.2.1.1,并配置静态路由与Track项1关联。
<RouterA> system-view
[RouterA] ip route-static 10.1.1.2 24 10.2.1.1 track 1
(3) 在Router A上配置NQA测试组
# 创建管理员名为admin、操作标签为test1的NQA测试组。
[RouterA] nqa entry admin test1
# 配置测试类型为ICMP-echo。
[RouterA-nqa-admin-test1] type icmp-echo
# 配置目的地址为10.2.1.1。
[RouterA-nqa-admin-test1-icmp-echo] destination ip 10.2.1.1
# 测试频率为100ms。
[RouterA-nqa-admin-test1-icmp-echo] frequency 100
# 配置联动项1(连续失败5次触发联动)。
[RouterA-nqa-admin-test1-icmp-echo] reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
[RouterA-nqa-admin-test1-icmp-echo] quit
# 启动ICMP-echo探测操作,并一直进行测试。
[RouterA] nqa schedule admin test1 start-time now lifetime forever
(4) 在Router A上配置Track项
# 配置Track项1,关联NQA测试组(管理员为admin,操作标签为test1)的联动项1。
[RouterA] track 1 nqa entry admin test1 reaction 1
# 显示Router A上Track项的信息。
[RouterA] display track all
Track ID: 1
State: Positive
Duration: 0 days 0 hours 0 minutes 0 seconds
Notification delay: Positive 0, Negative 0 (in seconds)
Tracked object:
NQA entry: admin test1
Reaction: 1
# 显示Router A的路由表。
[RouterA] display ip routing-table
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.0/24 Static 60 0 10.2.1.1 GE1/0/1
10.2.1.0/24 Direct 0 0 10.2.1.2 GE1/0/1
10.2.1.0/32 Direct 0 0 10.2.1.2 GE1/0/1
10.2.1.2/32 Direct 0 0 127.0.0.1 InLoop0
10.2.1.255/32 Direct 0 0 10.2.1.2 GE1/0/1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
以上显示信息表示,NQA测试的结果为下一跳地址10.2.1.1可达(Track项状态为Positive),配置的静态路由生效。
# 在Router B上删除接口GigabitEthernet1/0/1的IP地址。
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] undo ip address
# 显示Router A上Track项的信息。
[RouterA] display track all
Track ID: 1
State: Negative
Duration: 0 days 0 hours 0 minutes 0 seconds
Notification delay: Positive 0, Negative 0 (in seconds)
Tracked object:
NQA entry: admin test1
Reaction: 1
# 显示Router A的路由表。
[RouterA] display ip routing-table
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
10.2.1.0/24 Direct 0 0 10.2.1.2 GE1/0/1
10.2.1.0/32 Direct 0 0 10.2.1.2 GE1/0/1
10.2.1.2/32 Direct 0 0 127.0.0.1 InLoop0
10.2.1.255/32 Direct 0 0 10.2.1.2 GE1/0/1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
以上显示信息表示,NQA测试的结果为下一跳地址10.2.1.1不可达(Track项状态为Negative),配置的静态路由无效。
(2)
您好,一个路由器也是可以做的,由于是双链路出去。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
等于没说、好像又说了点什么