Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Solved - No Internet - Debian 8.8

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bookie
Posts: 370
Joined: 2007-12-07 11:49

Solved - No Internet - Debian 8.8

#1 Post by bookie »

Hi guys!
I haven't changed any settings....just put on the computer today and no internet....
I can ping 8.8.8.8 no problems...
I have the following ifconfig:

Code: Select all

eth0      Link encap:Ethernet  HWaddr 68:05:ca:46:56:36  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6a05:caff:fe46:5636/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:58 errors:0 dropped:3 overruns:0 frame:0
          TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4377 (4.2 KiB)  TX bytes:34219 (33.4 KiB)
          Interrupt:19 Memory:fddc0000-fdde0000 

eth1      Link encap:Ethernet  HWaddr 90:e2:ba:d8:a7:4e  
          inet addr:192.168.10.254  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:469 errors:0 dropped:0 overruns:0 frame:0
          TX packets:469 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:40690 (39.7 KiB)  TX bytes:40690 (39.7 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:c0:00:01  
          inet addr:192.168.143.1  Bcast:192.168.143.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:c0:00:08  
          inet addr:192.168.245.1  Bcast:192.168.245.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I have set my network cards as follows:

Code: Select all

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

#Network Interface My Internet Network
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4


#Clonezilla
auto eth1
iface eth1 inet static
address 192.168.10.254
netmask 255.255.255.0
When I last shut the computer it Internet was working OK....something about dns being overridden by another setting?


bookie
Last edited by bookie on 2017-06-21 05:27, edited 1 time in total.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: No Internet - Debian 8.8

#2 Post by orythem27 »

bookie wrote:auto eth0
.....
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4
(1) Have you installed any graphical desktop environment and NetworkManager?
(2) Is the package resolvconf installed to read dns-nameservers from /etc/network/interfaces?
(3) If the answer to (1) and (2) are both no, /etc/resolv.conf will be a static file. Check it to see if you've appointed a nameserver.
bookie wrote:When I last shut the computer it Internet was working OK
Is this the first time you shutdown the computer since Debian is installed?

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: No Internet - Debian 8.8

#3 Post by bookie »

Hi orythem27 :D

Good questions...

I have run

Code: Select all

dpkg --get-selections | grep network-manager
Get the following:

Code: Select all

network-manager    install
network-manager-gnome    install
I have Debian 8.8 Xfce

I have resolvconf installed
I turn off the server every time I am finished working on it...so not on 24/7

bookie32

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: No Internet - Debian 8.8

#4 Post by debiman »

if you can ping 8.8.8.8, but not e.g. google.com, then you have a name resolving (DNS) issue.

thoughts:
- iirc networkmanager wants you to NOT define anything in /etc/interfaces (or wherever that file you pasted resides).
- your first nameserver points to your router? is your router (or whatever is at 192.168.1.1) resolving names?

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: No Internet - Debian 8.8

#5 Post by bookie »

Hi debiman...
I have added my router to network interfaces settings because I had problems with getting the internet to work....
Because I use clonezilla they have in the past recommended that one removes the network manager...but then others say it isn't necessary with the later versions of Debian...
All I know is that part of setting up clonezilla requires static ip addresses for the network cards.... I have a d-link dir-825 router and have changed the firmware to dd-wrt and have reserved the ip addresses for all my computers just because I can keep tabs on them....
I seem to remember som updates the last time I used the server and that might be the cause of the problem...
If I am to remove the dns nameservers from the network interfaces file...then how do I fix this if I keep the network manager?

bookie32

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: No Internet - Debian 8.8

#6 Post by bookie »

Hi again
Instead of removing network manager I have disabled it and removed my gateway as a dns nameserver but still haven't internet?
How do I resolve this?
I have checked resolv.conf and have no entries there for dns and my network interfaces is the only mention of dns like it should be?


bookie

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: No Internet - Debian 8.8

#7 Post by bookie »

Hi guys!
Sorry if I haven't been listening....
I added my nameservers to resolv.conf
I didn't have resolvconf installed and installed that and reconfigured it to not update resolv.conf dynamically....
I now have internet igen.... :D
The problem with fixing problems like this there are too many threads offering differnt advice and it gets confusing....
bookie32
Last edited by bookie on 2017-06-19 06:32, edited 1 time in total.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: No Internet - Debian 8.8

#8 Post by orythem27 »

Glad you figured it out. If you could edit the title to [SOLVED] it would help the other searchers immensely.

Since you are using /etc/network/interfaces, you are not encountering any conflict only because NetworkManager is smart enough to automatically get out of the way. And if it's not smart enough occationally and cause you more trouble, you might try configure your connections completely in NetworkManager and remove the eth0 configuration from /e/n/i.

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: No Internet - Debian 8.8

#9 Post by bookie »

Hi orythem27
I have always stuck to the Clonezilla How To for setting up the network interfaces...but am willing to try the usual way of doing things via network manager...
Could you give me an example if I go via network manager instead....?

bookie32

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: Solved - No Internet - Debian 8.8

#10 Post by bookie »

I am calling this solved as no one seems interested in showing me how the networkmanager works instead of network interfaces for static ip's
I have internet and that is the main thing... :D

bookie32

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Solved - No Internet - Debian 8.8

#11 Post by orythem27 »

bookie wrote:how the networkmanager works instead of network interfaces for static ip's
Sorry for the late reply, you might want to configure static addresses here: http://ubuntulinuxmint.org/wp-content/u ... tic-ip.jpg

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: Solved - No Internet - Debian 8.8

#12 Post by bookie »

Hi orythem27 :D
Thanks for your reply....
OK is there anything I need to think about regarding resolvconf etc?
I just remove my info from network interfaces and add it via networkmanager?

booki32

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Solved - No Internet - Debian 8.8

#13 Post by orythem27 »

When using NetworkManager, /etc/resolv.conf will be dynamically generated by NetworkManager. Configure DNS servers as shown in the above image and it will go into /etc/resolv.conf.

bookie
Posts: 370
Joined: 2007-12-07 11:49

Re: Solved - No Internet - Debian 8.8

#14 Post by bookie »

Hi orythem27!
Thank you so much for your time!!

bookie32

Post Reply