美文网首页
【实验】 策略路由配置案例

【实验】 策略路由配置案例

作者: 微思IT认证培训 | 来源:发表于2020-08-25 10:53 被阅读0次
image

网络拓扑

image

说明:用户使用NBR2000作为网吧出口路由器,接入线路共3条,两条电信线路,一条网通线路。由于NBR2000只有2个WAN口,因此两条电信线路通过一台二层交换机连接到NBR2000的WAN 0口上,WAN 0口配置两个IP地址(其中一个为second ip),WAN 1口连接网通线路。IP地址如图所示。

image.gif

功能需求

访问网通的网络走网通线路,访问其他网络使用负载均衡的方式分别走两条电信线路。这是一种以前很少碰到的方案需求。

image image

配置实现

access-list 90 permit 192.168.0.0 0.0.0.254//定义偶数IPaccess-list 91 permit 192.168.0.1 0.0.0.254//定义奇数IProute-map Telcom permit 10match ip address 90set ip default next-hop 202.109.204.1//定义偶数IP往电信1线路转发route-map Telcom permit 20match ip address 91set ip default next-hop 61.154.8.1//定义奇数IP往电信2线路转发ip nat pool pool1 prefix-length 24address 202.109.204.2 202.109.204.2 match interface GigabitEthernet 0/1address 210.51.32.2 210.51.32.2 match interface FastEthernet 0/2ip nat pool pool2 prefix-length 24address 61.154.8.2 61.154.8.2 match interface GigabitEthernet 0/1address 210.51.32.2 210.51.32.2 match interface FastEthernet 0/2!ip nat inside source list 90 pool pool1ip nat inside source list 91 pool pool2//定义奇偶IP nat地址池!ip route 58.16.0.0 255.255.0.0 220.249.160.97省略若干网通路由ip route 222.160.0.0 255.252.0.0 220.249.160.97//路由表中只存在网通路由

本文来源:微思网络 https://mp.weixin.qq.com/s/FyeU689IZWCc3vFah6sMNA

相关文章

网友评论

      本文标题:【实验】 策略路由配置案例

      本文链接:https://www.haomeiwen.com/subject/bvvajktx.html