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

BGP filter only ip

rdrigues
Level 1
Level 1

Hello,

I would like you to help me with the question below:

I have BGP below with AS 65400;

neighbor 10.117.6.3
remote-as 65400
local-as 65401
address-family ipv4 unicast

I want the partner AS to know only one

/24

network using

route-map

How can I make a

route-map

allowing only this network?

2 Accepted Solutions

Accepted Solutions

M02@rt37
VIP
VIP

Hello @rdrigues,

First, create a Prefix List matching the

/24

to announce (outbound) :

ip prefix-list ALLOW_ONLY_24 permit 10.0.0.0/24

Then, create a

Route Map

references this Prefix List :

route-map ALLOW_ONLY_24_NETWORK permit 10
match ip address prefix-list ALLOW_ONLY_24

Finally, apply this

Route Map

to your neihgbor:

router bgp 65400
neighbor 10.117.6.3
route-map ALLOW_ONLY_24_NETWORK out

Note: you could use ACL instead of Prefix List, and in the same way call this ACL under your

Route Map
Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

Gopinath_Pigili
Spotlight
Spotlight
Router(config)# ip prefix-list list-1 permit x.x.x.x/24

Router(config)# route-map map-1 permit 10
Router(config-route-map)# match ip addess prefix-list list-1
Router(config-route-map)#end

Router(config)# router bgp 65400
Router(config-router)# adddress-family ipv4 unicast
Router(config-router-af)#neighbor 10.117.6.x route-map map-1 out
Router(config-route-map)#end

Best regards
******* If This Helps, Please Rate *******

 

 

View solution in original post

3 Replies 3

M02@rt37
VIP
VIP

Hello @rdrigues,

First, create a Prefix List matching the

/24

to announce (outbound) :

ip prefix-list ALLOW_ONLY_24 permit 10.0.0.0/24

Then, create a

Route Map

references this Prefix List :

route-map ALLOW_ONLY_24_NETWORK permit 10
match ip address prefix-list ALLOW_ONLY_24

Finally, apply this

Route Map

to your neihgbor:

router bgp 65400
neighbor 10.117.6.3
route-map ALLOW_ONLY_24_NETWORK out

Note: you could use ACL instead of Prefix List, and in the same way call this ACL under your

Route Map
Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Gopinath_Pigili
Spotlight
Spotlight
Router(config)# ip prefix-list list-1 permit x.x.x.x/24

Router(config)# route-map map-1 permit 10
Router(config-route-map)# match ip addess prefix-list list-1
Router(config-route-map)#end

Router(config)# router bgp 65400
Router(config-router)# adddress-family ipv4 unicast
Router(config-router-af)#neighbor 10.117.6.x route-map map-1 out
Router(config-route-map)#end

Best regards
******* If This Helps, Please Rate *******

 

 

rdrigues
Level 1
Level 1

wonderful, I'll do some tests

Review Cisco Networking for a $25 gift card