11-37
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 connect-interface loopback 0
peer default-route-advertise
Syntax
peer
{
group-name
|
ipv4-address
|
ipv6-address
}
default-route-advertise
[
route-policy
route-policy-name
]
undo peer
{
group-name
|
ipv4-address
|
ipv6-address
}
default-route-advertise
View
IPv6 address family view
Default Level
2: System level
Parameters
group-name
: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters.
ipv4-address
: IPv4 address of a peer.
ipv6-address
: IPv6 address of a peer.
route-policy-name
: Route-policy name, a string of 1 to 19 characters.
Description
Use the
peer default-route-advertise
command to advertise a default route to a peer/peer group.
Use the
undo peer default-route-advertise
command to disable advertising a default route.
By default, no default route is advertised to a peer/peer group.
Using this command does not require the default route available in the routing table. With this
command used, the router sends the default route unconditionally to the peer/peer group with the next
hop being itself.
Examples
# Advertise a default route to peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 default-route-advertise
peer description (IPv6 address family view)
Syntax
peer
{
ipv6-group-name
|
ipv6-address
}
description
description-text
undo peer
{
ipv6-group-name
|
ipv6-address
}
description
View
IPv6 address family view