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

 

 

 

No internet

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#16 Post by Chrisdb »

What does the following tell us:

Code: Select all

lsmod | grep ssb

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#17 Post by Winston »

I tried the Installation guide at https://wiki.debian.org/wl, then followed the Configuration instructions for Gnome at https://wiki.debian.org/WiFi/HowToUse. One problem with that is that my Debian install didn't include the System Tray, so I had to install that. After that, I couldn't find the applet, but a check with ip addr shows I now have 3 interfaces - but the apparent wireless (2) still doesn't ping yahoo.com and 8.8.8.8 with the ethernet cord disconnected.

ip addr
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: wlp12s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 00:1f:3a:a1:9d:42 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.13/24 brd 192.168.1.255 scope global dynamic
noprefixroute wlp12s0
valid_lft 83239sec preferred_lft 83239sec
inet6 fe80::bd5:90ad:c065:bcd3/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 00:1d:09:cf:f2:51 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global dynamic
noprefixroute eth0
valid_lft 86044sec preferred_lft 86044sec
inet6 fe80::21d:9ff:fecf:f251/64 scope link noprefixroute
valid_lft forever preferred_lft forever

So it looks like I now have a wireless connection that doesn't work by itself. Even commenting out B43 and b43legacy in /etc/modprobe.d/broadcom-sta-dkms.conf blackmails didn't help, which is probably logical since wl doesn't use them.

I remain puzzled and wireless-less. Did I miss something?

Blacklist is currently
cat /etc/modprobe.d/broadcom-sta-dkms.conf
# wl module from Broadcom conflicts with the following modules:
#blacklist b43
#blacklist b43legacy
#blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb

I'm wondering if my wl package needs updating, but I get:
sudo apt-get --reinstall install bcmwl-kernel-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bcmwl-kernel-source

Apparently I need to add a new location to my sources.list, but I have no idea what.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#18 Post by Winston »

lsmod | grep ssb
ssb 90112 2 b43,b44
pcmcia 69632 1 ssb
mmc_core 176128 5 b43,sdhci,ssb,cqhci,sdhci_pci

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#19 Post by Chrisdb »

Winston wrote: Apparently I need to add a new location to my sources.list, but I have no idea what.
See 'add contrib non-free after main':
https://wiki.debian.org/SourcesList#Exa ... urces.list
Winston wrote:lsmod | grep ssb
ssb 90112 2 b43,b44
pcmcia 69632 1 ssb
mmc_core 176128 5 b43,sdhci,ssb,cqhci,sdhci_pci
the 'ssb' module is conflicting with 'wl'

Try the following as root (the order of commands is important here):

Code: Select all

modprobe -v -r b43 b43legacy b44 ssb brcmsmac bcma
modprobe -v wl 
modprobe -v b44
Let us know if this worked.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#20 Post by Head_on_a_Stick »

Winston wrote:but the apparent wireless (2) still doesn't ping yahoo.com and 8.8.8.8 with the ethernet cord disconnected
Was the routing table updated by NetworkManager after you unplugged the cable?

Check with

Code: Select all

ip r
The "default via" line should show your router's IP address for the wireless interface.

Note that NetworkManager will refuse to control any devices listed in /etc/network/interfaces{,.d/*} so clear any references to wlp12s0 from those files.

Also, you seem to have a traditional interface name for the cable connection but a "predictable" name for the wireless device, which is weird :?

And please edit your posts to enclose all of your terminal output with code tags, it will make the thread more readable.
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#21 Post by Winston »

root@Debian:/home/mike# /sbin/modprobe -v -r b43 b43legacy b44 ssb brcmsmac bcmarmmod b44
rmmod libphy
rmmod mii
rmmod ssb
rmmod pcmcia
rmmod pcmcia_core

root@Debian:/home/mike# /sbin/modprobe -v wl

root@Debian:/home/mike# /sbin/modprobe -v b44
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/pcmcia/pcmcia_core.ko
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/pcmcia/pcmcia.ko
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/net/phy/libphy.ko
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/net/mii.ko
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/ssb/ssb.ko
insmod /lib/modules/4.19.0-8-amd64/kernel/drivers/net/ethernet/broadcom/b44.ko

With ethernet cord connected
root@Debian:/home/mike# ping yahoo.com
PING yahoo.com (98.137.246.8) 56(84) bytes of data.
64 bytes from media-router-fp2.prod1.media.vip.gq1.yahoo.com (98.137.246.8): icmp_seq=1 ttl=48 time=73.8 ms
64 bytes from media-router-fp2.prod1.media.vip.gq1.yahoo.com (98.137.246.8): icmp_seq=3 ttl=48 time=73.10 ms
64 bytes from media-router-fp2.prod1.media.vip.gq1.yahoo.com (98.137.246.8): icmp_seq=4 ttl=48 time=72.0 ms

--- yahoo.com ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 24ms
rtt min/avg/max/mdev = 72.024/73.261/73.982/0.932 ms

Without ethernet cord
root@Debian:/home/mike# ping yahoo.com
^Z
[1]+ Stopped ping yahoo.com

Still no wireless

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#22 Post by Winston »

root@Debian:/home/mike# lp z
lp: Error - unable to access "z" - No such file or directory

root@Debian:/home/mike# 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

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#23 Post by Winston »

Oops
root@Debian:/home/mike# ip z
Object "z" is unknown, try "ip help".

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#24 Post by Head_on_a_Stick »

Winston wrote:

Code: Select all

root@Debian:/home/mike# ip z
Object "z" is unknown, try "ip help".
Read my post again, carefully this time.

And use code tags for terminal output or I'm out. The quote button will show you how I've edited your post to do that.
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#25 Post by Winston »

Sorry, the old eyes ain't what they used to be.

Code: Select all

root@Debian:/home/mike# ip r
default via 192.168.1.1 dev eth0 proto dhcp metric 100 
default via 192.168.1.1 dev wlp12s0 proto dhcp metric 600 
169.254.0.0/16 dev eth0 scope link metric 1000 
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.13 metric 100 
192.168.1.0/24 dev wlp12s0 proto kernel scope link src 192.168.1.14 metric 600 
root@Debian:/home/mike# ip r
default via 192.168.1.1 dev eth0 proto dhcp metric 100
default via 192.168.1.1 dev wlp12s0 proto dhcp metric 600
169.254.0.0/16 dev eth0 scope link metric 1000
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.13 metric 100
192.168.1.0/24 dev wlp12s0 proto kernel scope link src 192.168.1.14 metric 600
Not sure which you want, so used both code and quote.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#26 Post by Winston »

I don't think interfaces is a problem. Here's the file:

Code: Select all

root@Debian:/etc/network# cat 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
Directory interfaces.d is empty.

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#27 Post by Chrisdb »

are you able to ping your gateway (without ethernet)

Code: Select all

ping -c 5 192.168.1.1
what's the output of the following commands (without ethernet)

Code: Select all

ip addr
ip r
cat /proc/net/arp

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#28 Post by Head_on_a_Stick »

Winston wrote:

Code: Select all

169.254.0.0/16 dev eth0 scope link metric 1000
That looks strange but I don't use NetworkManager so I don't know what's normal for that.

I would disable NM completely and try connecting manually to narrow down the source of the problem.
Winston wrote:Not sure which you want, so used both code and quote.
Code tags are for code, quote tags are for quotes. It's confusing, I know.
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#29 Post by Winston »

chrisdb: No
With ethernet

Code: Select all

mike@Debian:~$ ping -c 5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.627 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.509 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.457 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.416 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.410 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 88ms
rtt min/avg/max/mdev = 0.410/0.483/0.627/0.084 ms
Without ethernet

Code: Select all

mike@Debian:~$ ping -c 5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 103ms
The commands without ethernet

Code: Select all

mike@Debian:~$ ip addr
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: wlp12s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1f:3a:a1:9d:42 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.13/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp12s0
       valid_lft 84879sec preferred_lft 84879sec
    inet6 fe80::21f:3aff:fea1:9d42/64 scope link 
       valid_lft forever preferred_lft forever
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:1d:09:cf:f2:51 brd ff:ff:ff:ff:ff:ff
mike@Debian:~$ ip r
default via 192.168.1.1 dev wlp12s0 proto dhcp metric 600 
169.254.0.0/16 dev wlp12s0 scope link metric 1000 
192.168.1.0/24 dev wlp12s0 proto kernel scope link src 192.168.1.13 metric 600 
mike@Debian:~$ cat /proc/net/arp
IP address       HW type     Flags       HW address            Mask     Device
192.168.1.1      0x1         0x2         9c:3d:cf:ba:88:f0     *        wlp12s0

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#30 Post by Chrisdb »

It could be an issue with the driver.
Something else you can try as root:

Code: Select all

apt-get purge broadcom-sta-dkms
apt install firmware-b43-installer 
Now reboot and try again.

Make sure you check the blacklist (b43 should not be blacklisted).

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#31 Post by Winston »

Head_on_a_Stick:
Winston wrote:

Code: Select all
169.254.0.0/16 dev eth0 scope link metric 1000


That looks strange but I don't use NetworkManager so I don't know what's normal for that.
Yes, it's strange, but apparently due to NetworkManager, per packetlife.net/blog/2008/sep/24/169-254-0-0-addresses-explained.
I would disable NM completely and try connecting manually to narrow down the source of the problem.
I spent most of the afternoon figuring out how to disable NM and configure /etc/network/interfaces using https://wiki.debian.org/NetworkConfigur ... _Interface and https://wiki.debian.org/WiFi/HowToUse. So now I have the below and it does bring up ethernet, but wireless is still not working. In addition, reboot stalls with the message "A start job is running for Raise network interfaces." for a bit more than 6 minutes, though it finally reboots. My revised interfaces file:

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).

# my ethernet

auto eth0

allow-hotplug eth0

iface eth0 inet dhcp

iface eth0 inet6 dhcp

# my wifi device 

allow-hotplug wlp12s0.

iface wlp12s0. inet dhcp

     wireless-essid Corniche5

     wireless-mode Master

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

Code: Select all

sudo systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2020-02-26 16:05:05 EST; 36min ago
     Docs: man:NetworkManager(8)
 Main PID: 445 (code=exited, status=0/SUCCESS)

Feb 26 16:00:32 Debian NetworkManager[445]: <info>  [1582750832.1148] agent-manager: req[0x556c036619c0, :1.45/org
Feb 26 16:02:10 Debian NetworkManager[445]: <info>  [1582750930.7029] device (eth0): carrier: link connected
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.2807] caught SIGTERM, shutting down normally.
Feb 26 16:05:05 Debian systemd[1]: Stopping Network Manager...
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3036] dhcp4 (wlp12s0): canceled DHCP transaction, 
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3037] dhcp4 (wlp12s0): state changed bound -> done
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3037] device (wlp12s0): DHCPv4: 480 seconds grace 
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3506] exiting (success)
Feb 26 16:05:05 Debian systemd[1]: NetworkManager.service: Succeeded.
Feb 26 16:05:05 Debian systemd[1]: Stopped Network Manager.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#32 Post by Winston »

Chrisdb:
It could be an issue with the driver.
Something else you can try as root:

Code: Select all
apt-get purge broadcom-sta-dkms
apt install firmware-b43-installer


Now reboot and try again.
Purge works fine, but

Code: Select all

mike@Debian:~$ sudo apt install firmware-b43-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-b43-installer
mike@Debian:~$ sudo apt install firmware-b43-installer_019-4_all.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-b43-installer_019-4_all.deb
E: Couldn't find any package by glob 'firmware-b43-installer_019-4_all.deb'
E: Couldn't find any package by regex 'firmware-b43-installer_019-4_all.deb'
sources.list updated, probably wrong because I'm not familiar with sources. ftp.us.debian.org is the new line.

Code: Select all

cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 NETINST 20200208-12:07]/ buster main

# deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 NETINST 20200208-12:07]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'

deb http://deb.debian.org/debian/ buster-updates main 
deb-src http://deb.debian.org/debian/ buster-updates main
deb http://ftp.us.debian.org/debian buster main contrib

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
deb http://deb.debian.org/debian buster-backports main contrib non-free
# deb-src http://deb.debian.org/debian buster-backports main contrib non-free
# see the sources.list(5) manual.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#33 Post by Winston »

Chrisdb:

The link for firmware-b43-installer_019-4_all.deb came from following the directories at https://packages.debian.org/jessie/all/ ... r/download

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#34 Post by Winston »

Chrisdb - Update

Found some more links to put in /etc/apt/sources.link, and sudo apt install firmware-b43-installer worked.

BUT now reboot stalls on a line "A stop job is running for Raise network interfaces" for a bit more than 6 minutes before reboot completes.

Now on ping 8.8.8.8 without the ethernet connection, I get

Code: Select all

From 192.168.1.14 icmp seq=10 Destination Host Unreachable
which means the default gateway is misconfigured
The hostname command gives 2 different answers, but resolv.conf is still correct

Code: Select all

mike@Debian:~$ hostname -i
127.0.1.1
mike@Debian:~$ hostname -I
192.168.1.14               
mike@Debian:~$ cat /etc/resolv.conf
nameserver 192.168.1.1
192.168.1.14 is the address of the laptop itself.

arp now has 3 addresses, the gateway and two of my network printers with fixed addresses

Code: Select all

mike@Debian:~$ cat /proc/net/arp
IP address       HW type     Flags       HW address            Mask     Device
192.168.1.51     0x1         0x2         50:5b:c2:2a:a8:b5     *        eth0
192.168.1.1      0x1         0x2         9c:3d:cf:ba:88:f0       *        eth0
192.168.1.50     0x1         0x2         b0:ea:bc:30:d4:21     *        eth0
The broadcom blacklist file no longer exists

Code: Select all

mike@Debian:/etc/modprobe.d$ ls
dkms.conf
ip now shows wireless as wlan0 instead of wlp12s0

Code: Select all

mike@Debian:/etc/modprobe.d$ ip addr
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 00:1d:09:cf:f2:51 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.14/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 82371sec preferred_lft 82371sec
    inet6 fe80::21d:9ff:fecf:f251/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
    link/ether 00:1f:3a:a1:9d:42 brd ff:ff:ff:ff:ff:ff
The broadcom-sta-dkms.conf blacklist file is gone

Code: Select all

mike@Debian:/etc/modprobe.d$ ls
dkms.conf
So I'm thinking I should re-install broadcom-sta-dkms and reset things as they were before it was removed. Do you agree?

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#35 Post by Chrisdb »

Winston wrote:sudo apt install firmware-b43-installer_019-4_all.deb
This is not the way to install packages on Debian
see: https://wiki.debian.org/DebianPackageManagement

you're missing the non-free repo in your sources. Take a look at the second example from the following link:
https://wiki.debian.org/SourcesList#Exa ... urces.list
To add backports, use the third example
Winston wrote:BUT now reboot stalls on a line "A stop job is running for Raise network interfaces"
Did you deactivate NetworkManager?

Code: Select all

systemctl disable NetworkManager
Also, what does your final 'interface' file look like?

Did you configure wpa_supplicant?
https://wiki.debian.org/WiFi/HowToUse#wpa_supplicant

Post Reply