1
0
vcp-bula-nixfiles/hosts/router/101-net-uplink-a.nix
2022-07-15 01:16:51 +02:00

35 lines
628 B
Nix

{ config, pkgs, ...}:
{
networking.vlans."net-uplink-a" = {
id = 101;
interface = "ens18";
};
networking.vlans."net-uplink-a.7" = {
id = 7;
interface = "net-uplink-a";
};
services.pppd = {
peers.uplink-a = {
config = ''
plugin rp-pppoe.so net-uplink-a.7
user "002742928961551138009163#0001@t-online.de"
ifname ppp-uplink-a
persist
maxfail 0
holdoff 5
noipdefault
lcp-echo-interval 20
lcp-echo-failure 3
mtu 1492
hide-password
nodefaultroute
+ipv6
debug
'';
};
};
}