void-mklive icon indicating copy to clipboard operation
void-mklive copied to clipboard

void-installer static network problem?

Open dazoe opened this issue 5 years ago • 2 comments
trafficstars

when using void-installer and using static network setting it seems like the gateway doesn't get set properly. I traced it down to this line in the installer https://github.com/void-linux/void-mklive/blob/95e305c4611705838d35773ac6404caa80b40400/installer.sh.in#L927 shouldn't that be ip route add default via $gw

dazoe avatar Jul 20 '20 08:07 dazoe

Technically it can be either. In the case that is shown in the file, it is instructing the kernel to spew packets from that interface. It is assumed that the layer 2 network will know what to do with them. In some cases, this is not the right thing to do, and I suspect you may have found one of these cases.

the-maldridge avatar Jul 20 '20 08:07 the-maldridge

the command ip route add <address> dev <device> will instruct the kernel to send packets addressed to <address> down the <device> dev. it is very different from the command ip add default via <address> which tells the kernel to send packets to <address> when it cant find a matching route.

dazoe avatar Aug 09 '20 13:08 dazoe