Community


All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Neorouter Ubuntu Server Ping By Hostname Not Working
PostPosted: Tue Dec 01, 2009 1:01 pm 
Offline

Joined: Tue Dec 01, 2009 12:41 pm
Posts: 6
Hi

Just installed Neorouter 0.9.8 Cliente And Server in my Ubuntu 9.10 Server and made configurations.

All is working fine, except when I connect from outside the local network the hostname doesn't get resolved. I cant ping the server by name.

My current configurations is
Local Lan : 192.168.1.0
Neorouter Lan : 10.0.0.0
Ubuntu Server/Client (UBoxMain:10.0.0.5:192.168.1.1)
Win Client (WinBox1:10.0.0.1:192.168.1.100(DHCP))
Win Client (WinBox2:10.0.0.2:192.168.1.101(DHCP))
DHCP Server : 192.168.1.254
...
In other words if I access the ubuntu box by ip (10.0.0.5) it all works ok, but if I use any service by name like http://uboxmain it fails because it does not resolve the address to the desired ip.
All the windows boxes resolve correctly their hostname to ip. (ping winbox1 -> resolves to 10.0.0.1)
I can access Samba by hostname like \\uboxmain (?????)
I can resolve the ubuntu address from local network to the correct network address 192.168.1.1.

Can someone please help me because I cant figure this out?

Thanks


Top
 Profile  
 
 Post subject: Re: Neorouter Ubuntu Server Ping By Hostname Not Working
PostPosted: Tue Dec 01, 2009 1:29 pm 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1869
The behavior seems correct, as neither NeoRouter nor Windows does not resolve the virtual IP address.

You can add a new entry in the hosts file on Windows to solve the problem.

For more information, check out http://vlaurie.com/computers2/Articles/hosts.htm

BTW, samba protocol can solve computer name but http does not.

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
 Post subject: Re: Neorouter Ubuntu Server Ping By Hostname Not Working
PostPosted: Tue Dec 01, 2009 1:52 pm 
Offline

Joined: Tue Dec 01, 2009 12:41 pm
Posts: 6
Hi kevinz

Thanks for your reply.

But for example within my local network I can ping my ubuntu server and any other win box by name,

ping uboxmain -> resolves to 192.168.1.1
ping winbox1 -> resolves to 192.168.1.100

meaning it can resolve names since I installed and configures WINS correctly

but outside the network using the neorouter the ubuntu server cant be ping by name, only by ip but all the win boxes can be ping by name.

ping uboxmain -> Ping request could not find host uboxmain
ping winbox1 -> resolves to 10.0.0.1
ping winbox2 -> resolves to 10.0.0.2
ping 10.0.0.1 -> ok, I'm here

I know I can use hosts files on each client, but that's not what I am trying to solve.


Top
 Profile  
 
 Post subject: Re: Neorouter Ubuntu Server Ping By Hostname Not Working
PostPosted: Wed Dec 02, 2009 9:56 am 
Offline

Joined: Tue Dec 01, 2009 12:41 pm
Posts: 6
Ok found the problem after long debugging, in sum this is a broadcast problem in neorouter server configuration.

In Ubuntu the Neorouter adapter is set with different broadcast address than their windows counterparts.

In Ubuntu Server Neorouter Adapter configurations is
Ip Address 10.0.0.1
NetMask : 255.0.0.0
BCast Address : 10.255.255.255

In all Windows Clients
NetMask : 255.255.255.0
Thereby broadcast address is to 10.0.0.255 not 10.255.255.255

Just checked with neorouter configuration tool and it reports incorrectly that the DHCP is set to 255.255.255.0 while ifconfig reports that BCAST is 255.0.0.0.

Change Netmask in Ubuntu adapter throw a linux configuration tool from 255.0.0.0 to 255.255.255.0.

This solves the name resolution issue!


Top
 Profile  
 
 Post subject: Re: Neorouter Ubuntu Server Ping By Hostname Not Working
PostPosted: Wed Dec 02, 2009 5:54 pm 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1869
Hi ruimg,

Thanks for your report. It's a bug that causes the nrservice do not set the subnet mask properly on Linux. (Other platforms work well) We will fix it.

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: