beautypg.com

Modifying redistribution parameters, Enabling recursive next-hop lookups, Redistributing connected routes – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 255

background image

Brocade Virtual ADX Switch and Router Guide

241

53-1003246-01

Modifying redistribution parameters

8

The device can use this route because it has an IP route to the next-hop gateway. Without recursive
next-hop lookups, this route would not be in the IP route table.

Enabling recursive next-hop lookups

The recursive next-hop lookups feature is disabled by default.

To enable recursive next-hop lookups, enter the following command at the BGP4 configuration level
of the CLI.

Virtual ADX(config-bgp)# next-hop-recursion

Syntax: [no] next-hop-recursion

Modifying redistribution parameters

By default, the device does not redistribute route information between BGP4 and OSPF. You can
configure the device to redistribute OSPF routes, directly connected routes, or static routes into
BGP4.

To enable redistribution of all OSPF routes and directly attached routes into BGP4, enter the
following commands.

Virtual ADX(config)# router bgp

Virtual ADX(config-bgp)# redistribute ospf

Virtual ADX(config-bgp)# redistribute connected

Virtual ADX(config-bgp)# write memory

Syntax: [no] redistribute connected | ospf | static

The connected parameter indicates that you are redistributing routes to directly attached devices
into BGP4.

The ospf parameter indicates that you are redistributing OSPF routes into BGP4.

NOTE

Entering redistribute ospf simply redistributes internal OSPF routes. To redistribute external OSPF
routes also, use the redistribute ospf match external... command. Refer to

“Redistributing OSPF

external routes”

on page 242.

The static parameter indicates that you are redistributing static routes into BGP4.

Redistributing connected routes

To configure BGP4 to redistribute directly connected routes, enter the following command.

Virtual ADX# show ip route 10.0.0.0/2

Total number of IP routes: 38

Start index: 1 B:BGP Be:EBGP Bi:IBGP D:Connected S:Static

O:OSPF IA:Inter area IR:Intra area E1:External type 1 E2:External type 2

(N): Don't advertise *:Candi-default

Destination

NetMask

Gateway

Port

Cost

Type

--------------------------------------------------------------------------

1

10.0.0.0

255.255.255.0

10.0.0.1

1/1

1

B

AS_PATH: 65001 4355 1