|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
"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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
"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 |
![]() |
| Tags |
| hostname, linux, problem, windows |
| Thread Tools | |
| Display Modes | |
|
|