LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2008, 08:33 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Rep: Reputation: 30
unable to ping hostname


Hi,

I have the following network:

Code:
----------
|Internet|
----------
    |
 --------------           ------------------
|Wireless Modem| ))----(( |'admin2' on DHCP |
| on 10.0.0.*  |      |    ------------------
 --------------       |     ------------------
    |                  -(( |'client1' on DHCP |
    |wired                  ------------------
    |
 ----------------
|Wireless Router |           ------------------
| on 192.168.0.* | ))----(( |'client2' on DHCP |
 ----------------            ------------------
'admin2' and 'client1' are connected wirelessly to the modem which is allocating DHCP on the 10.0.0.0 subnet. 'client2' is connecting wirelessly to the wireless router which is allocating DHCP on the 192.168.0.0 subnet.

I can ping 'admin2' from 'client1', but I cannot ping 'admin2' from 'client2'. However, I can ping 10.0.0.6 (which is the address allocated by the wireless modem) from 'client2'.

Is there a way to resolve 'admin2' so that 'client2' can ping it by name?

Or should I just allocate a static ip to 'admin2'?

'client1' and 'client2' are running XP and 'admin2' is running Ubuntu.
 
Old 06-19-2008, 10:52 AM   #2
rajwinder
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Rep: Reputation: 15
I think .. if u want to ping by name then atlest u require some service like WINS ( to resolve netbios names) or u can put a local host entry for this particualr host with IP ( that u said u can ping)
 
Old 06-19-2008, 11:14 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rajwinder View Post
I think .. if u want to ping by name then atlest u require some service like WINS ( to resolve netbios names) or u can put a local host entry for this particualr host with IP ( that u said u can ping)
Well...

The hostname resolves in the 10.0.0.* subnet. It's only on the 192.168.0.* subnet that the hostname isn't seen...
 
Old 06-19-2008, 12:17 PM   #4
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
I'm going to make some assumptions from what you are saying here:

1. You can ping the IP address of admin2 directly from client2
2. You can't ping admin2 by hostname
3. admin2 probably has nmbd enabled
4. admin2 and client1 gets address via DHCP from the modem, while client2 gets address via DHCP from the router

Netbios doesn't work across subnets, so client2 won't resolve. Easiest thing to do is set up admin2 as your wins server (see Samba docs for more information), and set up client1 and client2 to point to it for wins/netbios resolution.

Hope this helps.
 
Old 06-19-2008, 01:02 PM   #5
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kenoshi View Post
I'm going to make some assumptions from what you are saying here:

1. You can ping the IP address of admin2 directly from client2
2. You can't ping admin2 by hostname
Yes, that's it.
Quote:
Originally Posted by kenoshi View Post
3. admin2 probably has nmbd enabled
Not sure. I don't think it had nmbd, but I installed samba in an attempt to resolve the problem.
Quote:
Originally Posted by kenoshi View Post
4. admin2 and client1 gets address via DHCP from the modem, while client2 gets address via DHCP from the router
Yes, that makes sense.
Quote:
Originally Posted by kenoshi View Post

Netbios doesn't work across subnets, so client2 won't resolve. Easiest thing to do is set up admin2 as your wins server (see Samba docs for more information), and set up client1 and client2 to point to it for wins/netbios resolution.
Yes, that's what I'm thinking.
I've installed samba and set the following in smb.conf
wins support = yes
name resolve order = wins lmhosts hosts bcast
How can I point to admin2 though? No problem for client1, but client2 doesn't know the name of admin2 and it's ip varies.
Quote:
Originally Posted by kenoshi View Post

Hope this helps.
Well, sort of...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to ping : ping: unknown host PKumar Linux - Networking 4 10-31-2007 12:43 AM
Unable to ping hosts by hostname 1337_penguin Linux - Networking 5 08-27-2006 07:37 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Unable to ping hostname? robertmarkbram Linux - General 2 11-28-2003 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration