核心交换机莫一个IP地址定向走移动
电信移动互联网 两个互连地址双上行 莫个IP定向走移动
(0)
最佳答案
track 1 nqa entry admin test1 reaction 1
#
track 2 nqa entry admin test2 reaction 2
#
policy-based-route pbr permit node 5
if-match acl 3001
apply next-hop 10.1.13.1 track 1 //假设这个
10.1.13.1 地址是移动的
#
policy-based-route neiwang permit node 10
if-match acl 3002
apply next-hop 10.1.14.1 track 2 // 假设这个10.1.14.1 地址是电信的
#
nqa entry admin test1
type icmp-echo
destination ip 10.1.35.1
frequency 1000
out interface g1/0/1
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
#
nqa entry admin test2
type icmp-echo
destination ip 10.1.36.1
frequency 1000
out interface g1/0/2
reaction 2 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
#
nqa schedule admin test start-time now lifetime forever
nqa schedule admin test1 start-time now lifetime forever
#
interface NULL0
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable copper
ip address 10.1.13.254 255.255.255.0
nat outbound
#
interface GigabitEthernet1/0/2
port link-mode route
combo enable copper
ip address 10.1.14.254 255.255.255.0
nat outbound
interface GigabitEthernet1/0/3
port link-mode route
combo enable copper
ip address 192.168.2.1 255.255.255.0
ip policy-based-route neiwang
#
acl advanced 3001
rule 0 permit ip source 10.10.1.0 0.0.0.255 //写你想走移动专线的地址
#
acl advanced 3002
rule 0 permit ip source 10.1.20.0 0.0.0.255
#
(0)
策略路由锁定某些源地址的下一跳即可。
参考:
https://www.h3c.com/cn/d_202201/1526214_30005_0.htm#_Toc92314935
把里面的acl改成匹配ip源地址即可。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论