cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6391
Views
5
Helpful
18
Replies

BGP Routes specific to neighbor?

dclarolh1
Level 1
Level 1

Hello,

I would only like to advertise certain BGP networks to specific neighbors. How can this be achieved?

Any help is appreciated.

18 Replies 18

that's nx-os nexus,  I have been giving you commands for IOS for bgp

this is how you do it in nexus under address family

switch# configure terminal
switch(config)# ip prefix-list allowprefix 10 permit 192.0.2.0 eq 24
switch(config)# ip prefix-list allowprefix 20 permit 209.165.201.0 eq 27
switch(config) router bgp 65536:20
switch(config-router)# neighbor 192.0.2.1/16 remote-as 65536:20
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# prefix-list allowprefix in
switch(config-router-neighbor-af)#

Thank you.

Not sure what the :20 is in the AS number?

So my config would look more like this:


ip prefix-list xx-mpls-filter 10 permit 172.22.16.204 eq 32
ip prefix-list xx-mpls-filter 5 deny 0.0.0.0 eq 0

router bgp xxxx
neighbor x.x.x.x remote-as xxxx
address-family ipv4 unicast
prefix-list xx-mpls-filter in

Yes don't worry about the :20 not required your setup , and yes follow that method should work for you just change that last prefix list to le 32 so it blocks everything else 0.0.0.0/0 le 32

that output is usually in nexus to say your trying to configure something in wrong section , can you paste exactly what your doing so can see why its blocking it

Review Cisco Networking for a $25 gift card