11-26-2013 03:56 AM - edited 03-04-2019 09:41 PM
Hello All
I am having issues with OSPF with VRF and would be grateful to have some insight as to where I am going wrong.
This is setup I have created
CE1 ---- PE ---- CE2
The configurations are as follows:
CE1
-------
!
interface Loopback0
ip address 1.1.1.2 255.255.255.255
!
interface Loopback10
ip address 172.16.0.1 255.0.0.0
!
interface Loopback11
ip address 10.10.10.1 255.255.0.0
!
interface FastEthernet0/1
ip address 129.87.128.18 255.255.255.252
duplex auto
speed auto
!
router ospf 111
router-id 1.1.1.2
log-adjacency-changes
redistribute connected
redistribute static
network 129.87.128.16 0.0.0.3 area 0
default-information originate
!
PE
-------
!
interface Loopback0
ip vrf forwarding client
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip vrf forwarding client
ip address 2.2.2.2 255.255.255.255
!
!
interface FastEthernet0/0
ip vrf forwarding client
ip address 172.26.2.173 255.255.255.248
duplex auto
speed auto
!
interface FastEthernet0/1
ip vrf forwarding client
ip address 129.87.128.17 255.255.255.252
duplex auto
speed auto
!
!
router ospf 111 vrf client
router-id 1.1.1.1
log-adjacency-changes
redistribute connected
redistribute static
redistribute ospf 111 vrf client subnets
network 10.10.0.0 0.0.255.255 area 0
network 10.130.0.0 0.0.255.255 area 0
network 172.26.2.168 0.0.0.7 area 0
network 192.168.1.0 0.0.0.255 area 0
default-information originate
!
router ospf 10 vrf client
router-id 2.2.2.2
log-adjacency-changes
redistribute connected
redistribute static
redistribute ospf 10 vrf client subnets
network 10.10.0.0 0.0.255.255 area 0
network 129.87.128.16 0.0.0.3 area 0
network 172.0.0.0 0.255.255.255 area 0
default-information originate
!
CE2
-------
!
interface Loopback1
ip address 2.2.2.1 255.255.255.255
!
!
interface Loopback10
ip address 10.130.4.1 255.255.0.0
interface Loopback11
ip address 192.168.1.1 255.255.255.0
!
!
interface FastEthernet0/0
ip address 172.26.2.170 255.255.255.248
duplex auto
speed auto
!
!
router ospf 10
router-id 2.2.2.1
log-adjacency-changes
redistribute connected
redistribute static
network 172.26.2.168 0.0.0.7 area 0
default-information originate
!
On the PE the OSPF neigbours seems to be established but I cannot ping CE1 to CE2
sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.1 1 FULL/DR 00:00:31 172.26.2.170 FastEthernet0/0
1.1.1.2 1 FULL/DR 00:00:31 129.87.128.18 FastEthernet0/1
Now I am only able to see one of the loopbacks on the other end but not the other one.
on CE2
O E2 172.0.0.0/8 [110/20] via 172.26.2.173, 00:16:57, FastEthernet0/0
on CE1
O E2 192.168.1.0/24 [110/20] via 129.87.128.17, 00:18:08, FastEthernet0/1
I would be grateful if I can get some advice as to where I am going wrong.
Many Thanks in advance.
Solved! Go to Solution.
11-26-2013 06:43 AM
Hi Kaushik,
Just add "subnets" as follow "redistribute connected subnets" and it should solve your issue.
Regards
11-26-2013 06:31 AM
Hi Kaushik,
There are two different things here. First, the reason you are not seeing all of the loopback addresses being advertized is that you do not use the "subnets" on the "redistribute connected" statement.
Concerning the ping not working, which source and destination addresses do you use?
Regards
11-26-2013 06:41 AM
Thanks Harold for your reply.
So i should mentioned both the subnets at each end on the redistribute connected?
Regarding the pings I was trying to ping loop back to loopback
ping 2.2.2.2 so lo1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 2.2.2.1
.....
Success rate is 0 percent (0/5)
11-26-2013 06:43 AM
Hi Kaushik,
Just add "subnets" as follow "redistribute connected subnets" and it should solve your issue.
Regards
11-26-2013 06:59 AM
Thanks a lot Harold!
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