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

Using hostname traceroute and VRF

ciscow_88
Level 1
Level 1

I'm having some difficulty using traceroute command using hostname as destination.

I am using VRF-lite on my router, the ping by hostname works fine for a particular VRF and

the traceroute by IP address also works fine.

But not traceroute by hostname, this is my problem.

Anyone ever use hostname/traceroute/vrf before? Any help would be appreciated.

Some info below, I've tried many combinations of commands, related to name resolution and vrf...

-----------------------------------------------------------------------------------------------------------------------------

abc#ping vrf prd xyz                           <----------------------------This works

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to x.x.x.x, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 60/62/64 ms

abc#

-----------------------------------------------------------------------------------------------------------------------------

abc#clear host vrf prd *         <-----------------did this to start clean in cached host entries

-----------------------------------------------------------------------------------------------------------------------------

abc#traceroute vrf prd xyz                           <--------Does not work

Translating "xyz"...domain server (x.x.x.x) [OK]     <--------Resolved to correct vrf/dns server

Translating "xyz"...domain server (255.255.255.255)  <--------Why this second check? I'm not using global ip name-server.

% Unrecognized host or address.

abc#

-----------------------------------------------------------------------------------------------------------------------------

abc#traceroute vrf prd x.x.x.x   <---------------This works, same host but by IP.     

Type escape sequence to abort.

Tracing the route to x.x.x.x

VRF info: (vrf in name/id, vrf out name/id)

  1 x.x.x.x 16 msec 20 msec 20 msec

  2 x.x.x.x 20 msec 20 msec 20 msec

  3 x.x.x.x 60 msec 60 msec 60 msec

  4 x.x.x.x 60 msec 60 msec 60 msec

abc#

-----------------------------------------------------------------------------------------------------------------------------

ip domain lookup source-interface GigabitEthernet0/1.2  <---- in vrf prd

ip domain name vrf prd x.x.x.x

ip name-server vrf prd x.x.x.x

ip dns view vrf prd default                             <----created when above commands applied

0 Replies 0