import-route (BGP-IPv4 multicast address family view)

Function

The import-route command configures MBGP to import routes from other protocols.

The undo import-route command cancels the configuration.

By default, MBGP does not import routes from other protocols.

Format

import-route { rip | isis | ospf } process-id [ [ med med-value ] | [ [ route-policy route-policy-name ] | [ route-filter route-filter-name ] ] ] *

undo import-route { rip | isis | ospf } process-id

Parameters

Parameter Description Value
rip

Configures MBGP to import RIP routes.

-

isis

Configures MBGP to import IS-IS routes.

-

ospf

Configures MBGP to import OSPF routes.

-

process-id

Specifies the process ID of the routing protocol. process-id must be specified to import routes from IS-IS, OSPF, or RIP.

The value is an integer that ranges from 1 to 4294967295

med med-value

Specifies the MED of the routes to be imported.

The value is an integer ranging from 0 to 4294967295.

route-policy route-policy-name

Specifies the route-policy used to filter routes and modify route attributes when these routes are imported from other protocols.

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 route-filter used to filter routes and modify route attributes when these routes are imported from other protocols.

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

The import-route command is used to import routes from another routing protocol.

The network command is used to import the optimal route of a certain prefix from any protocol.

Example

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