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