Thursday, April 12, 2018

Default route via OSPF - MPLS

I have labbed up a small MPLS environment and wish now to redistribute a default route which is present on CE-3 to the other CE routers, with the purpose of funnelling all internet traffic through one site. Its present in the routing table for CE-2, but not CE-1

Please see image below: https://imgur.com/a/88R2p

CE-3 Config:

router ospf 1 redistribute static network 6.6.6.6 0.0.0.0 area 0 network 192.168.46.0 0.0.0.255 area 0 default-information originate ip route 0.0.0.0 0.0.0.0 192.168.67.7 

PE-2 Config:

ip vrf CustA rd 1:1 route-target export 1:1 route-target import 1:1 interface FastEthernet1/0 ip vrf forwarding CustA ip address 192.168.45.4 255.255.255.0 speed auto duplex auto ! router ospf 2 vrf CustA redistribute bgp 234 subnets network 192.168.45.0 0.0.0.255 area 0 network 192.168.46.0 0.0.0.255 area 0 ! router ospf 1 network 4.4.4.4 0.0.0.0 area 0 network 192.168.34.0 0.0.0.255 area 0 mpls ldp autoconfig ! router bgp 234 bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 234 neighbor 2.2.2.2 update-source Loopback0 ! address-family vpnv4 neighbor 2.2.2.2 activate neighbor 2.2.2.2 send-community extended exit-address-family ! address-family ipv4 vrf CustA redistribute ospf 2 exit-address-family 

CE-3 is showing the route in its table:

Gateway of last resort is 192.168.67.7 to network 0.0.0.0 

PE-2 Is showing the route in the associated VRF:

PE-2#sh ip ro vrf CustA Gateway of last resort is 192.168.46.6 to network 0.0.0.0 

CE-2 has the route in its table:

Gateway of last resort is 192.168.45.4 to network 0.0.0.0 

But CE-1 is not (this is 2 hops away over MPLS to the PE which is adjoining the router originating the default route):

Gateway of last resort is not set 

What am i missing?

What i think is the issue is that the default route is not getting into the MPLS:

PE-2#show bgp vpnv4 unicast vrf CustA BGP table version is 9, local router ID is 4.4.4.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 1:1 (default for vrf CustA) *>i 1.1.1.1/32 2.2.2.2 2 100 0 ? *> 5.5.5.5/32 192.168.45.5 2 32768 ? *> 6.6.6.6/32 192.168.46.6 2 32768 ? *>i 192.168.12.0 2.2.2.2 0 100 0 ? *> 192.168.45.0 0.0.0.0 0 32768 ? *> 192.168.46.0 0.0.0.0 0 32768 ? 


No comments:

Post a Comment