温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

思科华为路由器如何利用route-map配置双wan口策略路

发布时间:2020-03-17 05:25:23 来源:网络 阅读:1391 作者:华仔的博客 栏目:系统运维

wan1:218.85.224.100
wan2:219.85.224.200
内网 : 192.168.201.x 和192.168.202.x走wan1
192.168.203.x走wan2
其他网段随机wan1和wan2
一、 思科路由器:
interface GigabitEthernet0/1
ip address 219.85.224.200 255.255.255.252
ip nat outside
ip policy route-map ipsdx1

interface GigabitEthernet0/2
ip address 218.85.224.100 255.255.255.252
ip nat outside
ip policy route-map ipsdx2

ip nat pool ipsdx1 219.85.224.200 219.85.224.200 netmask 255.255.255.252
ip nat pool ipsdx2 218.85.224.100 218.85.224.100 netmask 255.255.255.252
ip nat inside source list 101 interface GigabitEthernet0/1 overload
ip nat inside source list 102 interface GigabitEthernet0/2 overload
ip nat inside source list 103 interface GigabitEthernet0/2 overload

access-list 102 permit ip 192.168.201.0 0.0.0.255 any
access-list 103 permit ip 192.168.202.0 0.0.0.255 any
route-map aaa permit 5
match ip address 102 103
set ip next-hop 218.85.224.100

access-list 104 permit ip 192.168.203.0 0.0.0.255 any
route-map bbb permit 6
match ip address 104
set ip next-hop 219.85.224.200

二、华为路由器

interface gigabitethernet 0/0/1
ip address 218.8.8.8
nat outbound 102

acl number 102
rule 5 permit ip source 192.168.201.0 0.0.0.255
rule 6 permit ip source 192.168.202.0 0.0.0.255

acl number 103
rule 7 permit ip source 192.168.201.1 0.0.0.0 destination 218.85.224.100 0.0.0.0
rule 8 permit ip source 192.168.202.0 0.0.0.255 destination 218.85.224.100 0.0.0.0

traffic classifier aaa operator or
if-match acl 103
traffic behavior aaa
redirect ip-nexthop 218.85.224.100
traffic policy aaa
classifier aaa behavior aaa

或者

acl number 3000
rule 10 permit ip source 10.0.0.0 0.0.0.255 destination 10.10.55.2 0
acl number 3001
rule 94 permit ip source 94.4.19.0 0.0.0.255 destination 10.10.55.3 0
rule 192 permit ip source 192.168.2.0 0.0.0.255 destination 10.10.55.3 0

traffic classifier aaa operator or
if-match acl 3000

traffic classifier bbb operator or
if-match acl 3001

traffic behavior aaa
redirect ip-nexthop 10.10.55.2

traffic behavior bbb
redirect ip-nexthop 10.10.55.3

traffic policy aaa match-order config
classifier aaa behavior aaa

traffic policy bbb match-order config
classifier bbb behavior bbb

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI