Configuration guidelines, Specifying an ipv6 bgp peer, Injecting a local ipv6 route – H3C Technologies H3C S12500 Series Switches User Manual

Page 373

Advertising
background image

357

Configuration guidelines

Create a peer group before configuring basic functions for it. For related information, see "

Configuring

IPv6 BGP peer group

."

Specifying an IPv6 BGP peer

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view.

bgp as-number

N/A

3.

Specify a router ID.

router-id router-id

Optional.
This step is required if no IP

addresses are configured for any
interfaces.

4.

Enter IPv6 address family view

or IPv6 BGP-VPN instance
view.

ipv6-family [ vpn-instance
vpn-instance-name ]

N/A

5.

Specify an IPv6 peer.

peer ipv6-address as-number
as-number

N/A

Injecting a local IPv6 route

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view.

bgp as-number

N/A

3.

Enter IPv6 address family view

or IPv6 BGP-VPN instance
view.

ipv6-family [ vpn-instance
vpn-instance-name ]

N/A

4.

Inject a local route into the
IPv6 BGP routing table.

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

route-policy-name ]

Not added by default.

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

If you both reference a routing policy and use the command peer { group-name | ipv6-address }
preferred-value value to set a preferred value for routes from a peer, the routing policy sets the specific

preferred value for routes matching it. If the preferred value in the routing policy is zero, the routes use the

value set with the peer { group-name | ipv6-address } preferred-value value command. For information

about using a routing policy to set a preferred value, see the command peer { group-name |
ipv4-address
| ipv6-address } route-policy route-policy-name { import | export } in this document, and

the command apply preferred-value preferred-value in Layer 3—IP Routing Command Reference.
To configure a preferred value for routes from a peer or peer group:

Advertising