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)
最佳答案
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
172.15.5.0 是acl3333 得 apply next-hop这个两条下一跳都是可达得
那现在是什么情况呢?你说的不能用是什么情况
就是下边得1.0 2.0 3.0 4.0 所有得网段还是通过一个接口出去得。并没有按照ACL得分开走出口。
哥哥,你ACL写错了,你这个匹配是172.16.0.1-172.16.0..254 另一个是172.26.5.1-172.16.5.254
不是 我说的是全部网段,我这一共有两条ACL ACL3000 0.0 1.0 2.0 3.0 4.0 ACL 3333 5.0 6.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
这是acl得配置 您看还需要别的哪方面得配置吗
没有了,这配置就是正常的。
配置没有毛病是吧。
没有,这就是基本功能,理论来说不成功的几率太小了,用序列号找下400看看
好的