!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

889 Members
Declaratively manage your switching, routing, wireless, tunneling and more.260 Servers

Load older messages


SenderMessageTime
13 Jun 2021
@joerg:bethselamin.deMic92I just saw that there discussions to remove bpfilter again.09:28:45
@keithy:matrix.orgkeithyon reboot network-setup is failing with Error: Nexthop has invalid gateway. any ideas?13:54:00
@hexa:lossy.networkhexaRedacted or Malformed Event13:56:09
@hexa:lossy.networkhexamany ideas13:57:01
@hexa:lossy.networkhexanexthop (gateway) address could be on a) network or b) broadcast address13:57:17
@hexa:lossy.networkhexait could be outside of the L3 domain13:57:47
@hexa:lossy.networkhexaand you always need L2 access to use a gateway13:57:57
@hexa:lossy.networkhexanot sure who throws that error13:58:03
@kritnich:kritni.chKritnich joined the room.13:59:34
@keithy:matrix.orgkeithyhow do I find out what it thinks is configured as the gateway?14:05:56
@keithy:matrix.orgkeithy$ 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 20214:06:35
@joerg:bethselamin.deMic92 keithy: 10.11.12.1 is your default gateway 14:10:50
@keithy:matrix.orgkeithyas expected14:11:21
@joerg:bethselamin.deMic92your ip address is 10.11.12.2 and the subnet directly attached to your network interface is 10.11.12.0/2414:11:58
@keithy:matrix.orgkeithyanything wrong with that so far?14:12:33
@keithy:matrix.orgkeithynetwork-setup works when I start it manually post reboot14:13:30
@joerg:bethselamin.deMic92no, what is in your network-setup?14:17:33
@joerg:bethselamin.deMic92systemctl cat network-setup.service14:17:34
@joerg:bethselamin.deMic92and cat the ExecStart script in it.14:17:42
@joerg:bethselamin.deMic92 cc keithy 14:17:56
@keithy:matrix.orgkeithynameserver 10.11.12.2 nameserver 10.11.12.3 nameserver 127.0.0.114:19:43
@keithy:matrix.orgkeithyip route replace default via "10.11.12.1" proto static14:19:49
@joerg:bethselamin.deMic92 keithy: it contains literally your nameserver lines? 14:23:09
@joerg:bethselamin.deMic92Do you get the network per dhcp?14:23:15
@keithy:matrix.orgkeithyyes14:23:29
@joerg:bethselamin.deMic92Ok. here is what happens...14:23:37
@joerg:bethselamin.deMic92network-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:matrix.orgkeithyk14:25:23
@joerg:bethselamin.deMic92So 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:matrix.orgkeithynetworking.defaultGateway = "10.11.12.1";14:26:54

There are no newer messages yet.


Back to Room ListRoom Version: 6