10-23-2025 10:53 AM
Hello All ;
I am trying to do Route leaking of Default route from GRT to MP BGP VPN4 and CPE having VRF OSPF instance as mentioned below but still am not able to do. I want to access internet from CPE35 . Below are some show output for your feedback and support.
Site01Edge101# show run | sec router ospf
router ospf 1
router-id 10.10.100.101
network 0.0.0.0 255.255.255.255 area 0
Site01Edge101#show ip route Gateway of last resort is 10.10.10.66 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 10.10.10.66, 06:24:12, GigabitEthernet0/1
10.0.0.0/8 is variably subnetted, 7 subnets, 3 masks
C 10.10.10.64/30 is directly connected, GigabitEthernet0/1
L 10.10.10.65/32 is directly connected, GigabitEthernet0/1
O 10.10.10.68/30 [110/2] via 10.10.10.66, 06:30:03, GigabitEthernet0/1
O 10.10.100.100/32
[110/2] via 10.10.10.66, 06:30:03, GigabitEthernet0/1
C 10.10.100.101/32 is directly connected, Loopback0
C 10.10.152.0/24 is directly connected, GigabitEthernet0/0
L 10.10.152.101/32 is directly connected, GigabitEthernet0/0
O 192.168.0.0/24 [110/2] via 10.10.10.66, 06:30:03, GigabitEthernet0/1
********************************************************************************
RTR-CPE35#show running-config | sec router ospf
router ospf 33 vrf CUST-A
redistribute bgp 65000 subnets
network 10.10.150.0 0.0.0.255 area 0
router ospf 1
network 10.10.152.0 0.0.0.255 area 0
RTR-CPE35#show running-config | sec router bgp
router bgp 65000
bgp log-neighbor-changes
redistribute connected
redistribute static
neighbor 192.168.100.36 remote-as 65000
neighbor 192.168.100.36 update-source Loopback0
neighbor 192.168.100.36 default-originate
neighbor 192.168.100.39 remote-as 65000
neighbor 192.168.100.39 update-source Loopback0
neighbor 192.168.100.39 default-originate
neighbor 192.168.100.40 remote-as 65000
neighbor 192.168.100.40 update-source Loopback0
neighbor 192.168.100.40 default-originate
!
address-family vpnv4
neighbor 192.168.100.36 activate
neighbor 192.168.100.36 send-community extended
neighbor 192.168.100.39 activate
neighbor 192.168.100.39 send-community extended
neighbor 192.168.100.40 activate
neighbor 192.168.100.40 send-community extended
exit-address-family
!
address-family ipv4 vrf CUST-A
redistribute ospf 33
default-information originate
exit-address-family
interface GigabitEthernet0/1
vrf forwarding CUST-A
ip address 10.10.150.35 255.255.255.0
duplex auto
speed auto
media-type rj45
RTR-CPE35#show ip route vrf CUST-A
Routing Table: CUST-A
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.150.0/24 is directly connected, GigabitEthernet0/1
L 10.10.150.35/32 is directly connected, GigabitEthernet0/1
192.168.33.0/32 is subnetted, 1 subnets
O 192.168.33.33 [110/2] via 10.10.150.33, 05:16:07, GigabitEthernet0/1
RTR-CPE35# SHOW RUN INT G0/1
Building configuration...
Current configuration : 140 bytes
!
interface GigabitEthernet0/1
vrf forwarding CUST-A
ip address 10.10.150.35 255.255.255.0
duplex auto
speed auto
media-type rj45
end
RTR-CPE35#
RTR-CPE35#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 10.10.152.101 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
10.0.0.0/8 is variably subnetted, 12 subnets, 3 masks
O 10.10.10.64/30
[110/2] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
O 10.10.10.68/30
[110/3] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
O 10.10.100.100/32
[110/3] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
O 10.10.100.101/32
[110/2] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
C 10.10.152.0/24 is directly connected, GigabitEthernet0/0
L 10.10.152.35/32 is directly connected, GigabitEthernet0/0
C 10.10.154.0/24 is directly connected, GigabitEthernet0/3
L 10.10.154.35/32 is directly connected, GigabitEthernet0/3
C 10.10.155.0/24 is directly connected, GigabitEthernet0/4
L 10.10.155.35/32 is directly connected, GigabitEthernet0/4
C 10.10.157.0/24 is directly connected, GigabitEthernet0/2
L 10.10.157.35/32 is directly connected, GigabitEthernet0/2
O 192.168.0.0/24 [110/3] via 10.10.152.101, 05:03:09, GigabitEthernet0/0
192.168.100.0/32 is subnetted, 1 subnets
C 192.168.100.35 is directly connected, Loopback0
RTR-CPE35#
RTR-CPE35#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/12/16 ms
RTR-CPE35#
**************************************************************************
RTR-CPE-33#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.150.0/24 is directly connected, GigabitEthernet0/0
L 10.10.150.33/32 is directly connected, GigabitEthernet0/0
192.168.33.0/32 is subnetted, 1 subnets
C 192.168.33.33 is directly connected, Loopback100
192.168.100.0/32 is subnetted, 1 subnets
C 192.168.100.33 is directly connected, Loopback0
RTR-CPE-33#show run | sec
% Incomplete command.
RTR-CPE-33#
RTR-CPE-33# show run | sec router ospf
router ospf 33
router-id 192.168.33.33
network 10.10.150.0 0.0.0.255 area 0
network 192.168.33.33 0.0.0.0 area 0
RTR-CPE-33#
RTR-CPE-33#
RTR-CPE-33#show ip ospf ne
RTR-CPE-33#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.10.150.35 1 FULL/DR 00:00:32 10.10.150.35 GigabitEthernet0/0
RTR-CPE-33#show ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.10.150.33 YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM up up
GigabitEthernet0/2 unassigned YES NVRAM down down
GigabitEthernet0/3 unassigned YES NVRAM down down
GigabitEthernet0/4 unassigned YES NVRAM down down
GigabitEthernet0/5 unassigned YES NVRAM down down
GigabitEthernet0/6 unassigned YES NVRAM down down
GigabitEthernet0/7 unassigned YES NVRAM down down
Loopback0 192.168.100.33 YES NVRAM up up
Loopback100 192.168.33.33 YES NVRAM up up
RTR-CPE-33#ping 10.10.150.35
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.150.35, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
RTR-CPE-33#
******************************************************************
10-23-2025 11:29 AM
Hello @uni1389
You could manually add a static default route into the VRF and redistribute it into MP-BGP ? The VRF defaut route will be announced to remote VRF sites via BGP VPNv4...
10-23-2025 12:32 PM - edited 10-23-2025 12:50 PM
Hi, check the following features/documents
- BGP Support for IP Prefix Import from Global Table into a VRF Table
- BGP Support for IP Prefix Export from a VRF Table into the Global Table
https://www.cisco.com/c/en/us/td/docs/ios/12_2s/feature/guide/fs_bgivt.html
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-16-10/irg-xe-16-10-book/irg-prefix-export.html
10-24-2025 08:00 AM
I have tried but still not getting to fix this issue.
RTR-CPE35#show running-config | sec router bgp
router bgp 65000
bgp log-neighbor-changes
redistribute ospf 1
neighbor 192.168.100.36 remote-as 65000
neighbor 192.168.100.36 update-source Loopback0
neighbor 192.168.100.36 default-originate
neighbor 192.168.100.39 remote-as 65000
neighbor 192.168.100.39 update-source Loopback0
neighbor 192.168.100.39 default-originate
neighbor 192.168.100.40 remote-as 65000
neighbor 192.168.100.40 update-source Loopback0
neighbor 192.168.100.40 default-originate
!
address-family vpnv4
neighbor 192.168.100.36 activate
neighbor 192.168.100.36 send-community extended
neighbor 192.168.100.39 activate
neighbor 192.168.100.39 send-community extended
neighbor 192.168.100.40 activate
neighbor 192.168.100.40 send-community extended
exit-address-family
!
address-family ipv4 vrf CUST-A
exit-address-family
RTR-CPE35#show running-config | sec router ospf
router ospf 33 vrf CUST-A
redistribute bgp 65000 subnets
network 10.10.150.0 0.0.0.255 area 0
router ospf 1
mpls ldp autoconfig
router-id 192.168.100.35
redistribute bgp 65000 subnets
network 10.10.152.0 0.0.0.255 area 0
network 10.10.154.0 0.0.0.255 area 0
network 10.10.155.0 0.0.0.255 area 0
network 10.10.157.0 0.0.0.255 area 0
network 192.168.100.35 0.0.0.0 area 0
RTR-CPE35#show running-config | sec ip prefix
ip prefix-list CUST-A_TO_GRT seq 5 permit 192.168.33.33/32
ip prefix-list GLOBAL_TO_VRF seq 5 permit 0.0.0.0/0
ip prefix-list GLOBAL_TO_VRF seq 15 permit 10.10.152.0/24
ip prefix-list GLOBAL_TO_VRF seq 25 permit 10.10.100.101/32
RTR-CPE35#show running-config | sec route-map
route-map GLOBAL_TO_VRF_CUST-A permit 10
match ip address prefix-list GLOBAL_TO_VRF
route-map VRF-CUST-A-GRT permit 10
match ip address prefix-list CUST-A_TO_GRT
10-27-2025 05:15 AM
Please provide following outputs for troubleshooting purposes:
show ip vrf detail
show ip bgp vpnv4 all
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide