扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
在本页阅读全文(共7页)
interface Serial 0 ip address 172.16.5.1 255.255.255.0 ip policy route-map sense ! access-list 1 permit 172.16.6.0 0.0.0.255 access-list 2 permit 172.16.7.0 0.0.0.255 ! route-map sense permit 10 match ip address 1 set ip next-hop 172.16.4.2 ! route-map sense permit 20 match ip address 2 set ip next-hop 172.16.4.3 |
<2> Extended ACL
interface Ethernet 0 ip address 172.16.1.4 255.255.255.0 ip policy route-map sense ! access-list 105 permit tcp 172.16.1.0 0.0.0.255 eq ftp any access-list 105 permit tcp 172.16.1.0 0.0.0.255 eq ftp-data any access-list 106 permit tcp 172.16.1.0 0.0.0.255 eq telnet any ! route-map sense permit 10 match ip address 105 set ip next-hop 172.16.2.1 ! route-map sense permit 20 match ip address 106 set ip next-hop 172.16.3.1 |
<3> Length of the Packets
interface Ethernet0 ip address 172.16.1.4 255.255.255.0 ip policy route-map sense ! route-map sense permit 10 match length 1000 1600 set ip next-hop 172.16.2.1 ! route-map sense permit 20 match length 0 400 set ip next-hop 172.16.3.1 |
<4> Router's Packets
interface Ethernet0 ip address 172.16.1.4 255.255.255.0 ip policy route-map sense ! ip local policy route-map sense ! access-list 120 permit ip any 172.16.1.0 0.0.0.255 access-list 120 permit ospf any any ! route-map sense permit 10 match ip address 120 ! route-map sense permit 20 match length 1000 1600 set ip next-hop 172.16.2.1 ! route-map sense permit 30 match length 0 400 set ip next-hop 172.16.3.1 |
注:如果没有第一个route-map条目,router本身的Packets及OSPF的Packets都会由于后两个route-map语句被转发到错误的地址。
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者