Bluehost.com Web Hosting $6.95

linux windows hostname problem

This is a discussion on linux windows hostname problem within the Linux Networking forums, part of the Linux Forums category; Hi, I have a problem with linux computer and windows computer. My linux computer is (192.168.2.101) with ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-07-2003
Dhruv
 
Posts: n/a
Default linux windows hostname problem

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
Reply With Quote
  #2 (permalink)  
Old 10-07-2003
Paul Lutus
 
Posts: n/a
Default Re: linux windows hostname problem

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

Reply With Quote
  #3 (permalink)  
Old 10-07-2003
Allan Bruce
 
Posts: n/a
Default Re: linux windows hostname problem


"Dhruv" <dmalhotr2001@yahoo.com> wrote in message
news:b6d0b0b.0310062307.2418b1f6@posting.google.co m...
> 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


Reply With Quote
  #4 (permalink)  
Old 10-08-2003
Dhruv
 
Posts: n/a
Default Re: linux windows hostname problem

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.co m...
> > 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

Reply With Quote
  #5 (permalink)  
Old 10-08-2003
Allan Bruce
 
Posts: n/a
Default Re: linux windows hostname problem


"Dhruv" <dmalhotr2001@yahoo.com> wrote in message
news:b6d0b0b.0310071539.1b98a346@posting.google.co m...
> 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



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0