08-09-2006 04:21 AM - edited 03-03-2019 04:26 AM
what do we use these for, are they to stop routes being injected into a routing protocol ? can anyone give me an example ?
08-09-2006 05:54 AM
RouterA's networks
192.168.1.0 /24
192.168.2.0 /24
192.168.3.0 /24
Router B's networks
192.168.4.0 /24
192.168.5.0 /24
192.168.6.0 /24
Both routers are running EIGRP and you want to block
192.168.1.0 /24 from being advertised from RouterA to RouterB.
On RouterA you type the following:
access-list 5 permit 192.168.2.0 0.0.0.255
access-list 5 permit 192.168.3.0 0.0.0.255
router eigrp 1
network 192.168.0.0 0.0.255.255
distribute-list 5 out
no auto-summary.
08-09-2006 07:55 AM
in which case would you just not advertise 192.168.1.0 in the first place ?
08-09-2006 08:00 AM
The access-list can be modified in different ways to block 192.168.1.0 / 24 from being advertised. Here is another approach:
On RouterA you type the following:
access-list 5 deny 192.168.1.0 0.0.0.255
access-list 5 permit any
router eigrp 1
network 192.168.0.0 0.0.255.255
distribute-list 5 out
no auto-summary.
08-09-2006 06:12 AM
a 'distribute-list' is used to define what specific routing updates are sent/received by a routing protocol such as eigrp or ospf.
for example, if you have a requirement that your ospf network does not receive certain routing updates, you can create a 'distribute-list' in router configuration mode.
see these links for more info:
08-09-2006 07:55 AM
What other said is correct. It is for route filtering. You can use prefix list or access list. Prefix list allows for more options for the route manipulation. Moreover, in prefix list you can add modify individual lines without the need to remove and recreate ACLs.
Hope this helps,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide