256
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view:
import-route protocol [ { process-id | all-processes } [ allow-direct | med med-value | route-policy
route-policy-name ] * ]
undo import-route protocol [ process-id | all-processes ]
In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view:
import-route protocol [ process-id [ allow-direct | med med-value | route-policy
route-policy-name ] * ]
undo import-route protocol [ process-id ]
Default
BGP does not redistribute IGP routes.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6
unicast address family view, BGP-VPN IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
protocol: Redistributes routes from a specified IGP protocol. In BGP IPv4 unicast address family
view/BGP-VPN IPv4 unicast address family view, it can be direct, isis, ospf, rip, or static. In BGP
IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view, it can be direct, isisv6,
ospfv3, ripng, or static.
process-id: Specifies a process by its ID in the range of 1 to 65535. The default is 1. In BGP IPv4
unicast address family view/BGP-VPN IPv4 unicast address family view, it is available only when the
protocol is isis, ospf, or rip. In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast
address family view, it is available only when the protocol is isisv6, ospfv3, or ripng.
all-processes: Redistributes routes from all the processes of the specified IGP protocol. This
keyword takes effect only when the protocol is isis, ospf, or rip.
allow-direct: Redistributes the networks of the local interfaces enabled with the specified routing
protocol. By default, the networks of the local interfaces are not redistributed. If you specify both the
allow-direct keyword and the route-policy route-policy-name option, make sure the if-match rule
defined in the routing policy does not conflict with the allow-direct keyword. For example, if you
specify the allow-direct keyword, do not configure the if-match route-type rule for the routing policy.
Otherwise, the allow-direct keyword does not take effect.
med med-value: Specifies a MED value for redistributed routes, in the range of 0 to 4294967295. If
no MED is specified, the metric of a redistributed route is used as its MED.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to
63 characters, to filter redistributed routes or set route attributes for redistributed routes.