Re: Not able to ping loopback interface

From: Piotr Matusiak <piotr_at_ccie1.com>
Date: Tue, 6 Oct 2009 23:10:19 +0200

This is because you do not have any non-VRF interface between R2 and R4.
If you enable "normal" OSPF routing this will be considered as
"global" routing table accessed by "sho ip route".
If you want to access Lo0 you have two options:
1. configure non-VRF interface between R2 and R4 and run OSPF on it
2. assign Lo0 to the same VRF on both sides

Regards,
Piotr

2009/10/6 Cisco Fanatic <ebay_products_at_hotmail.com>:
> Thanks Piotr, you are right. I check the OSPF config and it seems to work now.
> But, the loopback0 is not working now :(-
>
> !
> router ospf 24 vrf R2_VRF_24
> log-adjacency-changes
> network 150.1.24.2 0.0.0.0 area 0
> network 150.1.124.2 0.0.0.0 area 0
> !
> router ospf 42 vrf R2_VRF_42
> network 150.1.42.2 0.0.0.0 area 0
> network 150.1.142.2 0.0.0.0 area 0
> !
> router ospf 1
> network 150.1.2.2 0.0.0.0 area 0
> !
>
> The R4 Loopback0 (150.1.4.4, on the other side) is not in any VRF.
>
> R2#ping 150.1.4.4
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.1.4.4, timeout is 2 seconds:
> .....
> Success rate is 0 percent (0/5)
>
> -Yuri
>
>> Date: Tue, 6 Oct 2009 21:38:48 +0200
>> Subject: Re: Not able to ping loopback interface
>> From: piotr_at_ccie1.com
>> To: ebay_products_at_hotmail.com
>> CC: ccielab_at_groupstudy.com
>>
>> Hi,
>>
>> You should have VRF aware OSPF configured. Take a look at your example
>> and check if you have OSPF neighbor relationship established. I bet
>> you don't.
>>
>>
>> R2:
>> no router ospf 1
>> router ospf 1 vrf R2_VRF_24
>> network 150.1.24.2 0.0.0.0 area 0
>> network 150.1.124.2 0.0.0.0 area 0
>> router ospf 2 vrf R2_VRF_42
>> network 150.1.42.2 0.0.0.0 area 0
>> network 150.1.142.2 0.0.0.0 area 0
>>
>>
>>
>> R4:
>> no router ospf 1
>> router ospf 1 vrf R4_VRF_24
>> network 150.1.24.4 0.0.0.0 area 0
>> network 150.1.124.4 0.0.0.0 area 0
>> router ospf 2 vrf R4_VRF_42
>> network 150.1.42.4 0.0.0.0 area 0
>> network 150.1.142.4 0.0.0.0 area 0
>>
>>
>> HTH,
>>
>> --
>> Piotr Matusiak
>> CCIE #19860 (R&S, SEC)
>>
>>
>>
>> 2009/10/6 Cisco Fanatic <ebay_products_at_hotmail.com>:
>> > All, I have configured MPLS VRF on the interfaces. But, I am not able to
> ping
>> > the loopback interfaces. Can someone let me know as why? Am I missing
>> > something here.
>> >
>> > Thanks,
>> > -Yuri
>> >
>> > R2
>> > ++
>> > !
>> > mpls label protocol ldp
>> > !
>> > ip vrf R2_VRF_24
>> > rd 24:24
>> > !
>> > ip vrf R2_VRF_42
>> > rd 42:42
>> > !
>> > interface Loopback0
>> > ip address 150.1.2.2 255.255.255.255
>> > !
>> > interface Loopback24
>> > ip vrf forwarding R2_VRF_24
>> > ip address 150.1.124.2 255.255.255.255
>> > !
>> > interface Loopback42
>> > ip vrf forwarding R2_VRF_42
>> > ip address 150.1.142.2 255.255.255.255
>> > !
>> > interface Ethernet0/0
>> > ip address 150.1.24.2 255.255.255.0
>> > mpls ip
>> > !
>> > interface Ethernet0/0.24
>> > encapsulation dot1Q 24
>> > ip vrf forwarding R2_VRF_24
>> > ip address 150.1.24.2 255.255.255.0
>> > !
>> > interface Ethernet0/0.42
>> > encapsulation dot1Q 42
>> > ip vrf forwarding R2_VRF_42
>> > ip address 150.1.42.2 255.255.255.0
>> > !
>> > router ospf 1
>> > log-adjacency-changes
>> > network 150.1.2.2 0.0.0.0 area 0
>> > network 150.1.24.2 0.0.0.0 area 0
>> > network 150.1.124.2 0.0.0.0 area 0
>> > network 150.1.142.2 0.0.0.0 area 0
>> > !
>> >
>> > R4
>> > ++
>> > !
>> > mpls label protocol ldp
>> > !
>> > ip vrf R4_VRF_24
>> > rd 24:24
>> > !
>> > ip vrf R4_VRF_42
>> > rd 42:42
>> > !
>> > interface Loopback0
>> > ip address 150.1.4.4 255.255.255.255
>> > !
>> > interface Loopback24
>> > ip vrf forwarding R4_VRF_24
>> > ip address 150.1.124.4 255.255.255.255
>> > !
>> > interface Loopback42
>> > ip vrf forwarding R4_VRF_42
>> > ip address 150.1.142.4 255.255.255.255
>> > !
>> > interface Ethernet0/0
>> > no ip address
>> > mpls ip
>> > !
>> > interface Ethernet0/0.24
>> > encapsulation dot1Q 24
>> > ip vrf forwarding R4_VRF_24
>> > ip address 150.1.24.4 255.255.255.0
>> > !
>> > interface Ethernet0/0.42
>> > encapsulation dot1Q 42
>> > ip vrf forwarding R4_VRF_42
>> > ip address 150.1.42.4 255.255.255.0
>> > !
>> > router ospf 1
>> > log-adjacency-changes
>> > network 150.1.4.4 0.0.0.0 area 0
>> > network 150.1.24.4 0.0.0.0 area 0
>> > network 150.1.45.4 0.0.0.0 area 0
>> > network 150.1.124.4 0.0.0.0 area 0
>> > network 150.1.142.4 0.0.0.0 area 0
>> > !
>> >
>> > Success rate is 0 percent (0/5)
>> > R2#ping vrf R2_VRF_24 150.1.24.4
>> >
>> > Type escape sequence to abort.
>> > Sending 5, 100-byte ICMP Echos to 150.1.24.4, timeout is 2 seconds:
>> > .!!!!
>> > Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
>> >
>> > R2#ping vrf R2_VRF_42 150.1.42.4
>> >
>> > Type escape sequence to abort.
>> > Sending 5, 100-byte ICMP Echos to 150.1.42.4, timeout is 2 seconds:
>> > .!!!!
>> > Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
>> >
>> > R2#ping vrf R2_VRF_24 150.1.124.4 <--
>> >
>> > Type escape sequence to abort.
>> > Sending 5, 100-byte ICMP Echos to 150.1.124.4, timeout is 2 seconds:
>> > .....
>> >
>> > R2#sh ip vrf int
>> > Interface IP-Address VRF
>> > Protocol
>> > Lo24 150.1.124.2 R2_VRF_24
> up
>> > Et0/0.24 150.1.24.2 R2_VRF_24
> up
>> > Lo42 150.1.142.2 R2_VRF_42
> up
>> > Et0/0.42 150.1.42.2 R2_VRF_42
> up
>> >
>> > R4#sh ip vrf int
>> > Interface IP-Address VRF
>> > Protocol
>> > Lo24 150.1.124.4 R4_VRF_24
> up
>> > Et0/0.24 150.1.24.4 R4_VRF_24
> up
>> > Lo42 150.1.142.4 R4_VRF_42
> up
>> > Et0/0.42 150.1.42.4 R4_VRF_42
> up
>> >
>> >
>> >
>> >
>> > _________________________________________________________________
>> > Hotmail: Trusted email with powerful SPAM protection.
>> > http://clk.atdmt.com/GBL/go/177141665/direct/01/
>> >
>> >
>> > Blogs and organic groups at http://www.ccie.net
>> >
>> > _______________________________________________________________________
>> > Subscription information may be found at:
>> > http://www.groupstudy.com/list/CCIELab.html
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>
> _________________________________________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
> http://clk.atdmt.com/GBL/go/171222985/direct/01/
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Piotr Matusiak
CCIE #19860 (R&S, SEC)
Blogs and organic groups at http://www.ccie.net
Received on Tue Oct 06 2009 - 23:10:19 ART

This archive was generated by hypermail 2.2.0 : Sun Nov 01 2009 - 07:50:59 ART