The network command configures MBGP to import routes from the local IP routing table.
The network route-filter command configures a filtering policy for local routes advertised by MBGP.
The undo network command cancels the configuration.
By default, MBGP does not import routes from the local IP routing table.
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies the IP address of a route to be imported from the local IP routing table. |
The address is in dotted decimal notation. |
mask |
Specifies the mask of the IP address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length of the IP address. |
The value is an integer that ranges from 0 to 32. |
route-policy route-policy-name |
Specifies the routing policy that is used for route import. |
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-name |
Specifies the name of a routing filter that is used for route import. |
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. |
Usage Scenario
The network [ route-policy ] command is used to import exactly-matching routes. This means that only the routes in the local IP routing table that exactly match the specified destination address and mask length can be added to the MBGP routing table. If the network mask is not specified, routes will be exactly matched against the natural network mask.
The network route-filter command configures a filtering policy for local routes advertised by MBGP. Routes that meet the filtering policy are not advertised by MBGP.<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] network 10.0.0.0 255.255.0.0 filter-policy abc
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] network 10.0.0.0 255.255.0.0