之前发贴咨询过:帖子标题是”Msr3600-28-xs,策略路由和静态路由冲突?“
照大佬的提示,我做了如下配置
~~~~~~~~~~~~~~~~~~~~~~~~~~~
V2版的策略路由:
vlan 5 6 7 8 走【线路2】 Dialer1
acl advanced 3100
description Allow traffic for policy-based routing and exclude internal traffic
rule 5 permit ip source 192.168.5.0 0.0.0.255
rule 10 permit ip source 192.168.6.0 0.0.0.255
rule 15 permit ip source 192.168.7.0 0.0.0.255
rule 80 deny ip source 192.168.0.0 0.0.15.255 destination 192.168.0.0 0.0.15.255
quit
policy-based-route neiwang node 10
if-match acl 3100
apply output-interface Dialer1
quit
interface Vlan-interface6
ip policy-based-route neiwang
quit
vlan5 和 7 也是这样配置
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlan4 走默认【线路1】这条宽带
acl advanced 3200
description Allow traffic for policy-based routing and exclude internal traffic
rule 5 permit ip source 192.168.4.0 0.0.0.255
rule 80 deny ip source 192.168.0.0 0.0.15.255 destination 192.168.0.0 0.0.15.255
quit
policy-based-route neiwang4.0 node 20
if-match acl 3200
apply output-interface GigabitEthernet0/0
quit
interface Vlan-interface4
ip policy-based-route neiwang4.0
quit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
配置完后内网vlan之间不能互通了。求助这个要如何解决?
上网的出口,我用tracert 163.com 测试好像是正确的了
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
附,配置后的路由表
[msr3600]dis ip routing-table
Destinations : 41 Routes : 42
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 0.0.0.0 Dia1
Static 60 0 125.81.1.1 GE0/0
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
125.81.1.0/24 Direct 0 0 125.81.1.29 GE0/0
125.81.1.29/32 Direct 0 0 127.0.0.1 InLoop0
125.81.1.255/32 Direct 0 0 125.81.1.29 GE0/0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
182.148.12.1/32 Direct 0 0 182.148.12.1 Dia1
182.148.15.153/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/23 Direct 0 0 192.168.0.1 Vlan1
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.255/32 Direct 0 0 192.168.0.1 Vlan1
192.168.4.0/24 Direct 0 0 192.168.4.1 Vlan4
192.168.4.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.4.255/32 Direct 0 0 192.168.4.1 Vlan4
192.168.5.0/24 Direct 0 0 192.168.5.1 Vlan5
192.168.5.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.5.255/32 Direct 0 0 192.168.5.1 Vlan5
192.168.6.0/24 Direct 0 0 192.168.6.1 Vlan6
192.168.6.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.6.255/32 Direct 0 0 192.168.6.1 Vlan6
192.168.7.0/24 Direct 0 0 192.168.7.1 Vlan7
192.168.7.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.7.255/32 Direct 0 0 192.168.7.1 Vlan7
192.168.8.0/24 Direct 0 0 192.168.8.253 Vlan8
192.168.8.253/32 Direct 0 0 127.0.0.1 InLoop0
192.168.8.255/32 Direct 0 0 192.168.8.253 Vlan8
192.168.9.0/24 Static 60 0 192.168.10.2 Vlan10
192.168.10.0/24 Direct 0 0 192.168.10.1 Vlan10
192.168.10.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.255/32 Direct 0 0 192.168.10.1 Vlan10
192.168.11.0/24 Direct 0 0 192.168.11.253 Vlan11
192.168.11.253/32 Direct 0 0 127.0.0.1 InLoop0
192.168.11.255/32 Direct 0 0 192.168.11.253 Vlan11
192.168.172.0/24 Direct 0 0 192.168.172.1 SSLVPN-AC1
192.168.172.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.172.255/32 Direct 0 0 192.168.172.1 SSLVPN-AC1
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
(0)
最佳答案
组合各位的指点,我重新写了策略路由。请各位大佬帮忙看看对不对?
~~~~~~~~~~~~~~~~~~~~~
请问有什么调试命令、思路,我是小白,学习中
(0)
有个问题,这个需求是要在在策略路由访问外网的前提下去做的话,应该调用的都是一个策略路由,可以把那个neiwang222也写成neiwang,然后node写5,这个之前说错了,这个要放在节点10前面才会配置。其它配置还是一样
有个问题,这个需求是要在在策略路由访问外网的前提下去做的话,应该调用的都是一个策略路由,可以把那个neiwang222也写成neiwang,然后node写5,这个之前说错了,这个要放在节点10前面才会配置。其它配置还是一样
最后一条deny不要写,策略路由不分deny和pemit,重新写一个acl写规则rule 80,然后新建一个节点30 ,不写动作,这样就会匹配路由转发。
(0)
感谢大佬建议。照您的思路我写了命令。麻烦看看写得对不对。特别是neiwang222的命名 acl advanced 3100 description Allow traffic for policy-based routing and exclude internal traffic rule 5 permit ip source 192.168.5.0 0.0.0.255 rule 10 permit ip source 192.168.6.0 0.0.0.255 rule 15 permit ip source 192.168.7.0 0.0.0.255 rule 20 permit ip source 192.168.8.0 0.0.0.255 quit policy-based-route neiwang node 10 if-match acl 3100 apply output-interface Dialer1 quit acl advanced 3300 rule 80 deny ip source 192.168.0.0 0.0.15.255 destination 192.168.0.0 0.0.15.255 quit policy-based-route neiwang222 node 30 if-match acl 3300 quit interface Vlan-interface6 ip policy-based-route neiwang ip policy-based-route neiwang222 quit vlan5 和 7 ,8 也是这样配置
格式不对,稍等
acl advanced 3101 rule 80 deny ip source 192.168.0.0 0.0.15.255 destination 192.168.0.0 0.0.15.255 quit policy-based-route neiwang node 30 if-match acl 3101 就这样不写出接口就行
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
配置了,但内网还是不通