Skip to content

Commit

Permalink
networking/home: add static ARP for p-3400
Browse files Browse the repository at this point in the history
  • Loading branch information
lopsided98 committed Dec 3, 2024
1 parent f02b03a commit e03934d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/local/networking/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ in {
UseDNS = false;
};
ipv6AcceptRAConfig.UseDNS = false;

# p-3400 suspends when not in use, so it can't respond to ARP
# requests. Add a static ARP table entry to allow other devices to
# send packets to it and wake it up.
extraConfig = ''
[Neighbor]
Address=${net.cidr.host 4 cfg.ipv4Subnet}
LinkLayerAddress=44:8a:5b:ce:23:c6
[Neighbor]
Address=${net.cidr.host "::468a:5bff:fece:23c6" cfg.ipv6SlaacPrefix}
LinkLayerAddress=44:8a:5b:ce:23:c6
'';
}
(if interfaceCfg.ipv4Address == null then {
DHCP = if interfaceCfg.ipv6DelegatedPrefix == null then "ipv4" else "yes";
Expand Down

0 comments on commit e03934d

Please sign in to comment.