tadpole: Bind stastic ip
This commit is contained in:
@@ -3,4 +3,22 @@
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "tadpole";
|
hostName = "tadpole";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.network.networks."10-wan" = {
|
||||||
|
networkConfig.DHCP = "no";
|
||||||
|
address = [ "65.21.106.222/32" ];
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
routeConfig = {
|
||||||
|
Destination = "172.31.1.1";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
routeConfig = {
|
||||||
|
Gateway = "172.31.1.1";
|
||||||
|
GatewayOnLink = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user