policy-based-route aaa permit node 1 if-match acl 3000 apply next-hop 124.238.99.33 # policy-based-route aaa permit node 2 if-match acl 3333 apply next-hop 124.238.113.193interface GigabitEthernet0/0 port link-mode route combo enable copper ip address 124.238.99.38 255.255.255.240 nat outbound 3000 # interface GigabitEthernet0/1 port link-mode route ip address 10.0.0.1 255.255.255.252 ip policy-based-route aaa # interface GigabitEthernet0/2 port link-mode route ip address 124.238.113.209 255.255.255.224 nat outbound 3333ip route-static 0.0.0.0 0 124.238.99.33 ip route-static 0.0.0.0 0 124.238.113.193 preference 80 ip route-static 172.16.0.0 16 10.0.0.2 acl number 3000 rule 0 permit ip source 172.16.0.0 0.0.0.255acl number 3333 rule 0 permit ip source 172.16.5.0 0.0.0.255
policy-based-route aaa permit node 1 if-match acl 3000 apply next-hop 124.238.99.33 # policy-based-route aaa permit node 2 if-match acl 3333 apply next-hop 124.238.113.193interface GigabitEthernet0/0 port link-mode route combo enable copper ip address 124.238.99.38 255.255.255.240 nat outbound 3000 # interface GigabitEthernet0/1 port link-mode route ip address 10.0.0.1 255.255.255.252 ip policy-based-route aaa # interface GigabitEthernet0/2 port link-mode route ip address 124.238.113.209 255.255.255.224 nat outbound 3333ip route-static 0.0.0.0 0 124.238.99.33 ip route-static 0.0.0.0 0 124.238.113.193 preference 80 ip route-static 172.16.0.0 16 10.0.0.2 acl number 3000 rule 0 permit ip source 172.16.0.0 0.0.0.255acl number 3333 rule 0 permit ip source 172.16.5.0 0.0.0.255
(0)
最佳答案
配置没有什么问题,看看apply next-hop是否可达,不可达会匹配默认路由,走124.238.99.33出去上网,但是acl number 3000
rule 0 permit ip source 172.16.0.0 0.0.0.255里面没有匹配172.16.5.0 0.0.0.255 就可能出现不能上网
(0)
172.15.5.0 是acl3333 得 apply next-hop这个两条下一跳都是可达得
就是下边得1.0 2.0 3.0 4.0 所有得网段还是通过一个接口出去得。并没有按照ACL得分开走出口。
acl number 3000 rule 0 permit ip source 172.16.0.0 0.0.0.255 rule 1 permit ip source 172.16.1.0 0.0.0.255 rule 2 permit ip source 172.16.2.0 0.0.0.255 rule 3 permit ip source 172.16.3.0 0.0.0.255 rule 4 permit ip source 172.16.4.0 0.0.0.255 # acl number 3333 rule 0 permit ip source 172.16.5.0 0.0.0.255 rule 1 permit ip source 172.16.6.0 0.0.0.255
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
好的