06-20-2018 06:22 AM - edited 03-05-2019 10:37 AM
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?
Solved! Go to Solution.
06-20-2018 07:38 AM
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
06-20-2018 07:51 AM
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...
06-20-2018 07:38 AM
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
06-20-2018 07:51 AM
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...
06-20-2018 08:35 AM
06-20-2018 08:37 AM - edited 06-20-2018 08:39 AM
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
06-20-2018 08:54 AM
06-20-2018 09:09 AM
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
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