No internet

New to Debian (Or Linux in general)? Ask your questions here!

Re: No internet

Postby Winston » 2020-02-26 20:57

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

Postby Winston » 2020-02-26 21:39

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

Postby Winston » 2020-02-26 21:50

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

Postby Winston » 2020-02-27 02:01

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?
Winston
 
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

Postby Chrisdb » 2020-02-27 05:48

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#Example_sources.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
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: No internet

Postby Head_on_a_Stick » 2020-02-27 18:45

Winston wrote:
Code: Select all
allow-hotplug wlp12s0.

iface wlp12s0. inet dhcp

     wireless-essid Corniche5

     wireless-mode Master

Why have you followed the "wi-fi hotspot" instructions? :?

Try https://wiki.debian.org/WiFi/HowToUse#W ... d_WPA2-PSK instead, the first bit should provide some diagnostic information if it doesn't work.

EDIT: and there shouldn't be a full-stop after the interface name, not sure why you've added that. It certainly doesn't appear in the guide.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12747
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No internet

Postby Winston » 2020-02-29 04:02

Chrisdb and Head:

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


OK, got that fixed and properly installed apt install firmware-b43-installer and broadcom-sta-dkms

Did you deactivate NetworkManager?

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


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


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 infrastructure

#source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback




Yes, created (it didn't exist) and configured as below and rebooted, but still no wireless internet on reboot, just annoying stop and start delays.
Code: Select all
mike@Debian:/etc/systemd/system$ cat wpa_supplicant.service
[Unit]
Description=WPA supplicant
Before=network.target
After=dbus.service
Wants=network.target

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i
wlp12s0

[Install]
WantedBy=multi-user.target
#Alias=dbus-fi.w1.wpa_supplicant1.service
Winston
 
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

Postby Chrisdb » 2020-02-29 06:23

After installing the new driver, your interface was renamed to 'wlan0'.

You should change your configs accordingly

Also for wpa_supplicant you should not have to define a service yourself.
Take a look at the link HoaS provided. You probably use WPA-PSK...
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: No internet

Postby Head_on_a_Stick » 2020-02-29 09:55

Winston wrote:


Yes, created (it didn't exist) and configured as below and rebooted

There is already /lib/systemd/system/wpa_supplicant.service (and several others) so delete your file and disable it.

This thread is getting really silly now so let's start from scratch and I'll spoon-feed you commands to try. You obviously can't follow the linked guides for whatever reason.

So first please provide a list of enabled services:
Code: Select all
systemctl list-unit-files --state=enabled

And we'll take it from there.

Please don't try anything else unless we specifically tell you to or this will just go on forever.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12747
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No internet

Postby Winston » 2020-02-29 22:09

Code: Select all
systemctl list-unit-files --state=enabled
UNIT FILE                                  STATE
cups.path                                  enabled
accounts-daemon.service                    enabled
anacron.service                            enabled
apparmor.service                           enabled
autovt@.service                            enabled
avahi-daemon.service                       enabled
bluetooth.service                          enabled
console-setup.service                      enabled
cron.service                               enabled
cups-browsed.service                       enabled
cups.service                               enabled
dbus-fi.w1.wpa_supplicant1.service         enabled
dbus-org.bluez.service                     enabled
dbus-org.freedesktop.Avahi.service         enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.timesync1.service     enabled
getty@.service                             enabled
keyboard-setup.service                     enabled
ModemManager.service                       enabled
networking.service                         enabled
pppd-dns.service                           enabled
rsyslog.service                            enabled
Winston
 
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

Postby Head_on_a_Stick » 2020-02-29 23:43

Okay so let's stop networking.service (which runs ifupdown and is controlled via /etc/network/interfaces):
Code: Select all
# systemctl stop networking

Then create a configuration file for wpa_supplicant:
Code: Select all
# wpa_passphrase 'ssid' 'password' > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

^ Replace ssid with the name of your access point and replace password with the actual password.

Now try associating with the access point:
Code: Select all
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

And then assign some addresses:
Code: Select all
# dhclient wlan0

You should now be connected via wireless. If any steps fail then please post the error messages in full (along with the command that preceded them).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12747
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No internet

Postby Winston » 2020-03-01 01:05

My laptop can't find this command
Code: Select all
root@Debian:/home/mike# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
bash: wpa_supplicant: command not found


Also, my wireless name has been wlp12s0 and not wlan0. Currently it's not running
Code: Select all
/sbin/iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

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

Re: No internet

Postby Chrisdb » 2020-03-01 08:08

First install 'wpa_supplicant':
Code: Select all
# apt install wpasupplicant


Next what is the name of your wireless interface now:
Code: Select all
ip addr
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: No internet

Postby Winston » 2020-03-01 18:08

chrisd:

wpasupplicant is installed, I just can't find its path to use it.
Code: Select all
mike@Debian:~$ sudo apt install wpasupplicant
[sudo] password for mike:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wpasupplicant is already the newest version (2:2.7+git20190128+0c1e29f-6+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Winston
 
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

Postby Head_on_a_Stick » 2020-03-01 18:16

Winston wrote:I just can't find its path to use it

viewtopic.php?f=16&t=142973

tl;dr:
Code: Select all
/sbin/wpa_supplicant
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12747
Joined: 2014-06-01 17:46
Location: /dev/chair

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable