No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FAQ - How to Address the Problem That import route static for BGP Fails to Advertise the Default Route

Publication Date:  2013-09-24 Views:  45 Downloads:  0
Issue Description

Running the import route static command for BGP fails to advertise the default route.

Configurations on PE1:

[PE1]
#
bgp 100
#
ipv4-family vpn-instance vpna
import-route direct
import-route static
#
ip route-static vpn-instance vpna 0.0.0.0 0.0.0.0 192.168.1.2
ip route-static vpn-instance vpna 172.100.100.0 255.255.255.0 192.168.1.2

VPN routing table on PE1:

[PE1]display bgp vpnv4 vpn-instance vpna routing-table

Total Number of Routes: 4

BGP Local router ID is 10.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

*>i 100.1.1.0/24 1.1.1.1 0 100 0 ?
*> 172.100.100.0/24 0.0.0.0 0 0 ?
*> 192.168.1.0/30 0.0.0.0 0 0 ?
*> 192.168.1.1/32 0.0.0.0 0 0 ?

The default route in the VPN routing table on PE1 does not take effect.

Common static routes are advertised by running the import-route static command.

The VPN routing table on PE2 fails to learn the default route from PE1.

display bgp vpnv4 vpn-instance vpna routing-table

Total Number of Routes: 4

BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 100.1.1.0/24 0.0.0.0 0 0 ?
*> 100.1.1.1/32 0.0.0.0 0 0 ?
*>i 172.100.100.0/24 4.4.4.4 0 100 0 ?
*>i 192.168.1.0/30 4.4.4.4 0 100 0 ?
Handling Process
None
Root Cause
BGP uses the import-route command. The default route cannot be imported by running the import-route static command.
Solution

Method 1: Use network 0.0.0.0 to advertise the default route.

PE1
#
bgp 100
#
ipv4-family vpn-instance vpna
network 0.0.0.0
import-route direct

Method 2: Run the default-route imported and import-route static commands to advertise the default route.

PE1
#
bgp 100
#
ipv4-family vpn-instance vpna
default-route imported
import-route static
import-route direct

Check the VPN routing table on PE2.

display bgp vpnv4 vpn-instance vpna routing-table

Total Number of Routes: 4

BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

*>i 0.0.0.0 4.4.4.4 0 100 0 i
*> 100.1.1.0/24 0.0.0.0 0 0 ?
*> 100.1.1.1/32 0.0.0.0 0 0 ?
*>i 192.168.1.0/30 4.4.4.4 0 100 0 ?
Suggestions
None

END