Brocade Communications Systems Layer 3 Routing Configuration ICX 6650 User Manual

Page 326

Advertising
background image

308

Brocade ICX 6650 Layer 3 Routing Configuration Guide

53-1002603-01

Optional BGP4 configuration tasks

To configure the Layer 3 switch to advertise network 209.157.22.0/24, enter the following
command.

Brocade(config-bgp-router)#network 192.168.22.0 255.255.255.0

Syntax: network ip-addr ip-mask [nlri multicast | unicast | multicast unicast]

[route-map map-name] | [weight num] | [backdoor]

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

The nlri multicast | unicast | multicast unicast parameter specifies whether the neighbor is a
multicast neighbor or a unicast neighbor. Optionally, you also can specify unicast if you want the
Layer 3 switch to exchange unicast (BGP4) routes as well as multicast routes with the neighbor. The
default is unicast only.

The route-map map-name parameter specifies the name of the route map you want to use to set or
change BGP4 attributes for the network you are advertising. The route map must already be
configured.

The weight num parameter specifies a weight to be added to routes to this network.

The backdoor parameter changes the administrative distance of the route to this network from the
EBGP administrative distance (20 by default) to the Local BGP weight (200 by default), thus tagging
the route as a backdoor route. Use this parameter when you want the router to prefer IGP routes
such as RIP or OSPF routes over the EBGP route for the network.

Specifying a route map name when configuring BGP4 network information

You can specify a route map as one of the parameters when you configure a BGP4 network to be
advertised. The Layer 3 switch can use the route map to set or change BGP4 attributes when
creating a local BGP4 route.

To configure network information and use a route map to set or change BGP4 attributes, use the
following CLI method.

NOTE

You must configure the route map before you can specify the route map name in a BGP4 network
configuration.

To configure a route map, and use it to set or change route attributes for a network you define for
BGP4 to advertise, enter commands such as the following.

Brocade(config)#route-map set_net permit 1

Brocade(config-routemap set_net)#set community no-export

Brocade(config-routemap set_net)#exit

Brocade(config)#router bgp

Brocade(config-bgp-router)#network 10.100.1.0

/

24 route-map set_net

The first two commands in this example create a route map named “set_net” that sets the
community attribute for routes that use the route map to “NO_EXPORT”. The next two commands
change the CLI to the BGP4 configuration level. The last command configures a network for
advertising from BGP4, and associates the “set_net” route map with the network. When BGP4
originates the 10.100.1.0/24 network, BGP4 also sets the community attribute for the network to
“NO_EXPORT”.

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

Advertising