[SOLVED] Destination Host Unreachable - can't get around it
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Destination Host Unreachable - can't get around it
Hi there!
I installed Slackware64-15.0 on a Fujitsu Lifebook (intel-i5) some time last year and did not use it very often. This is one of some multiboot machines and I don't recall much about the installation process.
I am not very good at configuring networks, have too many doubts about meaning of terms and expressions, but have always, often med help av friendly people, finally got it solved.
This instance of problem is happening after I became without internet and my provider finally changed their receiving hardware at my place. The router connecting to my computers is still the same.
The whole process took about a week of tests and exchanges.
I very much suspect knowing myself that my stress caused, as usually, many of the problems I experienced thereafter, including having to reformat and re-install 2 multiboot stations and buy a hard disk.
The Artix installed for boot managemment is connecting to the internet without any problems, which made - I believe - all the testing I did about cables, router and ports superfluous.
Here the only difference is which installation, everything else, AFAIK is constant.
I did also experience a problem initially exactly like that which is the subject of this thread in a Fujitsu Esprimo Q (intel-i5).
I was able to solve it there in a way that did not work in this case.
The initial symptom here (as there) was the message
Code:
Destination Host Unreachable]
while connected to internet.
From there I spent 3 days searching, googling and trying different ideas collected on the way.
I did keep some examples, but unfortunately I don't know of any away to logging my terminal activity, so the information I am providing is incomplete and may have missed important bits.
But I think (/hope) those with experience may see through my misses.
Here is the last block I saved, this morning (sunday 25), after I upgraded-all, after updating kernel from 5.15.117 to 5.15.145 and making a new initrd:
Code:
bash-5.1$ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.181 icmp_seq=1 Destination Host Unreachable
From 192.168.0.181 icmp_seq=2 Destination Host Unreachable
From 192.168.0.181 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2029ms
pipe 3
bash-5.1$ route -n
bash: route: command not found
bash-5.1$ su
Password:
bash-5.1# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
bash-5.1# less /etc/resolv.conf
bash-5.1# # Generated by resolvconf
search dlinkrouter
nameserver 2001:9b0::53:1
nameserver 2001:9b0::53:2
bash: search: command not found
bash: nameserver: command not found
bash: nameserver: command not found
bash-5.1#
bash-5.1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 72:f0:c8:04:81:3d brd ff:ff:ff:ff:ff:ff permaddr 58:94:6b:1c:d2:ac
bash-5.1#
And the first block I saved yesterday, having eth0 configured manually in /etc/rc.d/rc.inet1.conf:
Code:
bash-5.1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
bash-5.1# runlevel
N 3
bash-5.1# rc-update show
bash: rc-update: command not found
bash-5.1# ls -l /etc/rc.d
total 488
drwxr-xr-x 2 root root 4096 Feb 13 2021 init.d
lrwxrwxrwx 1 root root 4 Nov 14 2022 rc.0 -> rc.6
-rwxr-xr-x 1 root root 1649 Apr 24 2021 rc.4
-rwxr-xr-x 1 root root 10077 Nov 10 2021 rc.6
-rwxr-xr-x 1 root root 3303 Apr 23 2021 rc.K
-rwxr-xr-x 1 root root 13230 Nov 12 2021 rc.M
-rwxr-xr-x 1 root root 18050 Jan 27 2022 rc.S
-rwxr-xr-x 1 root root 552 Sep 20 2021 rc.acpid
-rw-r--r-- 1 root root 2556 Jun 14 2021 rc.alsa
-rw-r--r-- 1 root root 999 Jun 14 2021 rc.alsa-oss
-rw-r--r-- 1 root root 1009 Feb 13 2021 rc.atalk
-rwxr-xr-x 1 root root 669 Jan 30 2022 rc.atd
-rw-r--r-- 1 root root 2825 Oct 20 2021 rc.autofs
-rw-r--r-- 1 root root 4045 Feb 4 03:33 rc.bind
-rw-r--r-- 1 root root 3990 Sep 24 2021 rc.bind.orig
-rwxr-xr-x 1 root root 1456 Jan 26 2022 rc.bluetooth
-rw-r--r-- 1 root root 4917 Aug 2 2021 rc.cgconfig
-rw-r--r-- 1 root root 3347 Aug 2 2021 rc.cgred
-rwxr-xr-x 1 root root 3330 Apr 23 2021 rc.cpufreq
-rwxr-xr-x 1 root root 731 Feb 13 2021 rc.crond
-rw-r--r-- 1 root root 3295 Jun 29 2021 rc.cups
-rw-r--r-- 1 root root 3085 Jan 16 2022 rc.cups-browsed
-rw-r--r-- 1 root root 814 Sep 9 2021 rc.dnsmasq
-rw-r--r-- 1 root root 554 Dec 7 2021 rc.dovecot
-rwxr-xr-x 1 root root 1579 Mar 3 2021 rc.elogind
-rwxr-xr-x 1 root root 139 Nov 14 2022 rc.font
-rwxr-xr-x 1 root root 1893 Feb 13 2021 rc.fuse
-rwxr-xr-x 1 root root 1995 Sep 7 2021 rc.fuse3
-rwxr-xr-x 1 root root 1153 Nov 14 2022 rc.gpm
-rwxr-xr-x 1 root root 762 Jan 9 2022 rc.haveged
-rw-r--r-- 1 root root 1001 Feb 4 03:34 rc.httpd
-rw-r--r-- 1 root root 1083 Dec 20 2021 rc.httpd.orig
-rw-r--r-- 1 root root 964 Sep 21 2018 rc.icecc-scheduler
-rw-r--r-- 1 root root 901 Sep 21 2018 rc.iceccd
-rw-r--r-- 1 root root 1894 Jan 25 2022 rc.icecream.conf
-rwxr-xr-x 1 root root 29251 Jun 26 2023 rc.inet1
-rw-rwx--- 1 root root 10683 Feb 24 19:42 rc.inet1.conf
-rw------- 1 root root 11077 Jun 26 2023 rc.inet1.conf.new
-rw------- 1 root root 10891 Nov 15 2022 rc.inet1.conf.save
-rw-r--r-- 1 root root 29100 Jan 2 2022 rc.inet1.orig
-rw-r--r-- 1 root root 5340 Oct 13 2019 rc.inet2
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rw-r--r-- 1 root root 3781 May 19 2013 rc.ip_forward
-rw-r--r-- 1 root root 797 Dec 12 2019 rc.kadmind
-rw-r--r-- 1 root root 857 Dec 12 2019 rc.kpropd
-rw-r--r-- 1 root root 842 Dec 12 2019 rc.krb5kdc
-rwxr-xr-x 1 root root 274 Apr 23 2021 rc.local
-rwxr-xr-x 1 root root 170 Apr 23 2021 rc.loop
-rw-r--r-- 1 root root 1340 Nov 17 2021 rc.lxc
-rwxr-xr-x 1 root root 1950 Dec 10 2021 rc.mcelog
-rwxr-xr-x 1 root root 1864 Feb 13 2021 rc.messagebus
-rwxr-xr-x 1 root root 780 Apr 23 2021 rc.modules
-rwxr-xr-x 1 root root 691 Apr 23 2021 rc.modules.local
-rw-r--r-- 1 root root 2517 Nov 20 2021 rc.mysqld
-rw-r--r-- 1 root root 2674 Sep 27 2021 rc.networkmanager
-rw-r--r-- 1 root root 2920 Jun 15 2021 rc.nfsd
-rw-r--r-- 1 root root 752 Nov 21 2021 rc.nss-pam-ldapd
-rw-r--r-- 1 root root 805 May 21 2021 rc.ntpd
-rw-r--r-- 1 root root 1526 Jun 6 2021 rc.openldap
-rw-r--r-- 1 root root 3489 Feb 28 2018 rc.openvpn
-rw-r--r-- 1 root root 1722 Mar 16 2007 rc.pcmcia
-rw-r--r-- 1 root root 2373 Dec 16 2021 rc.php-fpm
-rw-r--r-- 1 root root 1616 Jan 16 2022 rc.postfix
-rw-r--r-- 1 root root 1171 Jan 4 2022 rc.pulseaudio
-rw-r--r-- 1 root root 2295 May 12 2021 rc.rpc
-rw-r--r-- 1 root root 940 Jan 31 2022 rc.samba
-rw-r--r-- 1 root root 1167 Feb 13 2021 rc.saslauthd
-rw-r--r-- 1 root root 2895 Jan 24 2022 rc.serial
-rwxr-xr-x 1 root root 483 Jan 8 2019 rc.setterm
-rw-r--r-- 1 root root 977 Mar 1 2021 rc.smartd
-rw-r--r-- 1 root root 981 Dec 21 2021 rc.snmpd
-rwxr-xr-x 1 root root 1814 Sep 29 2021 rc.sshd
-rwxr-xr-x 1 root root 669 Dec 4 2021 rc.syslog
-rw-r--r-- 1 root root 1253 Nov 17 2022 rc.sysstat
-rwxr-xr-x 1 root root 1656 Apr 23 2021 rc.sysvinit
-rwxr-xr-x 1 root root 7064 Apr 23 2017 rc.udev
-rwxr-xr-x 1 root root 437 Feb 13 2021 rc.ulogd
-rw-r--r-- 1 root root 13885 Mar 19 2021 rc.wireless
-rw------- 1 root root 7349 Mar 19 2021 rc.wireless.conf
-rw-r--r-- 1 root root 3837 Jan 4 2022 rc.yp
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc0.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc1.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc2.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc3.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc4.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc5.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc6.d
bash-5.1# nano -w /etc/rc.d/rc.inet1.conf
bash-5.1# nano -w /etc/rc.d/rc.inet1 restart
bash-5.1# /etc/rc.d/rc.inet1 restart
Stopping the network interfaces...
Starting the network interfaces...
eth0: polling for DHCP server
dhcpcd-9.4.1 starting
DUID 00:04:2f:df:7d:94:06:4c:11:e0:9d:d8:4d:02:1e:0d:f0:c1
eth0: waiting for carrier
eth0: carrier acquired
eth0: IAID 99:ec:48:f9
eth0: adding address fe80::9c19:306b:b9f3:c3c0
eth0: soliciting an IPv6 router
eth0: Router Advertisement from fe80::12e8:78ff:fe02:a401
eth0: no global addresses for default route
eth0: soliciting a DHCPv6 lease
eth0: ADV 2001:9b1:10d:39::4:2b40/128 from fe80::12e8:78ff:fe02:a401
eth0: REPLY6 received from fe80::12e8:78ff:fe02:a401
eth0: adding address 2001:9b1:10d:39::4:2b40/128
eth0: renew in 300, rebind in 400, expire in 600 seconds
eth0: adding default route via fe80::12e8:78ff:fe02:a401
forked to background, child pid 2924
bash-5.1# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.161 icmp_seq=1 Destination Host Unreachable
From 192.168.0.161 icmp_seq=2 Destination Host Unreachable
From 192.168.0.161 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2069ms
pipe 3
When I tried with both Gateways (IPv6 och IPv4)=192.168.0.1 which in retrospect I realize was dumb and DHCP="yes for ipv4 in /etc/rc.d/rc.inet1:
Code:
bash-5.1# /etc/rc.d/rc.inet1 restart
Stopping the network interfaces...
Starting the network interfaces...
eth0: polling for DHCP server
dhcpcd-9.4.1 starting
DUID 00:04:2f:df:7d:94:06:4c:11:e0:9d:d8:4d:02:1e:0d:f0:c1
eth0: waiting for carrier
eth0: carrier acquired
eth0: IAID 99:ec:48:f9
eth0: adding address fe80::9c19:306b:b9f3:c3c0
eth0: soliciting an IPv6 router
eth0: soliciting a DHCP lease
dhcp6_openudp: Address already in use
ps_inet_listenin6: Address already in use
ps_root_recvmsg: Address already in use
eth0: Router Advertisement from fe80::12e8:78ff:fe02:a401
eth0: no global addresses for default route
eth0: confirming prior DHCPv6 lease
eth0: adding default route via fe80::12e8:78ff:fe02:a401
eth0: probing for an IPv4LL address
eth0: using IPv4LL address 169.254.167.136
eth0: adding route to 169.254.0.0/16
eth0: adding default route
forked to background, child pid 3633
ash-5.1# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 169.254.167.136 icmp_seq=1 Destination Host Unreachable
From 169.254.167.136 icmp_seq=2 Destination Host Unreachable
From 169.254.167.136 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2041ms
pipe 3
bash-5.1#
In a later block from yesterday I had in rc.inet1.conf:
Code:
# IPv4 config options for eth0:
IPADDRS[0]=""
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]="yes"
USE_SLAAC[0]=""
USE_DHCP6[0]="yes"
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 default gateway IP address:
GATEWAY=""
# IPv6 default gateway IP address:
GATEWAY6=""
# IPv4 config options for eth0:
IPADDRS[0]=""
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]="yes"
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 default gateway IP address:
GATEWAY=""
# IPv6 default gateway IP address:
GATEWAY6=""
Resulting in:
Code:
bash-5.1# /etc/rc.d/rc.inet1 restart
Stopping the network interfaces...
Starting the network interfaces...
eth0: polling for DHCP server
sending commands to dhcpcd process
Error: inet6 prefix is expected rather than "yes/64".
bash-5.1# nano -w /etc/rc.d/rc.inet1.conf
bash-5.1# /etc/rc.d/rc.inet1 restart
Stopping the network interfaces...
Starting the network interfaces...
eth0: polling for DHCP server
sending commands to dhcpcd process
bash-5.1#
This setting:
Code:
# IPv4 config options for eth0:
IPADDRS[0]=""
USE_DHCP[0]="yes"
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 default gateway IP address:
GATEWAY="192.168.0.1"
# IPv6 default gateway IP address:
GATEWAY6=""
was followed by:
Code:
bash-5.1# /etc/rc.d/rc.inet1 restart
Stopping the network interfaces...
Starting the network interfaces...
eth0: polling for DHCP server
sending commands to dhcpcd process
Error: Nexthop has invalid gateway.
bash-5.1#
bash-5.1# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
bash-5.1# route add default gw 192.168.0.1
SIOCADDRT: Network is unreachable
bash-5.1#
bash-5.1# ip route add default via 192.168.0.1 dev eth0
Error: Nexthop has invalid gateway.
bash: dhcp: command not found
bash-5.1# dhcpcd eth0
sending commands to dhcpcd process
bash-5.1# chmod 644 /etc/rc.d/rc.inet1
bash-5.1# /etc/rc.d/rc.inet1 stop
bash: /etc/rc.d/rc.inet1: Permission denied
bash-5.1# chmod 755 /etc/rc.d/rc.inet1
bash-5.1# /etc/rc.d/rc.inet1 stop
Stopping the network interfaces...
bash-5.1# chmod 644 /etc/rc.d/rc.inet1
bash-5.1# nano -w /etc/rc.d/rc.networkmanager start
bash-5.1# /etc/rc.d/rc.networkmanager start
bash: /etc/rc.d/rc.networkmanager: Permission denied
bash-5.1# chmod 644 /etc/rc.d/rc.networkmanager
bash-5.1# /etc/rc.d/rc.networkmanager start
bash: /etc/rc.d/rc.networkmanager: Permission denied
bash-5.1# chmod 755 /etc/rc.d/rc.networkmanager
bash-5.1# /etc/rc.d/rc.networkmanager start
Starting NetworkManager daemon: /usr/sbin/NetworkManager
bash-5.1# ping -c 3 8.8.8.8
ping: connect: Network is unreachable
nmapplet said internet was connected (above)
and then by:
Code:
bash-5.1# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 1001002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
bash-5.1# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 0.0.0.0 0.0.0.0 U 1001002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
bash-5.1# ip link eth0 down
Command "eth0" is unknown, try "ip link help".
bash-5.1# ip link set eth0 down
bash-5.1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
bash-5.1# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
bash-5.1# ip link set eth0 up
bash-5.1# ip link set
Not enough information: "dev" argument is required.
bash-5.1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
bash-5.1# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 1001002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
bash-5.1# ip link set eth0 down
bash-5.1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
bash-5.1# man ip link
bash-5.1# man ip address
bash-5.1# /etc/rc.d/rc.inet1 stop
Stopping the network interfaces...
bash-5.1# ip address add 192.168.0.199 dev eth0
bash-5.1# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
bash-5.1# route add default gw 192.168.0.1
SIOCADDRT: Network is unreachable
bash-5.1# ip link
1: lo: <LOOPBACK> mtu 65536 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
bash-5.1# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.199 netmask 255.255.255.255 broadcast 0.0.0.0
inet6 fe80::9c19:306b:b9f3:c3c0 prefixlen 64 scopeid 0x20<link>
inet6 2001:9b1:10d:39::4:2b40 prefixlen 128 scopeid 0x0<global>
inet6 fe80::6ab5:99ff:feec:48f9 prefixlen 64 scopeid 0x20<link>
ether 68:b5:99:ec:48:f9 txqueuelen 1000 (Ethernet)
RX packets 178 bytes 16013 (15.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 502 bytes 55484 (54.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xd4700000-d4720000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 40 bytes 4104 (4.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 40 bytes 4104 (4.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
bash-5.1#
I have no idea of what is going on, as you probably have already noticed.
Last edited by fredmyra; 02-25-2024 at 07:03 AM.
Reason: typo
To me it seems as if your router does not provide you with any IPv4 address.
Do you have any machine on your local network working good enough to try to reach your routers administration web interface? There you should be able to configure things like LAN network settings. Then you can choose if you want to use DHCP for your machines in your LAN or if you want to reserve some addresses for static IP configuration.
posted by @Petri Kaukasoina:
Don't set GATEWAY yourself. Only set this:
Code:
USE_DHCP[0]="yes"
rc.inet1 should be executable and rc.networkmanager should not.
I did this and got the following (this time I could copy-paste, with a minimal edit to show the settings in rc.inet1.conf):
Code:
bash-5.1$ su -l
Password:
root@strandliden:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 58:94:6b:1c:d2:ac brd ff:ff:ff:ff:ff:ff
root@strandliden:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 1001002 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
root@strandliden:~# ls -l /etc/rc.d/ | grep rc.inet1
-rwxr-xr-x 1 root root 29251 Jun 26 2023 rc.inet1*
-rw-rwx--- 1 root root 10659 Feb 25 22:51 rc.inet1.conf*
-rw------- 1 root root 11077 Jun 26 2023 rc.inet1.conf.new
-rw------- 1 root root 10891 Nov 15 2022 rc.inet1.conf.save
-rw-r--r-- 1 root root 29100 Jan 2 2022 rc.inet1.orig
root@strandliden:~# less /etc/rc.d/rc.inet1.conf | grep eth0
# You can configure network interfaces other than eth0,eth1... by setting
# IPv4 config options for eth0:
# IPv6 config options for eth0:
# Generic options for eth0:
#BONDNICS[0]="eth0 eth1"
#IFNAME[0]="eth0.10"
#BRNICS[0]="eth0"
root@strandliden:~# less /etc/rc.d/rc.inet1.conf
root@strandliden:~# --------------------------------------------
root@strandliden:~# edited manually:
root@strandliden:~# # IPv4 config options for eth0:
IPADDRS[0]=""
USE_DHCP[0]="yes"
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 default gateway IP address:
GATEWAY=""
# IPv6 default gateway IP address:
GATEWAY6=""
--------------------------------------------------------------------
root@strandliden:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.167.136 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::6ab5:99ff:feec:48f9 prefixlen 64 scopeid 0x20<link>
ether 68:b5:99:ec:48:f9 txqueuelen 1000 (Ethernet)
RX packets 398 bytes 29558 (28.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 89 bytes 24928 (24.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xd4700000-d4720000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 4 bytes 240 (240.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 240 (240.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@strandliden:~#
When booting I noticed something I had not noticed the first time I booted the generic-1.15.145. I have been trying to attach a picture of that screen but I keep getting answers of "Invalid Post specified".
What called my attention was that NetworkManager was started and assigned a 169.254.0.0/16, something that has happened quite often with some distros, in different machines.
posted by @reddog83:
are you physically attached to the network with an ethernet cable or threw wifi.
I am doing all my testing through Ethernet cable, but when using NetworkManagers nmtui I can easily get feedback that I am connected both when I activate LAN and when I activate wifi. But in both cases it starts with the "Destination Host Unreachable" and then when I fiddle with settings all other kinds of error messages.
posted by @henca:
To me it seems as if your router does not provide you with any IPv4 address.
Do you have any machine on your local network working good enough to try to reach your routers administration web interface? There you should be able to configure things like LAN network settings. Then you can choose if you want to use DHCP for your machines in your LAN or if you want to reserve some addresses for static IP configuration.
Got a feeling you've pointed at something relevant, though I have no idea why, just a feeling on the basis of what I have experienced, can't formulate it on a rational model.
On the other hand I must acknowledge that Artix in the same machine is accessing the Internet, either through wifi or ethernet cable, without problem. This is a situation I have experienced in other computers.
I really don't know what
Quote:
reach your routers administration web interface
means. I imagine that Artix should be good enough, but I have no idea how one does it.
I think that when I tried to ping my gateway last night, for the first time in my life, I got an "Unreachable" message, but I did not documented it.
What called my attention was that NetworkManager was started and assigned a 169.254.0.0/16, something that has happened quite often with some distros, in different machines.
169.254.x.x is an APIPA address
That means that no DHCP server has been found on your network or your network configuration failed
What called my attention was that NetworkManager was started and assigned a 169.254.0.0/16
You should not use both USE_DHCP[0]="yes" and NetworkManager at the same time. Either 'chmod -x /etc/rc.d/rc.networkmanager' and let rc.inet1 run dhcp or unset USE_DHCP[0] and 'chmod +x /etc/rc.d/rc.networkmanager'.
to reach your routers administration web interface
means.
Your router has some kind of configuration, both settings for how to connect to internet and also settings for your home network. One of those settings is the IP address of its internal interface. It seems as if we have assumed that IP address of the router is 192.168.0.1. Maybe that assumption is right, maybe that assumption is outdated and you now have another router with another IP address.
Another setting in that router is DHCP. It is possible to configure routers to give out IP addresses together with settings to machines in your network using DHCP. On the other hand, it is also possible to configure routers not to do so.
As your Slackware installation is unable to reach internet and got a 169 address from its DHCP attempt it will not be able to reach your router even if the 192.168.0.1 guess would be right.
If you have another machine which is able to successfully connect to internet through that router you could probably also use that machine to study the settings of the router. Is it configured with IP address 192.168.0.1? Is it configured to provide IP adresses and settings with DHCP? Maybe you can find out by pointing a web browser to http://192.168.0.1 on a working machine. On the other hand, by studying your routing table on a working machine you might find that your router is configured to some other address than 192.168.0.1.
The fact that DHCP fails and that most routers are configured by default to give IP adresses with DHCP might be a reason to study LEDs on the router and the network card in your PC. Do those LEDs light up in a way that indicates network link? Do the colors of the leds say anything about the network speed? If all LEDs are off you might have a broken network cable.
posted by @marav:
169.254.x.x is an APIPA address
That means that no DHCP server has been found on your network or your network configuration failed
Thanks! that sounds like a good explanation to me. From the feedback I get it seems that there is a dhcpcd server being started, so it is probably the configuration, and most probably due to my lack of knowledge and experience. And I commit too many silly mistakes.
posted by @Petri Kaukasoina
You should not use both USE_DHCP[0]="yes" and NetworkManager at the same time. Either 'chmod -x /etc/rc.d/rc.networkmanager' and let rc.inet1 run dhcp or unset USE_DHCP[0] and 'chmod +x /etc/rc.d/rc.networkmanager'.
I have been trying to test your suggestions, but I did too many mistakes.I tried to log my terminal activity but ended up messing my system.
Probably because not having access to internet I had to switch (by rebooting) to Artix in order to access the LQT site and post.
In my set-up I have to adjust permissions in order to access files in another distro's partition and I messed up badly.
So I reinstalled from slackware64-live-15.0.iso.
And when I first booted I made sure to preserve everything I did, by copy-pasting from the terminal.
Problem then was the file got too large, and in trying to edit it to make it more readable, I came to a point where I was unsure if I had messed up.
So I kept the first lines, which show what I did immediately upon booting and which I am pretty sure were well preserved in spite of having some edited parts at the end. I think I finally tested your suggestions in the 2nd and third blocks of code below:
Code:
arthur@hp8440p:~$ ping -c 3 8.8.8.8
ping: connect: Network is unreachable
arthur@hp8440p:~$ ls -l /etc/rc.d
total 428
drwxr-xr-x 2 root root 4096 Feb 13 2021 init.d
lrwxrwxrwx 1 root root 4 Feb 25 04:43 rc.0 -> rc.6
-rwxr-xr-x 1 root root 1739 Feb 27 21:24 rc.4
-rwxr-xr-x 1 root root 10077 Nov 10 2021 rc.6
-rwxr-xr-x 1 root root 3303 Apr 23 2021 rc.K
-rwxr-xr-x 1 root root 13230 Nov 12 2021 rc.M
-rwxr-xr-x 1 root root 18050 Jan 27 2022 rc.S
-rwxr-xr-x 1 root root 552 Sep 20 2021 rc.acpid
-rw-r--r-- 1 root root 2556 Jun 14 2021 rc.alsa
-rw-r--r-- 1 root root 999 Jun 14 2021 rc.alsa-oss
-rw-r--r-- 1 root root 1009 Oct 6 21:39 rc.atalk
-rwxr-xr-x 1 root root 669 Feb 7 2022 rc.atd
-rw-r--r-- 1 root root 2825 Oct 20 2021 rc.autofs
-rw-r--r-- 1 root root 4045 Nov 7 20:20 rc.bind
-rwxr-xr-x 1 root root 1456 Dec 19 21:33 rc.bluetooth
-rw-r--r-- 1 root root 4917 Aug 2 2021 rc.cgconfig
-rw-r--r-- 1 root root 3347 Aug 2 2021 rc.cgred
-rwxr-xr-x 1 root root 3330 Apr 23 2021 rc.cpufreq
-rwxr-xr-x 1 root root 731 Feb 23 19:14 rc.crond
-rw-r--r-- 1 root root 3295 Sep 20 21:21 rc.cups
-rw-r--r-- 1 root root 3085 May 19 2023 rc.cups-browsed
-rw-r--r-- 1 root root 814 Feb 14 04:10 rc.dnsmasq
-rw-r--r-- 1 root root 554 Dec 7 2021 rc.dovecot
-rwxr-xr-x 1 root root 1579 Mar 3 2021 rc.elogind
-rwxrwxr-x 1 root root 3777 Feb 27 21:23 rc.firewall
-rwxr-xr-x 1 root root 242 Feb 25 06:00 rc.font
-rwxr-xr-x 1 root root 1893 Feb 13 2021 rc.fuse
-rwxr-xr-x 1 root root 1995 Sep 7 2021 rc.fuse3
-rwxr-xr-x 1 root root 462 Feb 25 06:00 rc.gpm
-rwxr-xr-x 1 root root 762 Jan 9 2022 rc.haveged
-rw-r--r-- 1 root root 1001 Oct 19 21:01 rc.httpd
-rw-r--r-- 1 root root 964 Sep 21 2018 rc.icecc-scheduler
-rw-r--r-- 1 root root 901 Sep 21 2018 rc.iceccd
-rw-r--r-- 1 root root 1894 Jan 25 2022 rc.icecream.conf
-rwxr-xr-x 1 root root 29251 Jun 26 2023 rc.inet1
-rw------- 1 root root 10656 Feb 27 21:27 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rw-r--r-- 1 root root 3781 May 19 2013 rc.ip_forward
-rw-r--r-- 1 root root 797 Dec 12 2019 rc.kadmind
-rw-r--r-- 1 root root 857 Dec 12 2019 rc.kpropd
-rw-r--r-- 1 root root 842 Dec 12 2019 rc.krb5kdc
-rwxr-xr-x 1 root root 274 Apr 23 2021 rc.local
-rwxr-xr-x 1 root root 170 Apr 23 2021 rc.loop
-rw-r--r-- 1 root root 1340 Nov 17 2021 rc.lxc
-rwxr-xr-x 1 root root 1950 Dec 10 2021 rc.mcelog
-rwxr-xr-x 1 root root 1864 Feb 13 2021 rc.messagebus
-rwxr-xr-x 1 root root 780 Apr 23 2021 rc.modules
-rwxr-xr-x 1 root root 691 Apr 23 2021 rc.modules.local
-rw-r--r-- 1 root root 2517 Feb 11 20:59 rc.mysqld
-rwxr-xr-x 1 root root 2674 Sep 27 2021 rc.networkmanager
-rw-r--r-- 1 root root 2920 Jun 15 2021 rc.nfsd
-rw-r--r-- 1 root root 752 Nov 21 2021 rc.nss-pam-ldapd
-rw-r--r-- 1 root root 805 Jun 6 2023 rc.ntpd
-rw-r--r-- 1 root root 1526 Jun 6 2021 rc.openldap
-rw-r--r-- 1 root root 3489 Feb 28 2018 rc.openvpn
-rw-r--r-- 1 root root 1722 Mar 16 2007 rc.pcmcia
-rw-r--r-- 1 root root 2373 Feb 14 2023 rc.php-fpm
-rw-r--r-- 1 root root 1616 Jan 22 21:45 rc.postfix
-rw-r--r-- 1 root root 1171 Jan 4 2022 rc.pulseaudio
-rw-r--r-- 1 root root 2295 May 12 2021 rc.rpc
-rw-r--r-- 1 root root 940 Nov 30 22:17 rc.samba
-rw-r--r-- 1 root root 1167 Feb 24 2022 rc.saslauthd
-rw-r--r-- 1 root root 2895 Oct 17 20:36 rc.serial
-rwxr-xr-x 1 root root 483 Jan 8 2019 rc.setterm
-rw-r--r-- 1 root root 977 Mar 1 2021 rc.smartd
-rw-r--r-- 1 root root 981 Jul 21 2022 rc.snmpd
-rwxr-xr-x 1 root root 1814 Jul 19 2023 rc.sshd
-rwxr-xr-x 1 root root 669 Dec 4 2021 rc.syslog
-rw-r--r-- 1 root root 1253 Nov 9 2022 rc.sysstat
-rwxr-xr-x 1 root root 1656 Apr 23 2021 rc.sysvinit
-rwxr-xr-x 1 root root 7064 Apr 23 2017 rc.udev
-rwxr-xr-x 1 root root 437 Feb 13 2021 rc.ulogd
-rwxr-xr-x 1 root root 13885 Mar 19 2021 rc.wireless
-rw------- 1 root root 7349 Mar 19 2021 rc.wireless.conf
-rw-r--r-- 1 root root 3837 Jan 4 2022 rc.yp
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc0.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc1.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc2.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc3.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc4.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc5.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc6.d
arthur@hp8440p:~$
arthur@hp8440p:~$ /etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1: line 19: /etc/rc.d/rc.inet1.conf: Permission denied
Stopping the network interfaces...
RTNETLINK answers: Operation not permitted
/etc/rc.d/rc.inet1: line 567: /proc/sys/net/ipv6/conf/eth0/autoconf: Permission denied
/etc/rc.d/rc.inet1: line 568: /proc/sys/net/ipv6/conf/eth0/accept_ra: Permission denied
Failed to send flush request: Operation not permitted
RTNETLINK answers: Operation not permitted
/etc/rc.d/rc.inet1: line 580: /proc/sys/net/ipv6/conf/eth0/autoconf: Permission denied
/etc/rc.d/rc.inet1: line 581: /proc/sys/net/ipv6/conf/eth0/accept_ra: Permission denied
/etc/rc.d/rc.inet1: line 582: /proc/sys/net/ipv6/conf/eth0/use_tempaddr: Permission denied
/etc/rc.d/rc.inet1: line 583: /proc/sys/net/ipv6/conf/eth0/addr_gen_mode: Permission denied
/etc/rc.d/rc.inet1: line 584: /proc/sys/net/ipv6/conf/eth0/stable_secret: Permission denied
Failed to send flush request: Operation not permitted
RTNETLINK answers: Operation not permitted
arthur@hp8440p:~$ su
Password:
root@hp8440p:/home/arthur# /etc/rc.d/rc.inet1 stop
Stopping the network interfaces...
root@hp8440p:/home/arthur# chmod -x /etc/rc.d/rc.inet1
root@hp8440p:/home/arthur# ls -l /etc/rc.d
total 428
-rw-r--r-- 1 root root 29251 Jun 26 2023 rc.inet1
-rw------- 1 root root 10656 Feb 27 21:27 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rwxr-xr-x 1 root root 2674 Sep 27 2021 rc.networkmanager
root@hp8440p:/home/arthur# /etc/rc.d/rc.networkmanager start
bash: /etc/rc.d/rc.networkmanager: Permission denied
root@hp8440p:/home/arthur# su
root@hp8440p:/home/arthur# su -l
root@hp8440p:~# /etc/rc.d/rc.networkmanager start
-su: /etc/rc.d/rc.networkmanager: Permission denied
root@hp8440p:~# ls -l /etc/rc.d/
total 428
-rw-r--r-- 1 root root 29251 Jun 26 2023 rc.inet1
-rw------- 1 root root 10656 Feb 27 21:27 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2*
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rw-r--r-- 1 root root 2674 Sep 27 2021 rc.networkmanager
root@hp8440p:~# chmod 774 /etc/rc.d/rc.networkmanager
root@hp8440p:~# ls -l /etc/rc.d/
total 428
-rw-r--r-- 1 root root 29251 Jun 26 2023 rc.inet1
-rw------- 1 root root 10656 Feb 27 21:27 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2*
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rwxrwxr-- 1 root root 2674 Sep 27 2021 rc.networkmanager*
root@hp8440p:~# chmod 771 /etc/rc.d/rc.networkmanager
root@hp8440p:~# ls -l /etc/rc.d/
-rw-r--r-- 1 root root 29251 Jun 26 2023 rc.inet1
-rw------- 1 root root 10656 Feb 27 21:27 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2*
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rwxrwx--x 1 root root 2674 Sep 27 2021 rc.networkmanager*
root@hp8440p:~# /etc/rc.d/rc.networkmanager start
NetworkManager is already running (will not start it twice).
root@hp8440p:~# ping -c 3 8.8.8.8
ping: connect: Network is unreachable
Then I ignored a lot of stuff I tried after this and started from a new terminal and copy pasted everything, so I did not edited out what I thought I should:
Code:
arthur@hp8440p:~$ ls -l /etc/rc.d
total 428
drwxr-xr-x 2 root root 4096 Feb 13 2021 init.d
lrwxrwxrwx 1 root root 4 Feb 25 04:43 rc.0 -> rc.6
-rwxr-xr-x 1 root root 1739 Feb 27 21:24 rc.4
-rwxr-xr-x 1 root root 10077 Nov 10 2021 rc.6
-rwxr-xr-x 1 root root 3303 Apr 23 2021 rc.K
-rwxr-xr-x 1 root root 13230 Nov 12 2021 rc.M
-rwxr-xr-x 1 root root 18050 Jan 27 2022 rc.S
-rwxr-xr-x 1 root root 552 Sep 20 2021 rc.acpid
-rw-r--r-- 1 root root 2556 Jun 14 2021 rc.alsa
-rw-r--r-- 1 root root 999 Jun 14 2021 rc.alsa-oss
-rw-r--r-- 1 root root 1009 Oct 6 21:39 rc.atalk
-rwxr-xr-x 1 root root 669 Feb 7 2022 rc.atd
-rw-r--r-- 1 root root 2825 Oct 20 2021 rc.autofs
-rw-r--r-- 1 root root 4045 Nov 7 20:20 rc.bind
-rwxr-xr-x 1 root root 1456 Dec 19 21:33 rc.bluetooth
-rw-r--r-- 1 root root 4917 Aug 2 2021 rc.cgconfig
-rw-r--r-- 1 root root 3347 Aug 2 2021 rc.cgred
-rwxr-xr-x 1 root root 3330 Apr 23 2021 rc.cpufreq
-rwxr-xr-x 1 root root 731 Feb 23 19:14 rc.crond
-rw-r--r-- 1 root root 3295 Sep 20 21:21 rc.cups
-rw-r--r-- 1 root root 3085 May 19 2023 rc.cups-browsed
-rw-r--r-- 1 root root 814 Feb 14 04:10 rc.dnsmasq
-rw-r--r-- 1 root root 554 Dec 7 2021 rc.dovecot
-rwxr-xr-x 1 root root 1579 Mar 3 2021 rc.elogind
-rwxrwxr-x 1 root root 3777 Feb 27 21:23 rc.firewall
-rwxr-xr-x 1 root root 242 Feb 25 06:00 rc.font
-rwxr-xr-x 1 root root 1893 Feb 13 2021 rc.fuse
-rwxr-xr-x 1 root root 1995 Sep 7 2021 rc.fuse3
-rwxr-xr-x 1 root root 462 Feb 25 06:00 rc.gpm
-rwxr-xr-x 1 root root 762 Jan 9 2022 rc.haveged
-rw-r--r-- 1 root root 1001 Oct 19 21:01 rc.httpd
-rw-r--r-- 1 root root 964 Sep 21 2018 rc.icecc-scheduler
-rw-r--r-- 1 root root 901 Sep 21 2018 rc.iceccd
-rw-r--r-- 1 root root 1894 Jan 25 2022 rc.icecream.conf
-rwxr-xr-x 1 root root 29251 Jun 26 2023 rc.inet1
-rwx--x--x 1 root root 10659 Feb 27 23:31 rc.inet1.conf
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rw-r--r-- 1 root root 3781 May 19 2013 rc.ip_forward
-rw-r--r-- 1 root root 797 Dec 12 2019 rc.kadmind
-rw-r--r-- 1 root root 857 Dec 12 2019 rc.kpropd
-rw-r--r-- 1 root root 842 Dec 12 2019 rc.krb5kdc
-rwxr-xr-x 1 root root 274 Apr 23 2021 rc.local
-rwxr-xr-x 1 root root 170 Apr 23 2021 rc.loop
-rw-r--r-- 1 root root 1340 Nov 17 2021 rc.lxc
-rwxr-xr-x 1 root root 1950 Dec 10 2021 rc.mcelog
-rwxr-xr-x 1 root root 1864 Feb 13 2021 rc.messagebus
-rwxr-xr-x 1 root root 780 Apr 23 2021 rc.modules
-rwxr-xr-x 1 root root 691 Apr 23 2021 rc.modules.local
-rw-r--r-- 1 root root 2517 Feb 11 20:59 rc.mysqld
-rwxrwx--x 1 root root 2674 Sep 27 2021 rc.networkmanager
-rw-r--r-- 1 root root 2920 Jun 15 2021 rc.nfsd
-rw-r--r-- 1 root root 752 Nov 21 2021 rc.nss-pam-ldapd
-rw-r--r-- 1 root root 805 Jun 6 2023 rc.ntpd
-rw-r--r-- 1 root root 1526 Jun 6 2021 rc.openldap
-rw-r--r-- 1 root root 3489 Feb 28 2018 rc.openvpn
-rw-r--r-- 1 root root 1722 Mar 16 2007 rc.pcmcia
-rw-r--r-- 1 root root 2373 Feb 14 2023 rc.php-fpm
-rw-r--r-- 1 root root 1616 Jan 22 21:45 rc.postfix
-rw-r--r-- 1 root root 1171 Jan 4 2022 rc.pulseaudio
-rw-r--r-- 1 root root 2295 May 12 2021 rc.rpc
-rw-r--r-- 1 root root 940 Nov 30 22:17 rc.samba
-rw-r--r-- 1 root root 1167 Feb 24 2022 rc.saslauthd
-rw-r--r-- 1 root root 2895 Oct 17 20:36 rc.serial
-rwxr-xr-x 1 root root 483 Jan 8 2019 rc.setterm
-rw-r--r-- 1 root root 977 Mar 1 2021 rc.smartd
-rw-r--r-- 1 root root 981 Jul 21 2022 rc.snmpd
-rwxr-xr-x 1 root root 1814 Jul 19 2023 rc.sshd
-rwxr-xr-x 1 root root 669 Dec 4 2021 rc.syslog
-rw-r--r-- 1 root root 1253 Nov 9 2022 rc.sysstat
-rwxr-xr-x 1 root root 1656 Apr 23 2021 rc.sysvinit
-rwxr-xr-x 1 root root 7064 Apr 23 2017 rc.udev
-rwxr-xr-x 1 root root 437 Feb 13 2021 rc.ulogd
-rwxr-xr-x 1 root root 13885 Mar 19 2021 rc.wireless
-rw------- 1 root root 7349 Mar 19 2021 rc.wireless.conf
-rw-r--r-- 1 root root 3837 Jan 4 2022 rc.yp
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc0.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc1.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc2.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc3.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc4.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc5.d
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc6.d
arthur@hp8440p:~$ su -l
Password:
su: Authentication failure
arthur@hp8440p:~$ su -l
Password:
It's getting uncommonly easy to kill people in large numbers, and the
first thing a principle does -- if it really is a principle -- is to
kill somebody.
-- Dorothy Sayers
root@hp8440p:~# chmod -x /etc/rc.d/rc.networkmanager
root@hp8440p:~# /etc/rc.d/rc.networkmanager stop
-su: /etc/rc.d/rc.networkmanager: Permission denied
root@hp8440p:~# chmod +x /etc/rc.d/rc.networkmanager
root@hp8440p:~# /etc/rc.d/rc.networkmanager stop
Stopping NetworkManager: stopped
root@hp8440p:~# chmod -x /etc/rc.d/rc.networkmanager
root@hp8440p:~# chmod -x /etc/rc.d/rc.inet1 stop
chmod: cannot access 'stop': No such file or directory
root@hp8440p:~# /etc/rc.d/rc.inet1 stop
-su: /etc/rc.d/rc.inet1: Permission denied
root@hp8440p:~# chmod +x /etc/rc.d/rc.inet1
root@hp8440p:~# /etc/rc.d/rc.inet1 stop
Stopping the network interfaces...
root@hp8440p:~# nano -w /etc/rc.d/rc.inet1.conf
root@hp8440p:~# /etc/rc.d/rc.inet1 start
Starting the network interfaces...
eth0: polling for DHCP server
dhcpcd-9.4.1 starting
DUID 00:04:2f:df:7d:94:06:4c:11:e0:9d:d8:4d:02:1e:0d:f0:c1
eth0: waiting for carrier
eth0: carrier acquired
eth0: IAID 99:ec:48:f9
eth0: soliciting a DHCP lease
eth0: probing for an IPv4LL address
eth0: using IPv4LL address 169.254.167.136
eth0: adding route to 169.254.0.0/16
eth0: adding default route
forked to background, child pid 2622
root@hp8440p:~#
And again from another new terminal, tried something else and copy-pasted everything
Code:
arthur@hp8440p:~$ /etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1: line 19: /etc/rc.d/rc.inet1.conf: Permission denied
Stopping the network interfaces...
RTNETLINK answers: Operation not permitted
/etc/rc.d/rc.inet1: line 567: /proc/sys/net/ipv6/conf/eth0/autoconf: Permission denied
/etc/rc.d/rc.inet1: line 568: /proc/sys/net/ipv6/conf/eth0/accept_ra: Permission denied
Failed to send flush request: Operation not permitted
RTNETLINK answers: Operation not permitted
/etc/rc.d/rc.inet1: line 580: /proc/sys/net/ipv6/conf/eth0/autoconf: Permission denied
/etc/rc.d/rc.inet1: line 581: /proc/sys/net/ipv6/conf/eth0/accept_ra: Permission denied
/etc/rc.d/rc.inet1: line 582: /proc/sys/net/ipv6/conf/eth0/use_tempaddr: Permission denied
/etc/rc.d/rc.inet1: line 583: /proc/sys/net/ipv6/conf/eth0/addr_gen_mode: Permission denied
/etc/rc.d/rc.inet1: line 584: /proc/sys/net/ipv6/conf/eth0/stable_secret: Permission denied
Failed to send flush request: Operation not permitted
RTNETLINK answers: Operation not permitted
arthur@hp8440p:~$ su -l
Password:
Q: How many Martians does it take to screw in a lightbulb?
A: One and a half.
root@hp8440p:~# /etc/rc.d/rc.inet1 stop
Stopping the network interfaces...
root@hp8440p:~# chmod -x /etc/rc.d/rc.inet1
root@hp8440p:~# chmod +x /etc/rc.d/rc.networkmanager
root@hp8440p:~# ls -l /etc/rc.d/
total 428
drwxr-xr-x 2 root root 4096 Feb 13 2021 init.d/
lrwxrwxrwx 1 root root 4 Feb 25 04:43 rc.0 -> rc.6*
-rwxr-xr-x 1 root root 1739 Feb 27 21:24 rc.4*
-rwxr-xr-x 1 root root 10077 Nov 10 2021 rc.6*
-rwxr-xr-x 1 root root 3303 Apr 23 2021 rc.K*
-rwxr-xr-x 1 root root 13230 Nov 12 2021 rc.M*
-rwxr-xr-x 1 root root 18050 Jan 27 2022 rc.S*
-rwxr-xr-x 1 root root 552 Sep 20 2021 rc.acpid*
-rw-r--r-- 1 root root 2556 Jun 14 2021 rc.alsa
-rw-r--r-- 1 root root 999 Jun 14 2021 rc.alsa-oss
-rw-r--r-- 1 root root 1009 Oct 6 21:39 rc.atalk
-rwxr-xr-x 1 root root 669 Feb 7 2022 rc.atd*
-rw-r--r-- 1 root root 2825 Oct 20 2021 rc.autofs
-rw-r--r-- 1 root root 4045 Nov 7 20:20 rc.bind
-rwxr-xr-x 1 root root 1456 Dec 19 21:33 rc.bluetooth*
-rw-r--r-- 1 root root 4917 Aug 2 2021 rc.cgconfig
-rw-r--r-- 1 root root 3347 Aug 2 2021 rc.cgred
-rwxr-xr-x 1 root root 3330 Apr 23 2021 rc.cpufreq*
-rwxr-xr-x 1 root root 731 Feb 23 19:14 rc.crond*
-rw-r--r-- 1 root root 3295 Sep 20 21:21 rc.cups
-rw-r--r-- 1 root root 3085 May 19 2023 rc.cups-browsed
-rw-r--r-- 1 root root 814 Feb 14 04:10 rc.dnsmasq
-rw-r--r-- 1 root root 554 Dec 7 2021 rc.dovecot
-rwxr-xr-x 1 root root 1579 Mar 3 2021 rc.elogind*
-rwxrwxr-x 1 root root 3777 Feb 27 21:23 rc.firewall*
-rwxr-xr-x 1 root root 242 Feb 25 06:00 rc.font*
-rwxr-xr-x 1 root root 1893 Feb 13 2021 rc.fuse*
-rwxr-xr-x 1 root root 1995 Sep 7 2021 rc.fuse3*
-rwxr-xr-x 1 root root 462 Feb 25 06:00 rc.gpm*
-rwxr-xr-x 1 root root 762 Jan 9 2022 rc.haveged*
-rw-r--r-- 1 root root 1001 Oct 19 21:01 rc.httpd
-rw-r--r-- 1 root root 964 Sep 21 2018 rc.icecc-scheduler
-rw-r--r-- 1 root root 901 Sep 21 2018 rc.iceccd
-rw-r--r-- 1 root root 1894 Jan 25 2022 rc.icecream.conf
-rw-r--r-- 1 root root 29251 Jun 26 2023 rc.inet1
-rwx--x--x 1 root root 10659 Feb 27 23:31 rc.inet1.conf*
-rwxr-xr-x 1 root root 5340 Oct 13 2019 rc.inet2*
-rw-r--r-- 1 root root 497 Feb 13 2021 rc.inetd
-rw-r--r-- 1 root root 3781 May 19 2013 rc.ip_forward
-rw-r--r-- 1 root root 797 Dec 12 2019 rc.kadmind
-rw-r--r-- 1 root root 857 Dec 12 2019 rc.kpropd
-rw-r--r-- 1 root root 842 Dec 12 2019 rc.krb5kdc
-rwxr-xr-x 1 root root 274 Apr 23 2021 rc.local*
-rwxr-xr-x 1 root root 170 Apr 23 2021 rc.loop*
-rw-r--r-- 1 root root 1340 Nov 17 2021 rc.lxc
-rwxr-xr-x 1 root root 1950 Dec 10 2021 rc.mcelog*
-rwxr-xr-x 1 root root 1864 Feb 13 2021 rc.messagebus*
-rwxr-xr-x 1 root root 780 Apr 23 2021 rc.modules*
-rwxr-xr-x 1 root root 691 Apr 23 2021 rc.modules.local*
-rw-r--r-- 1 root root 2517 Feb 11 20:59 rc.mysqld
-rwxrwx--x 1 root root 2674 Sep 27 2021 rc.networkmanager*
-rw-r--r-- 1 root root 2920 Jun 15 2021 rc.nfsd
-rw-r--r-- 1 root root 752 Nov 21 2021 rc.nss-pam-ldapd
-rw-r--r-- 1 root root 805 Jun 6 2023 rc.ntpd
-rw-r--r-- 1 root root 1526 Jun 6 2021 rc.openldap
-rw-r--r-- 1 root root 3489 Feb 28 2018 rc.openvpn
-rw-r--r-- 1 root root 1722 Mar 16 2007 rc.pcmcia
-rw-r--r-- 1 root root 2373 Feb 14 2023 rc.php-fpm
-rw-r--r-- 1 root root 1616 Jan 22 21:45 rc.postfix
-rw-r--r-- 1 root root 1171 Jan 4 2022 rc.pulseaudio
-rw-r--r-- 1 root root 2295 May 12 2021 rc.rpc
-rw-r--r-- 1 root root 940 Nov 30 22:17 rc.samba
-rw-r--r-- 1 root root 1167 Feb 24 2022 rc.saslauthd
-rw-r--r-- 1 root root 2895 Oct 17 20:36 rc.serial
-rwxr-xr-x 1 root root 483 Jan 8 2019 rc.setterm*
-rw-r--r-- 1 root root 977 Mar 1 2021 rc.smartd
-rw-r--r-- 1 root root 981 Jul 21 2022 rc.snmpd
-rwxr-xr-x 1 root root 1814 Jul 19 2023 rc.sshd*
-rwxr-xr-x 1 root root 669 Dec 4 2021 rc.syslog*
-rw-r--r-- 1 root root 1253 Nov 9 2022 rc.sysstat
-rwxr-xr-x 1 root root 1656 Apr 23 2021 rc.sysvinit*
-rwxr-xr-x 1 root root 7064 Apr 23 2017 rc.udev*
-rwxr-xr-x 1 root root 437 Feb 13 2021 rc.ulogd*
-rwxr-xr-x 1 root root 13885 Mar 19 2021 rc.wireless*
-rw------- 1 root root 7349 Mar 19 2021 rc.wireless.conf
-rw-r--r-- 1 root root 3837 Jan 4 2022 rc.yp
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc0.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc1.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc2.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc3.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc4.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc5.d/
drwxr-xr-x 2 root root 4096 Feb 13 2021 rc6.d/
root@hp8440p:~# /etc/rc.d/rc.networkmanager start
Starting NetworkManager daemon: /usr/sbin/NetworkManager
root@hp8440p:~# ping -c 3 8.8.8.8
ping: connect: Network is unreachable
root@hp8440p:~# nmtui
root@hp8440p:~# ping -c 3 8.8.8.8
ping: connect: Network is unreachable
root@hp8440p:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 68:b5:99:ec:48:f9 brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether be:12:01:57:8f:d3 brd ff:ff:ff:ff:ff:ff permaddr 58:94:6b:1c:d2:ac
root@hp8440p:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 2001:9b1:10d:39::4:2c34 prefixlen 128 scopeid 0x0<global>
inet6 fe80::909:5e63:c436:6ba0 prefixlen 64 scopeid 0x20<link>
ether 68:b5:99:ec:48:f9 txqueuelen 1000 (Ethernet)
RX packets 50 bytes 3890 (3.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 80 bytes 15503 (15.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xd4700000-d4720000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 20 bytes 1200 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20 bytes 1200 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether be:12:01:57:8f:d3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The solution, for the eventual benefit of other newbies was, following the advice of @henca, in post #10,reached in the following way:
I first pinged what I was assuming was my gateway, which had been 192.168.0.1 for 15 years in all my machines and their multi distros.
It probably changed when the internet provider changed some hardware (but not the router which I connect my computers to) in their installation in my apartment.
When I realized I could not ping what should be my gateway I looked at connman which is the networkmanager for Artix, which had been able to reach the internet all the , but the gateway box there was empty, to my surprise. Something I still have not understood as I was using the internet from that installation.
I then looked at another Artix in another machine and tried the gateway I found at connman there (??????)), and VOILA'!!!!
THIS IS SOLVED !
Thanks you all for great support !!!!!!!!!!!!!!!!!!
P.S>:
just to try to make it clear for other newbies that may come to the same situation:
After I got the gateway address I started by making sure that NetworkManager was not running:
Which in case of need might have been obtained by :
Code:
chmod +x /etc/rc.d/rc.inet1
I finally set:
Code:
# IPv4 config options for eth0:
IPADDRS[0]="xxx.xxx.xxx.xxx"
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 default gateway IP address:
GATEWAY="yyy.yyy.yyy.yyy"
in /etc/rc.d/rc.inet1.conf, where my real IP-address and my reaL gateway address stood for XXX.XXX.XXX.XXX and yyy.yyy.yyy.yyy.
After that, just
Code:
/etc/rc.d/rc.inet1 start
and I had access to internet.
Veterans please point out my mistakes, for the benefit of my fellow newbies, this has been just an attempt to save them from the zillions mistakes I had to make the last few days.
Last edited by fredmyra; 02-27-2024 at 08:38 PM.
Reason: reformulate sentence
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.