204
When you use this command, the router unconditionally sends a default route with the next hop as itself
to the peer or peer group regardless of whether the default route is available in the routing table.
Examples
# In IPv4 MBGP address family view, advertise a default route to the existing peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer test as-number 200
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer test enable
[Sysname-bgp-af-mul] peer test default-route-advertise
peer enable (MBGP address family view)
Syntax
peer
{
group-name
|
ip-address
}
enable
undo peer
{
group-name
|
ip-address
}
enable
View
IPv4 MBGP address family view
Default level
2: System level
Parameters
group-name
: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address
: Specifies an IPv4 MBGP peer by its IP address.
Description
Use
peer enable
to enable the specified peer or peer group that has been created in BGP view.
Use
undo peer enable
to disable the specified peer or peer group that has been created in BGP view.
If a peer is disabled, the router does not exchange routing information with the peer.
Examples
# Enable the peer 18.10.0.9.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 18.10.0.9 as-number 100
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer 18.10.0.9 enable
peer filter-policy (MBGP address family view)
Syntax
peer
{
group-name
|
ip-address
}
filter-policy
acl-number
{
export
|
import
}
undo peer
{
group-name
|
ip-address
}
filter-policy
[
acl-number
] {
export
|
import
}