04-04-2015 06:48 PM - edited 03-05-2019 01:10 AM
Hi All
I have a question. Anyone can give me an explanation about distribute-list? What is meaning of "gateway" ? Thank you
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
ip prefix-list allowlist seq5 permit 192.168.1.1/32
router rip
network 172.18.0.0
distribute-list prefix max24 gateway allowlist in
gateway prefix-list-name | (Optional) Name of the prefix list to be applied to the gateway of the prefix being updated. |
Solved! Go to Solution.
04-04-2015 10:03 PM
prefix-list is used generally when you want to control the routes(prefixes) that is being sent or received to neighbors in routing protocols like RIP,EIGRP,BGP, it can also be .for route tagging etc.
In prefix list for example
a.b.c.d/x ge y le z
x bits should always match in prefix while the subnets should be <= than (le) z and >=(ge) y
10.1.0.0/16 le 24 ge 16 will have 10.1.0.0/18 but no 10.1.1.127/25.
Distribute-list to used to suppress the routes either in inbound or outbound direction. Say from other end of eigrp neighbor router you are receiving x,y,z routes, but you want only x in your RIB. So you can deny route y and z. Similarly your router is advertising routes to its neighbor and you want to hide some routes from them, you can do so with help of distribute-list.
Gateway keyword is used to specify the neighbor from/to you are denying/sending routes. In simple term you have two RIP neighbors you want to send route only to one particular neighbor but not other one.
04-04-2015 10:03 PM
prefix-list is used generally when you want to control the routes(prefixes) that is being sent or received to neighbors in routing protocols like RIP,EIGRP,BGP, it can also be .for route tagging etc.
In prefix list for example
a.b.c.d/x ge y le z
x bits should always match in prefix while the subnets should be <= than (le) z and >=(ge) y
10.1.0.0/16 le 24 ge 16 will have 10.1.0.0/18 but no 10.1.1.127/25.
Distribute-list to used to suppress the routes either in inbound or outbound direction. Say from other end of eigrp neighbor router you are receiving x,y,z routes, but you want only x in your RIB. So you can deny route y and z. Similarly your router is advertising routes to its neighbor and you want to hide some routes from them, you can do so with help of distribute-list.
Gateway keyword is used to specify the neighbor from/to you are denying/sending routes. In simple term you have two RIP neighbors you want to send route only to one particular neighbor but not other one.
04-05-2015 01:06 PM
Excellent ! Thank you
04-05-2017 02:38 PM
the gateway keyword further let's you choose from or to which gateway the prefix filtering will be effective. let's say R5 has 10.0.0.0 advertised by R1 and R2 on equal cost. you want R5 to deny R2 to send in 10 network! you simply mention gateway and ip address of R2 in in direction
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