- linux windows hostname problem

PDA

View Full Version : linux windows hostname problem


Dhruv
07-24-2004, 09:51 PM
Hi,

I have a problem with linux computer and windows computer.

My linux computer is (192.168.2.101) with hostname lnxserver.

My windows is 192.168.2.102 with hostname windows.

Now when I ping each of them via ip they work fine and can receive
pings from each other. When I ping themselves as their hostnames,
they work fine (for example, .102 address as windows and .101 as
lnxserver), its fine.

The problem lies is when I try to ping the linux computer from windows
machine as (ping lnxserver), and it times out or vice versa (ping
windows) from linux machine.

I dont know how to resolve this because I need to get my samba
working.

Appreciate any help.

Thanks

Dhruv

Paul Lutus
07-24-2004, 09:51 PM
Dhruv wrote:

> Hi,
>
> I have a problem with linux computer and windows computer.

That's not your only problem. Your computer has gone crazy and is sending
out endless copies of your post. Surely without your knowledge or
cooperation.

--
Paul Lutus
http://www.arachnoid.com

Allan Bruce
07-24-2004, 09:51 PM
"Dhruv" <dmalhotr2001@yahoo.com> wrote in message
news:b6d0b0b.0310062307.2418b1f6@posting.google.com...
> Hi,
>
> I have a problem with linux computer and windows computer.
>
> My linux computer is (192.168.2.101) with hostname lnxserver.
>
> My windows is 192.168.2.102 with hostname windows.
>
> Now when I ping each of them via ip they work fine and can receive
> pings from each other. When I ping themselves as their hostnames,
> they work fine (for example, .102 address as windows and .101 as
> lnxserver), its fine.
>
> The problem lies is when I try to ping the linux computer from windows
> machine as (ping lnxserver), and it times out or vice versa (ping
> windows) from linux machine.
>
> I dont know how to resolve this because I need to get my samba
> working.
>
> Appreciate any help.
>
> Thanks
>
> Dhruv

Please dont re-send messages. You have to give people time, or they wont
help.
Anyway, for your problem, you need to specify the names as an alias for
their IP addresses. In linux, edit your /etc/hosts to include
192.168.2.102 windows
Depending on your windows version depends on where the file is located,
under XP it is located in x:\windows\system32\drivers\etc and is also called
hosts
If you cant find it, then use the "search" prog to find a file called hosts
(with no extension).
Now add the following line to your hosts file
192.168.2.101 lnxserver

HTH
Allan

Dhruv
07-24-2004, 09:52 PM
Hi Allan,

Sorry about that. It was a mistake, I think computer automatically
send repetitive messages. I added the entry in the hosts file. I can
now ping by hostname from linux to windows. However, i cannot ping
via hostname from windows to linux (still can via ip).

However, here is another thing. I see the linux computer on my
windows machine through network neighborhood. says \\lnxserver is not
accesible. Network path not found. Weird.

So again, I can sort of see the lnxserver on windows but cannot ping
it via hostname still.

Hm...


Any other suggestions.

Thanks

Dhruv


"Allan Bruce" <allanmb@TAKEAWAYf2s.com> wrote in message news:<blu39q$t30$1@news.freedom2surf.net>...
> "Dhruv" <dmalhotr2001@yahoo.com> wrote in message
> news:b6d0b0b.0310062307.2418b1f6@posting.google.com...
> > Hi,
> >
> > I have a problem with linux computer and windows computer.
> >
> > My linux computer is (192.168.2.101) with hostname lnxserver.
> >
> > My windows is 192.168.2.102 with hostname windows.
> >
> > Now when I ping each of them via ip they work fine and can receive
> > pings from each other. When I ping themselves as their hostnames,
> > they work fine (for example, .102 address as windows and .101 as
> > lnxserver), its fine.
> >
> > The problem lies is when I try to ping the linux computer from windows
> > machine as (ping lnxserver), and it times out or vice versa (ping
> > windows) from linux machine.
> >
> > I dont know how to resolve this because I need to get my samba
> > working.
> >
> > Appreciate any help.
> >
> > Thanks
> >
> > Dhruv
>
> Please dont re-send messages. You have to give people time, or they wont
> help.
> Anyway, for your problem, you need to specify the names as an alias for
> their IP addresses. In linux, edit your /etc/hosts to include
> 192.168.2.102 windows
> Depending on your windows version depends on where the file is located,
> under XP it is located in x:\windows\system32\drivers\etc and is also called
> hosts
> If you cant find it, then use the "search" prog to find a file called hosts
> (with no extension).
> Now add the following line to your hosts file
> 192.168.2.101 lnxserver
>
> HTH
> Allan

Allan Bruce
07-24-2004, 09:52 PM
"Dhruv" <dmalhotr2001@yahoo.com> wrote in message
news:b6d0b0b.0310071539.1b98a346@posting.google.com...
> Hi Allan,
>
> Sorry about that. It was a mistake, I think computer automatically
> send repetitive messages. I added the entry in the hosts file. I can
> now ping by hostname from linux to windows. However, i cannot ping
> via hostname from windows to linux (still can via ip).
>
> However, here is another thing. I see the linux computer on my
> windows machine through network neighborhood. says \\lnxserver is not
> accesible. Network path not found. Weird.
>
> So again, I can sort of see the lnxserver on windows but cannot ping
> it via hostname still.
>
> Hm...
>
>
> Any other suggestions.
>
> Thanks
>
> Dhruv
>
>

Did you add the lnxserver to the hosts file on the WinXP machine aswell?
Allan


> >
> > Please dont re-send messages. You have to give people time, or they
wont
> > help.
> > Anyway, for your problem, you need to specify the names as an alias for
> > their IP addresses. In linux, edit your /etc/hosts to include
> > 192.168.2.102 windows
> > Depending on your windows version depends on where the file is located,
> > under XP it is located in x:\windows\system32\drivers\etc and is also
called
> > hosts
> > If you cant find it, then use the "search" prog to find a file called
hosts
> > (with no extension).
> > Now add the following line to your hosts file
> > 192.168.2.101 lnxserver
> >
> > HTH
> > Allan