OpenVZ Forum


Home » General » Support » Fail to ping hostname
Re: Fail to ping hostname [message #33159 is a reply to message #33140] Thu, 25 September 2008 15:57 Go to previous messageGo to previous message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Well the if the VE.A its 192.168.1.1 and the VE.B its: 192.168.1.2 the way to get work the hostname its edit /etc/hosts in each VE and add:

VE.A editing /etc/hosts
192.168.1.2 maquina2

VE.B editing /etc/hosts
192.168.1.1 maquina1

from VE.A ping maquina2
from VE.B ping maquina1

This should work, if not see if you don't have a DNS server who kill your request from one VE to another, another way to see its /etc/nsswitch.conf this file control the priority to solve a name:

hosts: files dns

Check if if files its the first in your VE's


http://kenjy.net |Live net !!!
 
Read Message
Read Message
Read Message
Previous Topic: WARNING: Hard link count is wrong
Next Topic: routing issue with openvpn in containter
Goto Forum:
  


Current Time: Wed Sep 24 04:58:23 GMT 2025

Total time taken to generate the page: 0.06958 seconds