Configuring the med attribute, Configuring the next_hop attribute – H3C Technologies H3C S12500 Series Switches User Manual

Page 242

Advertising
background image

226

Configuring the MED attribute

When other conditions of routes to a destination are identical, the route with the smallest MED is

selected.
To configure the MED attribute:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view.

bgp as-number

N/A

3.

Enter IPv4 MBGP address family
view.

ipv4-family multicast

N/A

4.

Configure the MED attribute.

Configure the default MED value:

default med med-value

Enable the comparison of the MED

of routes from different Ass:

compare-different-as-med

Enable the comparison of the MED

of routes from each AS:

bestroute compare-med

Enable the comparison of the MED

of routes from confederation peers:

bestroute med-confederation

Optional.
The default MED value is 0.
Not enabled by default.

Configuring the NEXT_HOP attribute

You can use the peer next-hop-local command to specify the local switch as the next hop of routes sent

to a MBGP IBGP peer or peer group. If load balancing is configured, the switch specifies itself as the next

hop of route advertisements to the multicast IBGP peer or peer group regardless of whether the peer

next-hop-local command is configured.
In a "third party next hop" network, that is, when the local switch has two multicast EBGP peers in a

broadcast network, the switch does not specify itself as the next hop of routing information sent to the

EBGP peers unless the peer next-hop-local command is configured.
To specify the switch as the next hop of routes sent to a peer/peer group:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view.

bgp as-number

N/A

3.

Enter IPv4 MBGP address family
view.

ipv4-family multicast

N/A

Advertising