ECE495 Chapter Notes - Chapter 6: Private Network, Border Gateway Protocol, Logical Conjunction
Document Summary
Prefix-lists are used to match routes as opposed to traffic. Two things are matched: the prefix (the network itself, the prefix-length (the length of the subnet mask) The above prefix-list matches the 10. 1. 1. 0/24 network exactly. Router(config)# ip prefix-list mylist 10. 1. 1. 0/24 ge 26 le 30. The first command dictates that the first 24 bits of the prefix must match (meaning, the prefix must begin 10. 1. 1), and the subnet mask must be less than or equal to 30 bits. The second command dictates again that the first 24 bits of the prefix must match, and the subnet mask must be between 26 to 30 bits (or equal to). Distribute-lists are used to filter routing updates, either inbound or outbound. Routes must first be matched using an access-list or prefix-list, and then applied using a distribute-list under the routing process: The above distribute-list will control routes sent inbound on serial0/0. Specifically, the referenced access-list will only permit routes matching.