399
peer route-policy (IPv6 MBGP address family view)
Syntax
peer
{
ipv6-group-name
|
ipv6-address
}
route-policy
route-policy-name
{
import
|
export
}
undo peer
{
ipv6-group-name
|
ipv6-address
}
route-policy
route-policy-name
{
import
|
export
}
View
IPv6 MBGP address family view
Default level
2: System level
Parameters
ipv6-group-name
: Specifies an IPv6 MBGP peer group by its name, a string of 1 to 47 characters.
ipv6-address
: Specifies an IPv6 MBGP peer by its IP address.
route-policy-name
: Specifies a routing policy name, a case-sensitive string of 1 to 63 characters.
import
: Applies the routing policy to routes received from the IPv6 MBGP peer or the peer group.
export
: Applies the routing policy to routes advertised to the IPv6 MBGP peer or the peer group.
Description
Use
peer
route-policy
to apply a routing policy to routes incoming from or outgoing to an IPv6 MBGP
peer or peer group.
Use
undo peer route-policy
to remove the configuration.
By default, no routing policy is applied to the routes incoming from or outgoing to an IPv6 MBGP peer
or peer group.
The
if-match interface
clause in the routing policy referenced by the
peer
route-policy
command is not
applied.
For more information, see
Layer 3—IP Routing Command Reference.
Examples
# Apply the routing policy
test-policy
to routes received from the IPv6 MBGP peer group
test
.
<Sysname> system-view
[Sysname] route-policy test-policy permit node 10
[Sysname-route-policy] if-match cost 10
[Sysname-route-policy] apply cost 65535
[Sysname-route-policy] quit
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] quit
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] peer test enable
[Sysname-bgp-af-ipv6-mul] peer test route-policy test-policy import