beautypg.com

Specifying a list of networks to advertise – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual

Page 91

background image

Multi-Service IronWare Routing Configuration Guide

63

53-1003033-02

Administratively shutting down a session with a BGP4 neighbor

NOTE

You must add the peer group before you can add neighbors to it.

Administratively shutting down a session with a BGP4 neighbor

You can prevent the device from starting a BGP4 session with a neighbor by administratively
shutting down the neighbor. This option is very useful for situations in which you want to configure
parameters for a neighbor, but are not ready to use the neighbor. You can shut the neighbor down
as soon as you have added it the device, configure the neighbor parameters, then allow the device
to reestablish a session with the neighbor by removing the shutdown option from the neighbor.

When you apply the option to shut down a neighbor, the option takes place immediately and
remains in effect until you remove it. If you save the configuration to the startup configuration file,
the shutdown option remains in effect even after a software reload.

The software also contains an option to end the session with a BGP4 neighbor and clear the routes
learned from the neighbor. Unlike this clear option, the option for shutting down the neighbor can
be saved in the startup configuration file and can prevent the device from establishing a BGP4
session with the neighbor even after reloading the software.

NOTE

If you notice that a particular BGP4 neighbor never establishes a session with the device, check the
running configuration and startup configuration files for that device to see whether the configuration
contains a command that is shutting down the neighbor. The neighbor may have been shut down
previously by an administrator.

To shut down a BGP4 neighbor, enter commands such as the following.

Brocade(config)# router bgp

Brocade(config-bgp)# neighbor 10.157.22.26 shutdown

Brocade(config-bgp)# write memory

Syntax: [no] neighbor ip-addr shutdown [generate-rib-out]

The ip-addr parameter specifies the IP address of the neighbor.

Specifying a list of networks to advertise

By default, the device sends BGP4 routes only for the networks you either identify with the network
command or are redistributed into BGP4 from OSPF, IS-IS, RIP, or connected routes.

NOTE

The exact route must exist in the IP route table before the device can create a local BGP4 route.

To configure the device to advertise network 10.157.22.0/24, enter the following command.

Brocade(config-bgp)# network 10.157.22.0 255.255.255.0

Syntax: [no] network ip-addr ip-mask [route-map map-name] | [weight num] | [backdoor]

The ip-addr is the network number and the ip-mask specifies the network mask.