network 192.168.1.0 0.0.0.255 关键配置: acl number 2001 rule 5 deny source 192.168.3.0 0.0.0.255 rule 10 permit ospf 1 router-id 1.1.1.1 filter-policy 2001 import area 0.0.0.0 network 10.1.1.0 0.0.0.3 network 192.168.1.0 0.0.0.255 R2配置: system-view sysname r2 interface GigabitEthernet0/...
ip prefix-list test16 seq 5 permit 0.0.0.0/1 ge 8 le 8 配置A类地址 ip prefix-list test16 seq 10 permit 128.0.0.0/2 ge 16 le 16 配置B类地址 ip prefix-list test16 seq 15 permit 192.0.0.0/3 ge 24 le 24 配置C类地址 练习 1. Construct a prefix list that permits only the 192.168...
IP-Prefix List能同时精确匹配网络号和前缀长度 性能及可控性比ACL高,ACL无法匹配掩码和前缀长度 前缀列表不能用于数据包的过滤。配置AR1 [AR1]interface g0/0/0 [AR1-GigabitEthernet0/0/0]ip add 10.12.0.1 24 [AR1]interface loopback 0 [AR1-LoopBack0]ip add 192.168.1.1 24 [A...
前缀列表用于路由匹配和过滤,限制前缀和掩码范围,配置在全局模式下,格式为ip prefix-list [数字/名称] permit/deny [前缀] [less/greater-equal/less-equal]。
R3配置: system-view sysname r3 interface GigabitEthernet0/0/0 ip address 10.1.1.2 255.255.255.0 interface GigabitEthernet0/0/1 ip address 10.1.1.6 255.255.255.252 interface GigabitEthernet0/0/2 ip address 10.1.1.9 255.255.255.252 interface LoopBack0 ...
R3配置: system-view sysname r3 interface GigabitEthernet0/0/0 ip address 10.1.1.2 255.255.255.0 interface GigabitEthernet0/0/1 ip address 10.1.1.6 255.255.255.252 interface GigabitEthernet0/0/2 ip address 10.1.1.9 255.255.255.252 interface LoopBack0 ...