之前發貼谘詢過:帖子標題是”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 就這樣不寫出接口就行
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
配置了,但內網還是不通