Ubuntu server cant ping or connect external but can resolve hostname and domain
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu server cant ping or connect external but can resolve hostname and domain
As the title suggest, I have downlaoded the latest copy of Ubuntu Server from the ubuntu website.
Everything installed fine. DHCP configured ok as far as I can tell. I can ping other machines on my network (which are running Windows) and they can ping the Ubuntu machine and conenct to Apache which is running on it.
If I try to ping google.com or any other domain, it gives the correct IP address but gives no response to any pings, dont telnet on port 80 (or any toher potr for that matter) on any machine on the internet. I checked the settings using ifconfig to see what DHCP had assigned, and they matched the windows machines configuration (other than the IP address obvisouly). I tried assigning a static IP, even reserving a particular IP for my NIC.
Whatever I do, i cant connect to any machine outside the network via IP or domain.
I have searched everywhere and tried everything i can find on the net but still to no avail.
The Windows machines are part of a domain called alcom-uk.local and run off of a Windows Small Business 2003 Server. Not sure if i need to manually setup Ubuntu to connect using a domain or anything.
Any ideas or insights would be really helpful right now.
What is the default route on your Linux server? Does it point to your Internet router? Do you have a firewall or NAT device at the Internet interface? If so, maybe you need to add a configuration for this server?
What do you mean by Default Route? If you mean the Default entry (line) n the route file, then im not sure off the top of my head as im not at work right now.
The gateway is 192.168.16.201 <<This is a Watchguard
The DNS is 192.168.16.2 <<This is the Windows Small Business 2003 Sercer i think
netmask is 255.255.255.0
broadcast is 192.168.16.255
Is there anything I can try to see whats blocking the connection or whats happening to it?
I tried using traceroute google.com and got a response along the lines of
"nslookup google.com" reports the IP address from google, so I know it can resolve hostnames, it just cannot make any external conncetion.
Our IT Support says that there should be nothing like a firewall blocking anything, and especially nothing blocking port 80.
Im going to try and connect to a machine at work in a moment and connect to the Ubuntu Server via that using Putty or something so I can run any ideas that anyone may haev.
Tricky one! What you have written suggests you have covered all the obvious so time to go over it again digging a little more deeply. Might be instructive to repeat the traceroute to google.com test again but using traceroute's -n option to avoid the "Unknown hostname" output and see where it is going and where it is getting stuck by IP address alone.
Are the "xxMS" in the original output verbatim or changed to preserve confidentiality?
As it stands you have evidenced a failure at the IP and ICMP level so AD is unlikely to be significant ... but some networks are horribly clever. My first instinct is that this is an internal network management issue but that's only a hunch.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
also i get successful pings from 192.168.16.2 and 192.168.16.201 (the watchguard)
what baffles me is that if i setup a new windows machine, without joining the domain, just litterally stich an ethernet cable in it, everything works perfect, which points to a problem in linux, but logic points to the watchguard. Unfortuanatly, i dont have access to the watchguard as we no longer have the username/password and dont wanna reset it to default for fear of losing complete connectivity across all machines
What is the output from a traceroute to www.google.com ?
Did you installed ubuntu on a machine that was previously used with windows in the same network, and worked ?
If it is a new machine, perhaps the MAC address from the networkcard is blocked by the watchguard.
You could try to use the networkcard from a windowsmachine to rule out the macaddress blocking theory.
(change the card, and use a live cd to see)
Quote:
nslookup google.com" reports the IP address from google, so I know it can resolve hostnames
You can resolve hostnames, since the DNS server is inside your network.
apparently I dont have traceroute installed. Cant install it either as i cant access an external machine from the Ubuntu machine. Are there any alternatives or similar programs included with Ubuntu Server?
aj@httpserver:~$ tracert
The program 'tracert' is currently not installed. You can install it by typing:
sudo apt-get install traceroute
-bash: tracert: command not found
Your default route looks correct. You ping systems on the local network. So, my suspicion would be with the firewall. If you don't manage the firewall, tell whomever does that you need them to check it. Give them your system's ip and mac addresses as well as what type of connectivity you require. They should be able to examine the logs and see current traffic from this system blocked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.