cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2277
Views
10
Helpful
4
Replies

ping vrf PE-CE problem

sel18
Level 1
Level 1

hello

 

i have a problem of pinging from PE to CE and CE-PE while i am using ospf

this is my config

 

PE:

 

vrf definition client3
rd 100:3
!
address-family ipv4
route-target export 100:100
route-target import 100:100
exit-address-family

 

interface Loopback0
ip address 123.6.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 10.10.67.6 255.255.255.0
mpls ip
!
interface GigabitEthernet0/1
ip address 10.10.36.6 255.255.255.0
mpls ip
!
interface GigabitEthernet0/2
vrf forwarding client3
ip address 192.168.116.6 255.255.255.252
!


router ospf 100 vrf client3
redistribute bgp 65001 subnets
network 192.168.116.6 0.0.0.0 area 0
!


router ospf 1
passive-interface default
no passive-interface GigabitEthernet0/0
no passive-interface GigabitEthernet0/1
no passive-interface Loopback0
network 10.10.36.6 0.0.0.0 area 0
network 10.10.67.6 0.0.0.0 area 0
network 123.6.6.6 0.0.0.0 area 0
!


router bgp 65001
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 123.4.4.4 remote-as 65001 (123.4.4.4 is the Route reflector)
neighbor 123.4.4.4 update-source Loopback0
!
address-family vpnv4
neighbor 123.4.4.4 activate
neighbor 123.4.4.4 send-community extended
exit-address-family
!
address-family ipv4 vrf client3
redistribute ospf 100 match internal external 1 external 2 nssa-external 1 nssa-external 2
exit-address-family
!

 

 

CE:

interface Loopback0
ip address 123.11.11.11 255.255.255.255
!
interface GigabitEthernet0/0
ip address 192.168.116.1 255.255.255.252
!
router ospf 100
router-id 123.11.11.11
passive-interface default
no passive-interface GigabitEthernet0/0
no passive-interface Loopback0
network 123.11.11.11 0.0.0.0 area 0
network 192.168.116.1 0.0.0.0 area 0
!

 

 

any help please !!

 

PS: I try from PE #ping vrf client3 192.168.116.1 and from CE i try #ping 192.168.116.6 but both of the didn't work 

2 Accepted Solutions

Accepted Solutions

filopeter
Level 1
Level 1

Is your CE directly connected to PE's interface GigabitEthernet0/2 ?

If it is, they are not on the same IP subnet. Change the subnet mask to 255.255.255.248. 

View solution in original post

why i should change it to /29 while my address is /30 !!

 

Because 192.168.116.1 and 192.168.116.6 are not part of the same /30. 192.168.116.0/30 includes 192.168.116.0 through 192.168.116.3, while 192.168.116.4/30 includes 192.168.116.4 through 192.168.116.7.

 

If you want to keep the same subnet mask, change the address on the PE from 192.168.116.6 to 192.168.116.2.

 

Regards,

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

View solution in original post

4 Replies 4

filopeter
Level 1
Level 1

Is your CE directly connected to PE's interface GigabitEthernet0/2 ?

If it is, they are not on the same IP subnet. Change the subnet mask to 255.255.255.248. 

@filopeter 

thank you for your response

 

this is the result of #sh ip route 

 

PE:

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.10.36.0/24 is directly connected, GigabitEthernet0/1
L 10.10.36.6/32 is directly connected, GigabitEthernet0/1
C 10.10.67.0/24 is directly connected, GigabitEthernet0/0
L 10.10.67.6/32 is directly connected, GigabitEthernet0/0
123.0.0.0/32 is subnetted, 1 subnets
C 123.6.6.6 is directly connected, Loopback0

 

CE: 

Gateway of last resort is not set

123.0.0.0/32 is subnetted, 1 subnets
C 123.11.11.11 is directly connected, Loopback0
192.168.116.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.116.0/30 is directly connected, GigabitEthernet0/0
L 192.168.116.1/32 is directly connected, GigabitEthernet0/0

 

why i should change it to /29 while my address is /30 !!

why i should change it to /29 while my address is /30 !!

 

Because 192.168.116.1 and 192.168.116.6 are not part of the same /30. 192.168.116.0/30 includes 192.168.116.0 through 192.168.116.3, while 192.168.116.4/30 includes 192.168.116.4 through 192.168.116.7.

 

If you want to keep the same subnet mask, change the address on the PE from 192.168.116.6 to 192.168.116.2.

 

Regards,

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

thank you @Harold and @filopeter

 

i fixed the ip add and it's working now