wan1: 218.85.224.100
wan2: 219.85.224.200
内部网:走192.168.201.x和192.168.202.xwan1
192.168.203 .走xwan 2
其他网段为随机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
声明:高质量的内容与大家共享。 有些文章来自互联网。 如果有侵害的话请通知我。 我们第一时间处理。
谢谢您的支持。 感谢您的关注和转发。