HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference

335
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
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view:
import-route protocol [ { process-id | all-processes } [ 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 [ 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 specific 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.
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.