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