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

Function

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

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

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

Format

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

peer peerIpv4Addr default-route-advertise route-filter route-filter-name

undo peer peerIpv4Addr default-route-advertise

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IP address of an MBGP peer.

The value is in dotted decimal notation.

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, 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.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 10
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 default-route-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >