R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference

257
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 address family 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 address family 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
[Sysname] route-policy imprt permit node 0
[Sysname-route-policy-imprt-0] if-match ip address prefix-list imprt
[Sysname-route-policy-imprt-0] quit
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv4-family unicast
[Sysname-bgp-ipv4-vpn1] import-route rip 1 route-policy imprt
# In BGP IPv6 unicast address family view, redistribute routes from RIP process 1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family unicast
[Sysname-bgp-ipv6] import-route ripng
# In BGP-VPN IPv6 unicast address family view, redistribute routes from RIP process 1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv6-family unicast
[Sysname-bgp-ipv6-vpn1] import-route ripng
Related commands
display ip routing-table protocol
display ipv6 routing-table protocol
ip vpn-instance (BGP view)
Use ip vpn-instance to enter BGP-VPN instance view.
Use undo ip vpn-instance to remove all configurations in BGP-VPN instance view.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name