210
default-route imported
Use
default-route imported
to enable default route redistribution into the BGP routing table.
Use
undo default-route imported
to restore the default.
Syntax
default-route imported
undo default-route imported
Default
Default route redistribution is not enabled.
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
Usage guidelines
By default, BGP does not redistribute default IGP routes. You must use the
default-route imported
command together with the
import-route
command to redistribute default IGP routes into the BGP routing
table.
Examples
# In BGP IPv4 unicast instance view, enable default route redistribution from OSPF process 1 into the BGP
routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] default-route imported
[Sysname-bgp-ipv4] import-route ospf 1
# In BGP-VPN IPv4 unicast instance view, enable default route redistribution from OSPF process 1 into the
BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv4-family unicast
[Sysname-bgp-ipv4-vpn1] default-route imported
[Sysname-bgp-ipv4-vpn1] import-route ospf 1
# In BGP IPv6 unicast instance view, enable default route redistribution from OSPFv3 process 1 into the
IPv6 BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family unicast
[Sysname-bgp-ipv6] default-route imported
[Sysname-bgp-ipv6] import-route ospfv3 1