NeoRouter
http://www.neorouter.com/forum/

Neorouter Ubuntu Server Ping By Hostname Not Working
http://www.neorouter.com/forum/viewtopic.php?f=8&t=2233
Page 1 of 1

Author:  ruimg [ Tue Dec 01, 2009 1:01 pm ]
Post subject:  Neorouter Ubuntu Server Ping By Hostname Not Working

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

Author:  kevinz [ Tue Dec 01, 2009 1:29 pm ]
Post subject:  Re: Neorouter Ubuntu Server Ping By Hostname Not Working

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

Author:  ruimg [ Tue Dec 01, 2009 1:52 pm ]
Post subject:  Re: Neorouter Ubuntu Server Ping By Hostname Not Working

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.

Author:  ruimg [ Wed Dec 02, 2009 9:56 am ]
Post subject:  Re: Neorouter Ubuntu Server Ping By Hostname Not Working

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!

Author:  kevinz [ Wed Dec 02, 2009 5:54 pm ]
Post subject:  Re: Neorouter Ubuntu Server Ping By Hostname Not Working

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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/