使用ENSP模拟器实现
实验:双出口访问外网nat 策略路由配置
1、内网使用nat访问外网
2、访问联通流量默认走联通线路,电信流量默走电信线路
3、当线路出现故障时,可切换到另一个链路
4、来回路径一致
5、通过NQA技术检测网络状态,连通性

配置一个外网的DNS服务器做为NQA测试的路由
ip route-s 188.202.98.1 32 11.1.1.1
ip route-s 202.98.224.68 32 12.1.1.1
配置NQA监测网络连通
===nqa
nqa test-instance cucc liantong
test-type icmp
destination-address ipv4 188.202.98.1
frequency 5
probe-count 1
start now
qu
nqa test-instance ctcc dianxin
test-type icmp
destination-address ipv4 202.98.224.68
frequency 5
probe-count 1
start now
配置默认路由访问外网,配置Nqa如果失效,路由也失效
ip route-s 0.0.0.0 0 11.1.1.1 track nqa cucc liantong
ip route-s 0.0.0.0 0 12.1.1.1 track nqa ctcc dianxin
ar1策略路由
acl 2000
rule per
qu
int g0/0/1
nat out 2000
acl 3000
rule per ip dest 43.243.228.1 0
rule per ip dest 188

本文介绍如何使用ENSP模拟器配置双出口访问外网的NAT策略路由。具体包括内网通过NAT访问外网,并根据不同运营商(如联通、电信)进行智能选路,确保数据包来回路径一致,且在网络故障时能够自动切换到备用线路。文中还介绍了利用NQA技术监控网络状态的方法。
最低0.47元/天 解锁文章
4080

被折叠的 条评论
为什么被折叠?



