cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1467
Views
0
Helpful
3
Replies

IOS-XR VRF Interface Loopback not in route

yllee1314
Level 1
Level 1

Have created an interface loopback and including it into vrf.

However the interface loppback will not appear when "show ip interface brief".

And I'm only able to ping vrf to interface loopback, unable to ping the route learnt in the vrf.

Following are the vrf configuration made:

!
prefix-set ABCD_Servers
192.168.100.0/24
end-set
!
route-policy ABCD_Servers
if destination in ABCD_Servers then
pass
endif
end-policy
!
vrf ABCD
address-family ipv4 unicast
import route-policy ABCD_Servers
import route-target
1234:12345
1234:6789
!
export route-target
1234:12345
!
!
!
router bgp 1234
!
!
vrf ABCD
rd 1234:12345
address-family ipv4 unicast
redistribute connected
!
!
interface Loopback800
vrf ABCD
ipv4 address 192.168.1.1 255.255.255.255
!

3 Replies 3

Olev Vallaste
Level 1
Level 1

Q.Have created an interface loopback and including it into vrf.

However the interface loppback will not appear when "show ip interface brief".

A.>>>

In IOS-XR slightly different command for output interfaces for all vrfs

Here is the needed command:

sho ipv4 vrf all interface brief

'show ip interface brief" command in IOS-XR shows only interfaces in default-vrf (GRT)

Q.And I'm only able to ping vrf to interface loopback, unable to ping the route learnt in the vrf.

A.>>>

Can you describe in more details, what ip-address you try to ping and from what source address?

Q.And I'm only able to ping vrf to interface loopback, unable to ping the route learnt in the vrf.

A.>>>

Can you describe in more details, what ip-address you try to ping and from what source address?

Info>>>

Was trying to ping a server IP advertised in the vrf as below.


RP/0/RSP0/CPU0:PE-001#ping vrf ABCD 192.168.1.1

Mon Nov 23 09:57:25.573 GMT
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
RP/0/RSP0/CPU0:PE-001#

RP/0/RSP0/CPU0:PE-001#

RP/0/RSP0/CPU0:PE-001#show run int lo800

Mon Nov 23 09:57:42.711 GMT
interface Loopback800
vrf ABCD
ipv4 address 192.168.1.1 255.255.255.255
!

RP/0/RSP0/CPU0:PE-001#

RP/0/RSP0/CPU0:PE-001#ping vrf ABCD 192.168.100.58

Mon Nov 23 09:59:05.004 GMT
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.58, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)

RP/0/RSP0/CPU0:PE-001#

RP/0/RSP0/CPU0:PE-001#show route vrf ABCD
Fri Nov 20 23:08:11.834 GMT

Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
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, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR, l - LISP
A - access/subscriber, a - Application route
M - mobile route, (!) - FRR Backup path

Gateway of last resort is not set

B 192.168.100.0/24 [200/0] via x.x.x.4 (nexthop in vrf default), 03:43:50
L 192.168.1.1/32 is directly connected, 03:42:19, Loopback800

Hi, yllee1314

About "UUUUU" in ping output.

Is it 192.168.100.58 - host(server) or it is a router's interface?

Please provide 'sho route vrf ABCD 192.168.1.1' from router when network 192.168.100.0/24 resides.

Can you ping Gateway for 192.168.100.0/24 in vrf ABCD from PE-001 with source 192.168.1.1 ?

And please provide output from PE-001:

tracert vrf ABCD 192.168.100.58 source 192.168.1.1

tracert vrf ABCD <gw-ABCD-servers-ip-address> source 192.168.1.1