beautypg.com

Advertised networks, Static networks, Route reflection – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 629

background image

switch(config-bgp-ipv4u)# redistribute ?

Possible completions:

connected Connected

ospf Open Shortest Path First (OSPF)

static Static routes

While redistributing routes learned by OSPF, you can specify the type of routes to be redistributed. You
can choose to redistribute internal, external type1, or external type2 routes.

The redistribute ospf command redistributes internal OSPF routes in a way that is equivalent to the
effect of the redistribute ospf match internal command, as illustrated in this running-config excerpt:

router bgp

local-as 6500

address-family ipv4 unicast

redistribute ospf match internal

redistribute ospf match external1

redistribute ospf match external2

Advertised networks

As described in the previous section, you can advertise routes into BGP by redistributing static,
connected, or OSPF routes. However, you can explicitly specify routes to be advertised by BGP by
using the network command in IPv4 address-family submode:

switch(config-bgp-ipv4u)# network 10.40.25.0/24

Before BGP can advertise this route, the routing table must have this route already installed.

Another use of the network command is to specify a route to be local. In case the same route is
received by means of EBGP, the local IGP route will be preferred. The backdoor parameter changes
the administrative distance of the route to this network from the EBGP administrative distance (20 by
default) to the local BGP4 weight (200 by default), tagging the route as a backdoor route. Use this
parameter when you want the device to prefer IGP routes such as RIP or OSPF routes over the EBGP
route for the network.

switch(config-bgp-ipv4u)# network 10.40.25.0/24 backdoor

The neighbor weight command specifies a weight that the device adds to routes that are received from
the specified BGP neighbor. (BGP4 prefers larger weights over smaller weights.)

Static networks

Before advertising any route, BGP checks for its existence in the routing table. If you want BGP to
advertise a stable route that does not depend on its existence in the routing table, then use the static-
network
command to advertise that network:

switch(config-bgp-ipv4u)# static-network 10.40.25.0/24

When the configured route is lost, BGP installs the "null0" route in the routing table. Later, when the
route is resolved, the null0 route is removed. You can override the administrative local distance of 200
by specifying the distance value in the command:

switch(config-bgp-ipv4u)# static-network 10.40.25.0/24 distance 300

Route reflection

A BGP device can act as a route-reflector client or as a route reflector. You can configure a BGP peer
as a route-reflector client from the device that is going to reflect the routes and act as the route reflector:

switch(config-bgp-ipv4u)# neighbor 10.61.233.2 route-reflector-client

Advertised networks

Network OS Administrator’s Guide

629

53-1003225-04