cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3763
Views
5
Helpful
3
Replies

Explanation about gateway in distribute-list?

wfqk
Level 5
Level 5

 

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.

1 Accepted Solution

Accepted Solutions

Pranay Prasoon
Level 3
Level 3

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. 

 


 

View solution in original post

3 Replies 3

Pranay Prasoon
Level 3
Level 3

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. 

 


 

Excellent ! Thank you

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