Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

linux windows hostname problem

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2003, 09:01 AM
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


Dhruv
Reply With Quote
  #2  
Old 10-07-2003, 09:13 AM
Paul Lutus
Guest
 
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  
Old 10-07-2003, 11:08 AM
Allan Bruce
Guest
 
Posts: n/a
Default Re: linux windows hostname problem


"Dhruv" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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  
Old 10-08-2003, 12:39 AM
Dhruv
Guest
 
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" <(E-Mail Removed)> wrote in message news:<blu39q$t30$(E-Mail Removed)>...
> "Dhruv" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) 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  
Old 10-08-2003, 08:12 AM
Allan Bruce
Guest
 
Posts: n/a
Default Re: linux windows hostname problem


"Dhruv" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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

Tags
hostname, linux, problem, windows

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.