R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference
222
[Sysname] bgp 100
[Sysname-bgp] default med 25
# In BGP-VPN instance view, configure the default MED as 25. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] default med 25
default-route imported (BGP/BGP-VPN instance view)
Use default-route imported to allow default route redistribution into the BGP routing table.
Use undo default-route imported to disallow the redistribution.
Syntax
default-route imported
undo default-route imported
Default
Default route redistribution is not allowed.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Usage guidelines
You must use the default-route imported command together with the import-route command to
redistribute default routes from other protocols.
Examples
# In BGP view, allow default route redistribution from OSPF into BGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default-route imported
[Sysname-bgp] import-route ospf 1
# In BGP-VPN instance view, enable redistributing default route from OSPF into BGP. (The VPN has been
created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] default-route imported
[Sysname-bgp-ipv4-vpn1] import-route ospf 1
Related commands
import-route










