LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-28-2016, 09:00 AM   #1
phantom21
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Rep: Reputation: 0
Installed Ubunto 16.04 on machine. The network work, can ping my router and connect to LAN. Can't connect to internet


My machine is an AMD 6 core 64bit system. 8 GB RAM, 1 TB HD. I can connect to my local netowrk, ping network resources and such, however, I can't connect to the internet. I have a manual IPv4 address and have configured DNS to 207.69.188.185. That is the same as other machines on my network, and they work fine.

The other machines on my network run LinuxMint 17.1

Anyone have any ideas?

Thanks.
 
Old 04-28-2016, 09:21 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Do you have default gateway set? How did you set the DNS, by putting it in resolv.conf?
 
Old 04-28-2016, 09:46 AM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
If you can access your router via browser interface, try checking out the settings it has acquired from the ISP and copying those. Like subnet gateway and all that rot.

I'm not sure if this is the right video, but one of the youtube vids about setting a static ip in Ubuntu was helpful to me:
https://www.youtube.com/watch?v=o9fJWDoX4nE

It might also be useful for Mint with a little imagaination.
 
Old 04-29-2016, 07:43 AM   #4
phantom21
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
OK. To the two helpful people above, I manually set the IP address throught the GUI to 192.168.0.57, netmask of 255.255.255.0 with a gateway of 192.168.0.1, DNS to 207.69.188.185 PRIOR to my posting my issue.

To repeat, I CAN get to my LAN resources. Since my other systems are within the same LAN and using the same gateway/router with the sme IP address for it, and I can get those resources on a wrie that works for other sytems (laptops I've connected to make sure the wire works properly in all cases) there is something else in play.

For some reason, while I CAN get to my LAN on this box, I cannot get to the Internet.

Another complication, I also cannot display the localhost, even though the localhost is clearly defined in the /etc/hosts file.

So, I'd appreciate other thoughts.

Oh, I also ran route -n on the box in question and one of the working systems. Here are the results of that command on both:

New box
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.16.0.1 0.0.0.0 UG 100 0 0 enp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp3s0
192.16.0.1 0.0.0.0 255.255.255.255 UH 100 0 0 enp3s0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0

LinuxMint (working in all phases) box
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0


The biggest difference between the two is the extra two lines (lines 2 and 3) in the rssponse one new box and the other difference is in the metric.

I have no idea why they would make a diffeence, but maybe they do.

Mark
 
Old 04-29-2016, 10:21 AM   #5
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Sadly, I'm not a very advanced network troubleshooter. I searched a bit and found a pretty lengthy troubleshooting post on the linux mint forums that might have some helpful techniques.

Am I correct in thinking that you want a static IP address of 196.168.0.57 or would a dynamically-allocated address be OK? I would point out that every machine on your LAN needs a unique local ip address -- make sure no other machine is trying to use that exact same ip address. Also, have you tried letting your router assign this mint box an IP address via DHCP? I've had problems on my LAN where devices somehow try to claim the same IP and behavior is unpredictable and weird.

Also, would you say that everything on the LAN is behaving fine, you just can't get to the internet? Can other devices besides this mint box connect just fine to the internet or do they also have trouble? Are you connecting with an ethernet cable or wirelessly?

Quote:
Oh, I also ran route -n on the box in question and one of the working systems. Here are the results of that command on both:

New box
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.16.0.1 0.0.0.0 UG 100 0 0 enp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp3s0
192.16.0.1 0.0.0.0 255.255.255.255 UH 100 0 0 enp3s0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0
You do see that it says .16 and NOT .168 in there, right?

Also, enp3s0 is a weird-looking ethernet interface name.
 
Old 04-29-2016, 10:28 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
enp3s0 is the result of the new (un)predictable naming convention. It gets real funny with USB wireless adapters, every time you happen to plug it into a different USB port it gets a different name.
 
Old 04-30-2016, 12:15 AM   #7
phantom21
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
OK. I've resolved the issue. One keen eyed person notedd the gateway address was wrong. It shows as 192.16.0.1 when it should be 192.168.0.1.

I fixed that and the connection to the internet worked. I just needed a second, unjaundiced, pair of eyes to see it and tell me.

I agree with the person about the new naming. I would prefer the old naming conventions of ethx and wifi. But, I didn't make the change and it's not likely the people who did are going back to it.

Thanks for all the help.

Mark
 
Old 04-30-2016, 01:00 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You can have old names back, just add net.ifnames=0 to your kernel command line and your eth and wlan will be back.
 
  


Reply



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
Connect to Network (can ping router) but can't access the Internet DGrieve Linux - Networking 9 04-02-2014 07:47 AM
can ping router but can't connect to it, nor internet tuneout Slackware 13 06-07-2006 12:14 AM
Cannot connect to internet or ping router in Ubuntu 5.04 chrisjs162216 Linux - Networking 12 02-26-2006 12:04 PM
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
can ping to/from pcs on home network but not connect to internet stumblefingers Linux - Networking 13 04-12-2004 09:34 AM

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

All times are GMT -5. The time now is 07:28 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