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 <

本文介绍了如何在思科和华为路由器上利用route-map进行双WAN口策略路由配置,确保特定内网IP段通过指定的WAN接口进行数据传输。例如,192.168.201.x和192.168.202.x走wan1,192.168.203.x走wan2,其余网段随机选择WAN接口。
最低0.47元/天 解锁文章
456

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



