cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
819
Views
5
Helpful
4
Replies

OSPF redistribution issues

Kaushik Ray
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Hi Kaushik,

Just add "subnets" as follow "redistribute connected subnets" and it should solve your issue.

Regards

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

4 Replies 4

Harold Ritter
Spotlight
Spotlight

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

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

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)

Hi Kaushik,

Just add "subnets" as follow "redistribute connected subnets" and it should solve your issue.

Regards

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thanks a lot Harold!