Advertising a default route to an IPv4 MBGP peer or peer
group
Follow these steps to advertise a default route to an MBGP peer or peer group:
To do...
Enter system view
Enter BGP view
Enter IPv4 MBGP address family
view
Advertise a default route to an
MBGP peer or peer group
NOTE:
With the peer default-route-advertise command executed, the router sends a default route with the
next hop as itself to the specified MBGP peer or peer group, regardless of whether the default route is
available in the routing table.
Configuring outbound MBGP route filtering
If several filtering policies are configured, they are applied in the following sequence:
filter-policy export
•
peer filter-policy export
•
peer as-path-acl export
•
peer ip-prefix export
•
peer route-policy export
•
Only the routes that have passed all the configured policies can be advertised.
Follow these steps to configure BGP route distribution filtering policies:
To do...
Enter system view
Enter BGP view
Enter IPv4 MBGP address family
view
Configure the filtering of
redistributed routes
Apply a routing policy to
advertisements to an IPv4 MBGP
peer/peer group
Use the command...
system-view
bgp as-number
ipv4-family multicast
peer { group-name | ip-address }
default-route-advertise [ route-
policy route-policy-name ]
Use the command...
system-view
bgp as-number
ipv4-family multicast
filter-policy { acl-number | ip-
prefix ip-prefix-name } export [
direct | isis process-id | ospf
process-id | rip process-id | static
]
peer { group-name | peer-address
} route-policy route-policy-name
export
224
Remarks
—
—
—
Required
Not advertised by default
Remarks
—
—
—
At least one of these approaches
is required. No outbound route
filtering is configured by default.