cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4984
Views
15
Helpful
6
Replies

BGP Neighbor Shutdown

GRANT3779
Spotlight
Spotlight

Hi CSC,

 

Under my BGP process, is there a way to shutdown all my different eBGP neighbors at once, whilst leaving my iBGP neighbors up?

 

I believe I can see a way to shutdown all neighbors but is this taking down all iBGPs also?

2 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

 

You would need to use peer groups ie. you assign all the EBGP neighbors to a peer group and then - 

 

"neighbor <peer group name> shutdown" 

 

Jon

View solution in original post

Hello,

 

put all your eBGP neighbors in a peer group:

 

router bgp 1
bgp router-id 1.1.1.1
neighbor eBGP peer-group
neighbor 192.168.12.2 remote-as 2
neighbor 192.168.12.2 peer-group eBGP
neighbor 192.168.13.3 remote-as 3
neighbor 192.168.13.3 peer-group eBGP

 

When you issue the command:

 

neighbor eBGP shutdown

 

all routers in the peer group will be shut...

View solution in original post

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

 

You would need to use peer groups ie. you assign all the EBGP neighbors to a peer group and then - 

 

"neighbor <peer group name> shutdown" 

 

Jon

Hello,

 

put all your eBGP neighbors in a peer group:

 

router bgp 1
bgp router-id 1.1.1.1
neighbor eBGP peer-group
neighbor 192.168.12.2 remote-as 2
neighbor 192.168.12.2 peer-group eBGP
neighbor 192.168.13.3 remote-as 3
neighbor 192.168.13.3 peer-group eBGP

 

When you issue the command:

 

neighbor eBGP shutdown

 

all routers in the peer group will be shut...

Thanks both,
So under my BGP process I had a look just to see this but I do not see peer-group option to shutdown? Or is it the "TAG"?

EDGE-TEST(config-router)#neighbor ?
A.B.C.D Neighbor address
WORD Neighbor tag
X:X:X:X::X Neighbor IPv6 address

Or do I need to create the peer-group first before it will the option appears?

Hello,

 

the tag is the peer group name.

 

If you type:

 

EDGE-TEST(config-router)#neighbor EBGP

 

and then enter the '?' the next option will be 'peer-group'. Once the peer group is created, you can type:

 

neighbor EBGP shutdown

 

 

So I currently use policy templates (peer-sessions, peer-policy). Is this "the newer" way forward?

Can I use template as the "tag" to shutdown all peers that have a specific peer-session template applied? e.g
template peer-session Test-eBGP
neighbor Test-eBGP shutdown

I read that i cannot use peer groups and peer templates in the same neighbor configuration?
Thanks all

Hello,

 

you can also configure an EEM script to achieve the same result:

 

event manager applet SHUT_EBGP
event none
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "router bgp 1"
action 4.0 cli command "neighbor 192.168.12.2 shut"
action 5.0 cli command "neighbor 192.168.13.3 shut"
action 6.0 cli command "end"
action 7.0 puts "$_cli_result"

 

Run this script from the exec prompt:

 

Router#event manager run SHUT_EBGP