default-route imported (BGP-IPv4 multicast address family view)

Function

The default-route imported command configures MBGP to add default routes to the MBGP routing table.

The undo default-route imported command restores the default configuration.

By default, MBGP does not add default routes to the MBGP routing table.

Format

default-route imported

undo default-route imported

Parameters

None

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

To import default routes, you need to run both the default-route imported command and the import-route command. If only the import-route command is used, default routes cannot be imported. In addition, the default-route imported command is used to import only the default routes that exist in the local routing table.

When a device needs to advertise default routes to a peer or a peer group and no default route exists in the local routing table, the peer default-route-advertise command needs to be used.

Example

# Import default routes to the MBGP routing table.
<HUAWEI> system-view
[~HUAWEI] bgp 1
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] default-route imported
[*HUAWEI-bgp-af-multicast] import-route ospf 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >