R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

374
Examples
# Configure BGP to ignore the first AS number of EBGP route updates.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ignore-first-as
import-route
Use import-route to enable BGP to redistribute routes from an IGP protocol.
Use undo import-route to disable route redistribution from an IGP protocol.
Syntax
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 ]
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, BGP IPv4 multicast address family view,
BGP IPv6 multicast 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/BGP IPv4
multicast 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/BGP IPv6
multicast 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/BGP IPv4
multicast 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/BGP IPv6
multicast 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. In BGP IPv4
unicast address family view/BGP-VPN IPv4 unicast address family view/BGP IPv4 multicast address
family view, this keyword takes effect only when the protocol is isis, ospf, or rip. In BGP IPv6 unicast
address family view/BGP-VPN IPv6 unicast address family view/BGP IPv6 multicast address family view,
this keyword takes effect only when the protocol is isisv6, ospfv3, or ripng.
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