Yuri,
First of all there are no stupid questions. We are here to help each
other understand the technology.
Your problem lays in a basic understanding of VRF lite. A VRF is
VPN-like solution, so simply speaking you have logically separated
routing tables and dynamic routing processes.
In your example you have three tables on R2:
1. R2_VRF_24 - where are only routes injected by OSPF process 24 and
directly connected interfaces belonging to R2_VRF_24
2. R2_VRF_42 - where are only routes injected by OSPF process 42 and
directly connected interfaces belonging to R2_VRF_42
3. Global routing table - there are all "normal" routes injected by
not VRF-aware dynamic routing protocol and directly connected
interfaces not belonging to any VRF.
You try to ping 150.1.4.4 using Global routing table, and you have no
prefix there.
Hence, if you want to send Lo0 prefix to R4 you need to have it in at
least one of those aforementioned routing tables. Remember that you
need to have OSPF neighbor relationship established between R2 and R4
to exchange LSA. If you do not have any non-VRF interface between R2
and R4 you will not be able to establish OSPF adjacency. Enter "sho ip
ospf nei" and you will see there is no neighbors. however when you
enter "sho ip ospf nei vrf
HTH,
-- Piotr Matusiak CCIE #19860 (R&S, SEC) 2009/10/7 Cisco Fanatic <ebay_products_at_hotmail.com>: > Piotr, I have enabled normal OSPF routing for Loopback0 interfaces. > > I have to admit I am just starting looking at MPLS configs so excuse me if I > am asking stupid questions or something don't make sense :(- > > I have attached the configuration. If you can let me know what is wrong. > > Thanks Again, Appreciate your help in this. > > -Yuri > >> Date: Tue, 6 Oct 2009 23:10:19 +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 >> >> 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) > > _________________________________________________________________ > Hotmail: Free, trusted and rich email service. > http://clk.atdmt.com/GBL/go/171222984/direct/01/ > 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 > no ip address > 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 24 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 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 > ! > > ********************************************************************************** > > 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 > ! > interface Serial1/0 > ip address 150.1.45.4 255.255.255.0 > encapsulation frame-relay > ip ospf network point-to-point > mpls ip > no fair-queue > frame-relay map ip 150.1.45.5 405 broadcast > no frame-relay inverse-arp > ! > router ospf 24 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 42 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 > ! > router ospf 1 > network 150.1.4.4 0.0.0.0 area 0 > ! > > ********************************************************************************** > > Ping Ethernet and Loopback interfaces > +++++++++++++++++++++++++++++++++++++ > > 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 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms > > R2#ping vrf R2_VRF_24 150.1.124.4 <-- Loopback 24 > > Type escape sequence to abort. > Sending 5, 100-byte ICMP Echos to 150.1.124.4, timeout is 2 seconds: > !!!!! > Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/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 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms > > R2#ping vrf R2_VRF_42 150.1.142.4 <-- Loopback 42 > > Type escape sequence to abort. > Sending 5, 100-byte ICMP Echos to 150.1.142.4, timeout is 2 seconds: > !!!!! > Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms > > ********************************************************************************** > > 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) > > ********************************************************************************** > > R2#sh ip route vrf * > Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP > D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area > N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 > E1 - OSPF external type 1, E2 - OSPF external type 2 > i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 > ia - IS-IS inter area, * - candidate default, U - per-user static route > o - ODR, P - periodic downloaded static route > > Gateway of last resort is not set > > 150.1.0.0/16 is variably subnetted, 2 subnets, 2 masks > C 150.1.2.2/32 is directly connected, Loopback0 > C 150.1.101.0/24 is directly connected, ATM1/0 > > Routing Table: R2_VRF_24 > Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP > D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area > N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 > E1 - OSPF external type 1, E2 - OSPF external type 2 > i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 > ia - IS-IS inter area, * - candidate default, U - per-user static route > o - ODR, P - periodic downloaded static route > > Gateway of last resort is not set > > 150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks > C 150.1.24.0/24 is directly connected, Ethernet0/0.24 > C 150.1.124.2/32 is directly connected, Loopback24 > O 150.1.124.4/32 [110/11] via 150.1.24.4, 00:15:31, Ethernet0/0.24 > > Routing Table: R2_VRF_42 > Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP > D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area > N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 > E1 - OSPF external type 1, E2 - OSPF external type 2 > i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 > ia - IS-IS inter area, * - candidate default, U - per-user static route > o - ODR, P - periodic downloaded static route > > Gateway of last resort is not set > > 150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks > C 150.1.142.2/32 is directly connected, Loopback42 > O 150.1.142.4/32 [110/11] via 150.1.42.4, 00:15:45, Ethernet0/0.42 > C 150.1.42.0/24 is directly connected, Ethernet0/0.42 > > ********************************************************************************** > > > 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.netReceived on Wed Oct 07 2009 - 09:39:25 ART
This archive was generated by hypermail 2.2.0 : Sun Nov 01 2009 - 07:50:59 ART