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

C3560 Mgmt VRF ...no dns /name server ?

manuscript1
Level 1
Level 1

Hi networkers !

 

We have a C3560s switch - am using the management inteface G0/0 at the rear for management and want DNS /nameserver functionality. However I cant seem to get name resolution on the switch using this port  ...I can tftp out of this port to a tftp server ok .

 

see below config ( relevant) and test results ....any help appreciated

 

vrf definition Mgmt-vrf

ip route vrf Mgmt-vrf 0.0.0.0 0.0.0.0 x.x.x.1 ( .1 being the default gateway)

ip name-server vrf Mgmt-vrf 10.y.y.y.  (the name-servers ip on the network ) - note : pinging this address 10.y.y.yfrom within vrf-Mgmt works fine.

ip domain name vrf-Mgmt ourdomain.co.uk

interface GigabitEthernet0/0
 vrf forwarding Mgmt-vrf
 ip address 10.q.q.q  255.255.254.0
 negotiation auto

 

#ping vrf Mgmt-vrf tftp.oudomain.co.uk
Translating "tftp.ourdomain.co.uk"...domain server (255.255.255.255)
% Unrecognized host or address, or protocol not running.

 

note TFTP server is pingable from the VRF as is 10.y.y.y

 

 

thoughts ?any ideas ?

 

 

 

3 Replies 3

Rolf Fischer
Level 9
Level 9

Hi,


not sure it this is necessary but can you try to set the DNS source-interface to the Mgmt-Interface:


(config)# ip domain-lookup source-interface Gi0/0


HTH
Rolf

Hi Rolf

afraid not ...same outcome with thsi command in ,....

but thanks

johnnylingo
Level 5
Level 5

Having the exact same problem on an ISR G2 running IOS 15.5(3)M4 and 6500 running 15.1(2)SY7

As I see it, the root problem is when enabling DNS resolution via the "ip domain-lookup" command, there's no option to specify the VRF.  Setting the source-interface unfortunately does not automatically pickup the VRF either.    Others with the same problem also seem to have come to the same dead end.

dns resolution not working with vrfs

DNS resolution via VRF on Cisco IOS