Author Topic: Debian Recovery Mode No Internet - SOLVED  (Read 2289 times)

Debian Recovery Mode No Internet - SOLVED
« on: 28 December, 2020, 01:41:14 pm »
I have a new install of Debian Buster 10.7 which is not loading properly, and just keeps recycling part of the boot process with accompanying screen messages, which don't stay long enough to capture.

I have restarted and entered Debians Recovery Mode, which gives me root access.  I have beenusing systemctl to interrogate systemd, with some puzzling results.

Using the command systemctl | grep Ethernet gives me:

Code: [Select]
sys-devices-pci0000:00-0000:00:1e.0-0000:02:08.0-net-enp2s8.device            loaded active plugged  82801CAM (ICH3)
  PRO/100 VM (KM) Ethernet Controller (Evo N600c)
sys-subsystem-net-devices-enp2s8.device                                                         loaded active plugged  82801CAM (ICH3)
  PRO/100 VM (KM) Ethernet Controller (Evo N600c)

However, if I use traceroute 192.168.0.1, I get:

Code: [Select]
traceroute to 192.168.0.1 (192.168.0.1), 30 hops max, 60 byte packets
connect: Network is unreachable

Having edited /etc/apt/sources.list with nano, I was wanting to use apt update to make the changes active, but cannot connect, hence trying to find out what's going on with the internet connection.

Any help gratefully received.

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #1 on: 28 December, 2020, 01:44:15 pm »

Start with the basics, what's the output of:

# /sbin/ifconfig

then:

# route -n

With those we can see where things are at.

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #2 on: 28 December, 2020, 02:32:09 pm »
/sbin/ifconfig:

Code: [Select]
root@compaqdebian:~# /sbin/ifconfig
bash: /sbin/ifconfig: No such file or directory

route:

Code: [Select]
root@compaqdebian:~# route -n
bash: route: command not found



Re: Debian Recovery Mode No Internet
« Reply #3 on: 28 December, 2020, 02:38:26 pm »
I also tried ifquery, as that, unlike the other commands, is listed under /sbin/:

Code: [Select]
root@compaqdebian:~# /sbin/ifquery enp2s8
ifquery: unknown interface enp2s8

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #4 on: 28 December, 2020, 02:39:17 pm »
/sbin/ifconfig:

Code: [Select]
root@compaqdebian:~# /sbin/ifconfig
bash: /sbin/ifconfig: No such file or directory

route:

Code: [Select]
root@compaqdebian:~# route -n
bash: route: command not found

try

# /sbin/ip a

# /sbin/route -n

The way debian fucks up the path of root really annoys me.

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #5 on: 28 December, 2020, 02:42:13 pm »
Will take a bit of time, as I have to type it all...

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #6 on: 28 December, 2020, 02:44:08 pm »
Will take a bit of time, as I have to type it all...

You can save some typing and miss out the bit that starts:

lo: <LOOPBACK,UP,LOWER_UP> mtu

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #7 on: 28 December, 2020, 02:52:46 pm »
Code: [Select]
root@compaqdebian:~#  /sbin/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:   enp2s8: <BROADCAST,MULTICAST> mtu 1500 qdisc  noop state DOWN group default qlen 1000
      link/ether 00:02:a5:ba:1c:80 brd ff:ff:ff:ff:ff:ff

Code: [Select]
root@compaqdebian:~#  /sbin/route -n
bash: /sbin/route: No such file or directory


Pingu

  • Put away those fiery biscuits!
  • Mrs Pingu's domestique
    • the Igloo
Re: Debian Recovery Mode No Internet
« Reply #8 on: 28 December, 2020, 02:55:13 pm »
Will take a bit of time, as I have to type it all...

Take a picture of it?

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #9 on: 28 December, 2020, 02:56:19 pm »
Code: [Select]
root@compaqdebian:~#  /sbin/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:   enp2s8: <BROADCAST,MULTICAST> mtu 1500 qdisc  noop state DOWN group default qlen 1000
      link/ether 00:02:a5:ba:1c:80 brd ff:ff:ff:ff:ff:ff

Code: [Select]
root@compaqdebian:~#  /sbin/route -n
bash: /sbin/route: No such file or directory

Argh, why do debian try to make it so hard my removing standard tools like route ?!?

Anyway, your machine has no IP address. Which is why the network isn't doing anything.

The device enp2s8 thinks it's down. The first thing to do there is check the network cable is plugged in, at both ends.

Are you using DHCP or static IP assignment?

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #10 on: 28 December, 2020, 03:00:12 pm »
Thanks, J.

Ethernet cable plugged in and working.  Little green and orange lights showing at socket.

I'm afraid I don't know whether I am using DHCP or static IP assignment.  Writing on this other functioning Debian machine working alongside, if that helps to ascertain the info.

Re: Debian Recovery Mode No Internet
« Reply #11 on: 28 December, 2020, 03:08:05 pm »
You should be able to see the boot messages with

   dmesg | more

Re: Debian Recovery Mode No Internet
« Reply #12 on: 28 December, 2020, 03:15:51 pm »
I think Debian defaults to NetworkManager so to bring up the network use

   systemctl start NetworkManager


quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #13 on: 28 December, 2020, 03:16:37 pm »
Thanks, J.

Ethernet cable plugged in and working.  Little green and orange lights showing at socket.

I'm afraid I don't know whether I am using DHCP or static IP assignment.  Writing on this other functioning Debian machine working alongside, if that helps to ascertain the info.

DHCP then. I don't know how the rescue image controls that, on my debian install I can use

# /sbin/dhclient enp2s8

To get a new IP address. But I don't know if dhclient will be installed, esp given route isn't...

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #14 on: 28 December, 2020, 03:26:01 pm »
dhclient seems to be installed!

Code: [Select]
root@compaqdebian:~#  /sbin/dhclient enp2s8
[ 3179.226603]  IPv6;  ADDRCONF (NETDEV_UP): enp2s8: link becomes ready
[ 3179.230338]  e100 0000:02:08.0 enp2s8: NIC Link is Up 100 Mbps Full Duplex
[ 3179.237238]   IPv6:  ADDRCONF (NETDEV_CHANGE): enp2s8: link becomes ready

Looks like success!  And traceroute 192.168.0.1 now works!

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #15 on: 28 December, 2020, 03:27:53 pm »
dhclient seems to be installed!

Code: [Select]
root@compaqdebian:~#  /sbin/dhclient enp2s8
[ 3179.226603]  IPv6;  ADDRCONF (NETDEV_UP): enp2s8: link becomes ready
[ 3179.230338]  e100 0000:02:08.0 enp2s8: NIC Link is Up 100 Mbps Full Duplex
[ 3179.237238]   IPv6:  ADDRCONF (NETDEV_CHANGE): enp2s8: link becomes ready

Looks like success!  And traceroute 192.168.0.1 now works!

Excellent.

J

--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Debian Recovery Mode No Internet
« Reply #16 on: 28 December, 2020, 03:30:59 pm »
Many thanks, J - that's fantastic!  :thumbsup:

quixoticgeek

  • Mostly Harmless
Re: Debian Recovery Mode No Internet
« Reply #17 on: 28 December, 2020, 03:32:00 pm »
Many thanks, J - that's fantastic!  :thumbsup:

No problem!

J
--
Beer, bikes, and backpacking
http://b.42q.eu/