peer default-route-advertise (BGP-IPv4 multicast address family view) (group)

Function

The peer default-route-advertise command configures an MBGP device to advertise default routes to its peer group.

The undo peer default-route-advertise command cancels the configuration.

By default, an MBGP device does not advertise any default route to its peer group.

Format

peer peerGroupName default-route-advertise [ route-policy route-policy-name ]

peer peerGroupName default-route-advertise route-filter route-filter-name

undo peer peerGroupName default-route-advertise

Parameters

Parameter Description Value
peerGroupName

Specifies the name of an MBGP peer group.

The value is a string of 1 to 47 case-sensitive characters, spaces not supported.

route-policy route-policy-name

Specifies the name of a routing policy.

The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

route-filter route-filter-name

Specifies the name of a route-filter.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the peer default-route-advertise command is run on an MBGP device, the MBGP device sends a default route with its own address as the next hop to its peer group, regardless of whether there is a default route in the local routing table.

Example

# Configure an MBGP device to send default routes to a peer group named test.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer test enable
[*HUAWEI-bgp-af-multicast] peer test default-route-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >