1. prefix-list Parsing of prefix list
2.2.2.0/24
2.2.2.0/25
2.2.2.0/26
ACL can only control network number, cannot control mask
Access-list 1 Permit 2.2.2.0 0.0.0.255
This ACL does not match exactly to 2.2.2.0/24,2.2.2.0/25 and 2.2.2.0/26 are also included because their network number is the same.
Prefix-list can either control the network number or control the mask
2.2.2.0/26
IP prefix-list 1 Permit 2.2.2.0/24(Network number: 2.2.2.0 Mask: 24-bit)
IP prefix-list 1 Permit 2.2.2.0/24 le(Network number: 2.2.2.0 Mask: 24-32-bit)
IP prefix-list 1 Permit 2.2.2.0/24 GE(network number: 2.2.2.0 Mask: 26-32-bit)
IP prefix-list 1 Permit 2.2.2.0/24 ge + le(Network number: 2.2.2.0 Mask: 24-30-bit)
IP prefix-list 1 Permit 0.0.0.0/0 le(permit any)
Prefix-list from top down, default deny any
ACLs can catch packets and routes, can be applied to interfaces and routing processes, and prefix-list can only catch routes under the routing process
2. Experimental topology
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/77/05/wKioL1ZhMEfRZOOAAABKhJ9TWLA136.png "title=" Re3.png "alt=" Wkiol1zhmefrzooaaabkhj9twla136.png "/>
3. Experiment Configuration
R1 Configuration
Interface serial0/0
IP address 12.1.1.1 255.255.255.0
Interface SERIAL0/1
IP address 13.1.1.1 255.255.255.0
Interface SERIAL0/2
IP address 14.1.1.1 255.255.255.0
Router EIGRP 90
Redistribute OSPF metric 1500 100 255 1 1500
Network 14.1.1.0 0.0.0.255
No auto-summary
router OSPF 110
Router-id 1.1.1.1
Log-adjacency-changes
Redistribute RIP subnets
Network 13.1.1.0 0.0.0.255 Area 0
Router RIP
Version 2
Network 12.0.0.0
No auto-summary
R2 Configuration
Interface Loopback0
IP address 2.2.2.2 255.255.255.0
Interface serial0/0
IP address 12.1.1.2 255.255.255.0
Router RIP
Version 2
Network 2.0.0.0
Network 12.0.0.0
No auto-summary
R3 Configuration
Interface Loopback0
IP address 3.3.3.3 255.255.255.0
Interface serial0/0
IP address 13.1.1.3 255.255.255.0
router OSPF 110
Router-id 3.3.3.3
Log-adjacency-changes
Network 3.3.3.0 0.0.0.255 Area 0
Network 13.1.1.0 0.0.0.255 Area 0
R4 Configuration
Interface Loopback0
IP address 4.4.4.4 255.255.255.0
Interface serial0/0
IP address 14.1.1.4 255.255.255.0
Router EIGRP 90
Network 4.4.4.0 0.0.0.255
Network 14.1.1.0 0.0.0.255
No auto-summary
4. Prefix list application
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/77/05/wKioL1ZhMRywaE-wAABFm7Ku_0s541.png "title=" Dl3.png "alt=" Wkiol1zhmrywae-waabfm7ku_0s541.png "/> At this point we can see that R4 can learn the two routes of 3.3.3.3/32 and 13.1.1.0/24, Here we want to let R4 only learn 3.3.3.3/32 this route through the distribution list.
R1 Configuration
IP prefix-list 1 Permit 3.3.3.3/32
Router EIGRP 90
Distribute-list prefix 1 out OSPF 110
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/06/wKiom1ZhMhDxhbjbAAA-9QeGMLc522.png "title=" Dl4.png "alt=" Wkiom1zhmhdxhbjbaaa-9qegmlc522.png "/>
At this point R4 only learned the 3.3.3.3/32 route.
This article is from the "Open Source Hall" blog, please be sure to keep this source http://kaiyuandiantang.blog.51cto.com/10699754/1719578
35, Redistribution Configuration experiment before the prefix list prefix-list