| 13 Jun 2021 |
Mic92 | I just saw that there discussions to remove bpfilter again. | 09:28:45 |
keithy | on reboot network-setup is failing with Error: Nexthop has invalid gateway. any ideas? | 13:54:00 |
hexa | Redacted or Malformed Event | 13:56:09 |
hexa | many ideas | 13:57:01 |
hexa | nexthop (gateway) address could be on a) network or b) broadcast address | 13:57:17 |
hexa | it could be outside of the L3 domain | 13:57:47 |
hexa | and you always need L2 access to use a gateway | 13:57:57 |
hexa | not sure who throws that error | 13:58:03 |
| Kritnich joined the room. | 13:59:34 |
keithy | how do I find out what it thinks is configured as the gateway? | 14:05:56 |
keithy | $ ip route
default via 10.11.12.1 dev enp0s10 src 10.11.12.2 metric 202
10.11.12.0/24 dev enp0s10 scope link src 10.11.12.2 metric 202 | 14:06:35 |
Mic92 | keithy: 10.11.12.1 is your default gateway | 14:10:50 |
keithy | as expected | 14:11:21 |
Mic92 | your ip address is 10.11.12.2 and the subnet directly attached to your network interface is 10.11.12.0/24 | 14:11:58 |
keithy | anything wrong with that so far? | 14:12:33 |
keithy | network-setup works when I start it manually post reboot | 14:13:30 |
Mic92 | no, what is in your network-setup? | 14:17:33 |
Mic92 | systemctl cat network-setup.service | 14:17:34 |
Mic92 | and cat the ExecStart script in it. | 14:17:42 |
Mic92 | cc keithy | 14:17:56 |
keithy | nameserver 10.11.12.2
nameserver 10.11.12.3
nameserver 127.0.0.1 | 14:19:43 |
keithy | ip route replace default via "10.11.12.1" proto static | 14:19:49 |
Mic92 | keithy: it contains literally your nameserver lines? | 14:23:09 |
Mic92 | Do you get the network per dhcp? | 14:23:15 |
keithy | yes | 14:23:29 |
Mic92 | Ok. here is what happens... | 14:23:37 |
Mic92 | network-setup.service runs and fails to set the default gateway because 10.11.12.0/24 has been not yet assigned yet to enp0s10. Than your dhcp daemon gets a lease sets up your network + ip address and maybe also the default gateway. Than if you run network-setup.service manually the second time, it succeeds. | 14:25:03 |
keithy | k | 14:25:23 |
Mic92 | So have a look where you set the default gateway in your config and remove it. I don't think it is necessary. It is very likely that your dhcp server is already pushing this information. | 14:25:54 |
keithy | networking.defaultGateway = "10.11.12.1"; | 14:26:54 |