Thanks for thorough reply.
1. I am talking about basic network connection. I have an ip, so I can
ping local machines, including the gateway router itself.
'ip a' shows the following
1: lo: 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: enp27s0: mtu 1500
qdisc pfifo_fast state UP group default qlen 1000 link/ether
30:9c:23:b7:48:8c brd ff:ff:ff:ff:ff:ff inet 192.168.1.6/24 brd
192.168.1.255 scope global noprefixroute enp27s0 valid_lft forever
preferred_lft forever inet6 fe80::329c:23ff:feb7:488c/64 scope link
valid_lft forever preferred_lft forever
What is probably my problem is the noprefixroute?
'cat /etc/network/interfaces.d/*' shows
source /etc/network/interfaces.d/* # The loopback network interface auto
lo iface lo inet loopback #allow-hotplug eth0 #iface eth0 inet dhcp
#added these lines for network #auto enp27s0 #iface enp27s0 inet static
# address 192.168.1.6 #static ip i want # netmask 255.255.255.0 #netmask
# gateway 192.168.1.1 #my router # dns-nameservers 192.168.1.8 #my dns
server
I have commented out all the enps27s0 so that the NetworkManager can
handle it. When, I uncomment them
the results are the same, no gateway.
I can manually add the route 'sudo ip route add default via 192.168.1.1'
and this will add it (just like I have done
in the network manager UI, but in both cases, i reboot without a gateway.
thanks in advance..
On 24/01/2025 13:03, Eike Lantzsch ZP5CGE / KY4PZ wrote:
Hi Thomas,
On Friday, 24 January 2025 08:35:44 GMT-4 Thomas Anderson wrote:
Hello,
I am using Debian 11, and no matter what I do, I repeated on each
reboot, I will boot into a system with no gateway set (or rather, the
"default route is 0.0.0.0," which naturally gives this device no
internet connectivity.
Are you talking about connecting to an internal network or are you
talking about connecting to your ISP's network?
If connecting to an internal network, do you have control over this
network?
I am using the NetworkManager, and have a static IP set.
So you configured a static ip (4?) and did you also configure the netmask
and gateway statically?
Or are you expecting your host network (local or your ISP?) to send the
appropiate gateway to your client?
If I turn off the network, and restart it, then it will set the
Gateway properly.
All other settings persist through reboot, except for the gateway.
I have not found an error messages, and as mentioned, if it restart
the networking, it works. Just on reboot, it does not set the gateway
properly.
If you are talking about connecting your client to your ISP, did it ever
work as you expected? Did it stop working? After which changes did you
make on your side?
Your ISP or your local network might grant you a fixed IP address but
they still might supply the address and the gateway via DHCP. In that
case their DHCP database contains an association between the MAC address
of your client hardware and the fixed IP which they send to you together
with netmask and gateway.
Did your MAC address change by any chance? E.g. change of hardware?
thanks in advance.
TA
Have a nice day
--
Eike Lantzsch KY4PZ / ZP5CGE