手机端
当前位置:首页 > 幼儿教师 > 正文

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

wan1:218.85.224.100wan2:219.85.224.200内网 : 192.168.201.x 和192.168.202.x走wan1192.168.203.x走wan2其他网段随机wan1和wan2一、 思科路由器: i

wan1: 218.85.224.100

wan2: 219.85.224.200

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

内部网:走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

声明:高质量的内容与大家共享。 有些文章来自互联网。 如果有侵害的话请通知我。 我们第一时间处理。

谢谢您的支持。 感谢您的关注和转发。