memorable net device names for gl-ar750

linux's view of eth1 and eth0 are opposite to that of u-boot
This commit is contained in:
Daniel Barlow 2024-05-08 23:59:35 +01:00
parent c0ef6ce282
commit e64390460a
1 changed files with 8 additions and 2 deletions

View File

@ -125,8 +125,14 @@
networkInterfaces =
let inherit (config.system.service.network) link;
in {
lan = link.build { ifname = "eth0"; };
wan = link.build { ifname = "eth1"; };
lan = link.build {
ifname = "lan";
devpath = "/devices/platform/ahb/19000000.eth";
};
wan = link.build {
ifname = "wan";
devpath = "/devices/platform/ahb/1a000000.eth";
};
wlan = link.build {
ifname = "wlan0";
dependencies = [ mac80211 ];