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

 

 

 

Debian Wired no Internet but WIFI works [Solved]

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Debian Wired no Internet but WIFI works [Solved]

#1 Post by WideParadigm »

Installed Debian yesterday and have had a pleasant experience except for my inability to get the Wired Connection working. I have a Wireless connection that connects and allows me to access Internet. The Wired connection activates, but does not have any Internet. I installed network-manager in hopes that it would do something.

This computer dual boots with Windows 10, where it is able to establish an Ethernet connection, so I know it's not a cable issue.

Code: Select all

ip a (when I am connected to both wireless and wired)

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 54:a0:50:88:02:67 brd ff:ff:ff:ff:ff:ff
        inet6 2601:410:4200:1490:3db7:b480:c149:bae3/64 scope global temporary dynamic 
           valid_lft 212562sec preferred_lft 85850sec
        inet6 2601:410:4200:1490:56a0:50ff:fe88:267/64 scope global mngtmpaddr noprefixroute dynamic 
           valid_lft 212562sec preferred_lft 212562sec
        inet6 fe80::56a0:50ff:fe88:267/64 scope link 
           valid_lft forever preferred_lft forever
    3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether dc:85:de:cb:f4:13 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.19/24 brd 192.168.0.255 scope global dynamic wlp3s0
           valid_lft 85510sec preferred_lft 85510sec
        inet6 2601:410:4200:1490:ae2d:d92b:d52e:bc36/64 scope global noprefixroute dynamic 
           valid_lft 212562sec preferred_lft 212562sec
        inet6 fe80::750d:dee3:cc5c:1169/64 scope link 
           valid_lft forever preferred_lft forever
Noticed that the eno1 is missing an IPv4 address.

Also tried tweaking files in

Code: Select all

 
cat /etc/network/interfaces

    # 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

Code: Select all

 cat /etc/network/interfaces.d/*

   auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
One thing that I noticed so far is that my Ethernet is called eth0 in interfaces.d, while it's called eno1 from ip a. I tried to update the etho0 to eno1 and then restart the service, but was not successful. From my understanding of network-manager, the interfaces file should be ignored now?

Code: Select all

cat /etc/NetworkManager/NetworkManager.conf

    [main]
    plugins=ifupdown,keyfile
    
    [ifupdown]
    managed=true
When I try to ping anything on the Wired connection

Code: Select all

 ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sending packet: Network is unreachable

Code: Select all

ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sending packet: Network is unreachable
Any help would be appreciated!
Last edited by WideParadigm on 2019-06-29 01:16, edited 1 time in total.

samweis2111
Posts: 9
Joined: 2007-12-18 08:45

Re: Debian Wired no Internet but WIFI works

#2 Post by samweis2111 »

Did you try to select "Require IPv4 addressing for this connection to complete" in nm-connection-editor?

WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Re: Debian Wired no Internet but WIFI works

#3 Post by WideParadigm »

samweis2111 wrote:Did you try to select "Require IPv4 addressing for this connection to complete" in nm-connection-editor?
Just tried that, the connection is unable to get activated now. Not sure how to continue debugging

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian Wired no Internet but WIFI works

#4 Post by GarryRicketson »

No mention of what version of Debian you installed, but your "interfaces" does not look right to me, this mine, using Debian 10
"inerfaces", (below)

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

# The primary network interface
allow-hotplug ens3
iface ens3 inet dhcp
 
I do not use a "interfaces.d", and no network manager either.

Code: Select all

garry@debian:/etc/network$ ls
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  interfaces.d
garry@debian:/etc/network$ less interfaces
garry@debian:/etc/network$ cd interfaces.d
garry@debian:/etc/network/interfaces.d$ ls
garry@debian:/etc/network/interfaces.d$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
garry@debian:/etc/network/interfaces.d$ 
===============

Code: Select all

garry@debian:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic ens3
       valid_lft 81038sec preferred_lft 81038sec
    inet6 fec0::5054:ff:fe12:3456/64 scope site dynamic mngtmpaddr 
       valid_lft 86203sec preferred_lft 14203sec
    inet6 fe80::5054:ff:fe12:3456/64 scope link 
       valid_lft forever preferred_lft forever
garry@debian:~$ 
 

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian Wired no Internet but WIFI works

#5 Post by GarryRicketson »

This: http://forums.debian.net/viewtopic.php? ... 45#p697240
Is kind of a mixed up thread, and might not apply, since we do not know what version of Debian was installed, but any way, it goes into some details on trouble shooting,
So now I have no network, can not connect to anything, and can not access the system via ssh, makes it real difficult to get copies of error info,etc,... I will need to do some screen shots to get details. Since this is just a tinker toy on a VM,-----snip-----
Scroll down, and you will see what was done to trouble shoot it.
==== edit ===
Postby L_V » 2019-04-26 09:42
GarryRicketson wrote:
Actually, no I don't just assume that, yes it did show it
Which command reports eth0 ??? Start by this one only:

Code: Select all

    ls /sys/class/net/ 

samweis2111
Posts: 9
Joined: 2007-12-18 08:45

Re: Debian Wired no Internet but WIFI works

#6 Post by samweis2111 »

Just poking in the dark here...

1. Remove the network cable, plug it back in and check what gets logged in /var/log/syslog.
2. Deactivate NetworkManager (Service NetworkManager stop), bring the interface up manually and run dhclient to obtain an IP address. If that works, the issue is with NetworkManager.
3. If dhclient fails - well I don't know yet. ;) Configuring the interface manually could be an option (Maybe you are not getting a dhcp offer?).Sniffing what gets transmitted on the network could help.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian Wired no Internet but WIFI works

#7 Post by GarryRicketson »

Post the output of :

Code: Select all

garry@debian:~$     ls /sys/class/net/ 
ens3  lo
garry@debian:~$ 
 
It will show what should be in your interfaces.

WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Re: Debian Wired no Internet but WIFI works

#8 Post by WideParadigm »

Thanks for the insights everyone! Seems to have something to do with the DHCP...

Code: Select all

frank@debian:~$ ls /sys/class/net/
eno1  lo  wlp3s0

Code: Select all

frank@debian:~$ sudo ifup eno1
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eno1/54:a0:50:88:02:67
Sending on   LPF/eno1/54:a0:50:88:02:67
Sending on   Socket/fallback
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 16
^CDHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Changed up my interfaces file a bit to become

Code: Select all

frank@debian:~$ sudo cat /etc/network/interfaces
# 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

allow-hotplug eno1
iface eno1 inet dhcp
Was able to start networking service successfully (previously was complaining about eth0), or would hang when I used

Code: Select all

auto eno1
iface eno1 inet dhcp
Also Version of Debian:

Code: Select all

frank@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:        9.9
Codename:       stretch

samweis2111
Posts: 9
Joined: 2007-12-18 08:45

Re: Debian Wired no Internet but WIFI works

#9 Post by samweis2111 »

Was able to start networking service successfully
So it all works now?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Debian Wired no Internet but WIFI works

#10 Post by stevepusser »

There are a few wired NICs that do need non-free firmware. Just to check on that, could you install inxi and give us the output of the following terminal command?

Code: Select all

inxi -Fxxz
MX Linux packager and developer

WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Re: Debian Wired no Internet but WIFI works

#11 Post by WideParadigm »

Not quite :(
I was looking in another forum that suggested swapping ports that the ethernet cable is attached to. Got an IPv4 address for my efforts

Code: Select all

frank@debian:~$ ip -a
...
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 54:a0:50:88:02:67 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.10/24 brd 192.168.0.255 scope global dynamic eno1
       valid_lft 86350sec preferred_lft 86350sec
    inet6 2601:410:4200:1490:603c:7751:84af:239d/64 scope global noprefixroute dynamic 
       valid_lft 338772sec preferred_lft 338772sec
    inet6 fe80::e33a:3bf5:621d:bfb7/64 scope link 
       valid_lft forever preferred_lft forever
But on manual connection still hit

Code: Select all

frank@debian:~$ sudo ifup eno1
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eno1/54:a0:50:88:02:67
Sending on   LPF/eno1/54:a0:50:88:02:67
Sending on   Socket/fallback
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Searching that around has given me some stuff to try, but still trying to figure it out.

As for the inxi

Code: Select all

frank@debian:~$ inxi -Fxxz
System:    Host: debian Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
           Desktop: KDE Plasma 5.8.6 (Qt 5.7.1) dm: sddm,sddm                               
           Distro: Debian GNU/Linux 9 (stretch)                                             
Machine:   Device: desktop System: ASUSTeK product: K30AD_M31AD_M51AD                       
           Mobo: ASUSTeK model: K30AD_M31AD_M51AD_M32AD v: Rev X.0x                         
           UEFI: American Megatrends v: 0601 date: 06/09/2014                               
Network:   Card-1: Intel Ethernet Connection I217-V
           driver: e1000e v: 3.2.6-k port: f080 bus-ID: 00:19.0 chip-ID: 8086:153b
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
           driver: rtl8821ae port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8821
           IF: wlp3s0 state: up mac: <filter> 
I installed the non-free version yesterday in an attempt to resolve firmware issues

WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Re: Debian Wired no Internet but WIFI works

#12 Post by WideParadigm »

Okay, I made some progress, have DHCPACK, and ipV4 address, but still not wired Internet :(

Changed /etc/network/interfaces to

Code: Select all

# 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

auto eno1
iface eno1 inet dhcp
and turned off network manager.

Now I can get a DHCP address

Code: Select all

frank@debian:~$ sudo ifup eno1
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eno1/54:a0:50:88:02:67
Sending on   LPF/eno1/54:a0:50:88:02:67
Sending on   Socket/fallback
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 4                                                                                                                                                                      
DHCPREQUEST of 192.168.0.10 on eno1 to 255.255.255.255 port 67                                                                                                                                                                  
DHCPOFFER of 192.168.0.10 from 192.168.0.1                                                                                                                                                                                      
DHCPACK of 192.168.0.10 from 192.168.0.1                                                                                                                                                                                        
bound to 192.168.0.10 -- renewal in 37281 seconds.   

Code: Select all

                                                                                                                                                                           
frank@debian:~$ ip a                                                                                                                                                                                                            
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1                                                                                                                                        
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00                                                                                                                                                                       
    inet 127.0.0.1/8 scope host lo                                                                                                                                                                                              
       valid_lft forever preferred_lft forever                                                                                                                                                                                  
    inet6 ::1/128 scope host                                                                                                                                                                                                    
       valid_lft forever preferred_lft forever                                                                                                                                                                                  
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000                                                                                                                           
    link/ether 54:a0:50:88:02:67 brd ff:ff:ff:ff:ff:ff                                                                                                                                                                          
    inet 192.168.0.10/24 brd 192.168.0.255 scope global eno1                                                                                                                                                                    
       valid_lft forever preferred_lft forever                                                                                                                                                                                  
    inet6 fe80::56a0:50ff:fe88:267/64 scope link                                                                                                                                                                                
       valid_lft forever preferred_lft forever                                                                                                                                                                                  
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000                                                                                                                                 
    link/ether dc:85:de:cb:f4:13 brd ff:ff:ff:ff:ff:ff                                                                                                                                                                          
    inet 192.168.0.19/24 brd 192.168.0.255 scope global dynamic wlp3s0                                                                                                                                                          
       valid_lft 86345sec preferred_lft 86345sec                                                                                                                                                                                
    inet6 2601:410:4200:1490:ae2d:d92b:d52e:bc36/64 scope global noprefixroute dynamic                                                                                                                                          
       valid_lft 338757sec preferred_lft 338757sec                                                                                                                                                                              
    inet6 fe80::750d:dee3:cc5c:1169/64 scope link                                                                                                                                                                               
       valid_lft forever preferred_lft forever

theblueplll
Posts: 154
Joined: 2019-04-29 01:17
Been thanked: 2 times

Re: Debian Wired no Internet but WIFI works

#13 Post by theblueplll »

I just installed Debian Buster on a laptop for my niece and had the same problem.

Completely remove the wired ethernet interface from /etc/network/interfaces so it only says this.

Code: Select all

auto lo
iface lo inet loopback
From what I figured out you only want to add it there if you don't use a network manager or need a static IP (speaking of the one that connects your wifi also).

Hope this helped.

WideParadigm
Posts: 6
Joined: 2019-06-28 12:57

Re: Debian Wired no Internet but WIFI works

#14 Post by WideParadigm »

Replugged all cables, and reinstalled Debian... Did this after replugging cables and noticing that the live CD boot had Ethernet
Everything works out of the box now

Thanks for the help everyone! Going to go hide in a corner in shame

Post Reply