HP 6125XLG Command Reference Manual page 269

Blade switch layer 3 - ip routing
Table of Contents

Advertisement

In BGP IPv6 unicast instance view/BGP-VPN IPv6 unicast instance 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 instance view, BGP-VPN IPv4 unicast instance view, BGP IPv6 unicast instance view,
BGP-VPN IPv6 unicast instance view
Predefined user roles
network-admin
Parameters
protocol: Redistributes routes from a specified IGP protocol. In BGP IPv4 unicast instance view/BGP-VPN
IPv4 unicast instance view, it can be direct, isis, ospf, rip, or static. In BGP IPv6 unicast instance
view/BGP-VPN IPv6 unicast instance 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
instance view/BGP-VPN IPv4 unicast instance view, it is available only when the protocol is isis, ospf, or
rip. In BGP IPv6 unicast instance view/BGP-VPN IPv6 unicast instance 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.
Usage guidelines
The import-route command cannot redistribute default IGP routes. To redistribute default IGP routes, use
the default-route imported command together with the import-route command.
Only active routes can be redistributed. You can use the display ip routing-table protocol or display ipv6
routing-table protocol command to view route state information.
The ORIGIN attribute of routes redistributed by the import-route command is INCOMPLETE.
Examples
# In BGP IPv4 unicast instance view, redistribute routes from RIP process 1, and set the MED value for
redistributed routes to 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] import-route rip 1 med 100
# In BGP-VPN IPv4 unicast instance view, redistribute routes from RIP process 1, and reference a routing
policy imprt to exclude route 1.1.1.0/24 from route redistribution.
<Sysname> system-view
[Sysname] ip prefix-list imprt deny 1.1.1.0 24
[Sysname] ip prefix-list imprt permit 0.0.0.0 0 less-equal 32
258

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents