beautypg.com

Controlling route distribution and reception, Configuration prerequisites, Injecting a local ipv6 mbgp route – H3C Technologies H3C S10500 Series Switches User Manual

Page 450: Controlling route distribution and, Reception

background image

435

Configuring a preferred value for routes from a peer or a peer
group

Follow these steps to configure a preferred value for routes from a peer or a peer group:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter BGP view

bgp as-number

Enter IPv6 MBGP address family
view

ipv6-family multicast

Specify a preferred value for routes
received from the IPv6 MBGP peer

or the peer group

peer { ipv6-group-name |
ipv6-address
} preferred-value

value

Optional
The preferred value defaults to 0.

CAUTION:

If you both reference a routing policy and use the command peer {

ipv6-group-name | ipv6-address }

preferred-value

value to set a preferred value for routes from a peer or a peer group, the routing policy

sets the specified preferred value for the routes that match it. Other routes that do not match the routing

policy use the value set through the command. If the preferred value in the routing policy is 0, the routes
that match it will also use the value set through the peer {

ipv6-group-name | ipv6-address }

preferred-value

value command. To learn how to use a routing policy to set a preferred value, see the

peer {

ipv6-group-name | ipv6-address } route-policy route-policy-name { import | export } command

and the apply preferred-value

preferred-value command. For more information about these commands,

see

Layer 3—IP Routing Command Reference.

Controlling route distribution and reception

Configuration prerequisites

Before you configure this task, complete the following tasks:

Enable IPv6

Configure the IPv6 MBGP basic functions

Injecting a local IPv6 MBGP route

Follow these steps to inject a local IPv6 MBGP route:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter BGP view

bgp as-number

Enter IPv6 MBGP address family
view

ipv6-family multicast

Inject a network into the IPv6
MBGP routing table

network ipv6-address prefix-length
[ route-policy route-policy-name | short-cut ]

Required
Not injected by default.