Physical Interface
This example configures an existing physical interface link: - rename it to outside - add an ipv4 address - set the link state to up
{
networking.ifstate = {
enable = true;
settings = {
interfaces.outside = {
addresses = [
"2001:db8:dead:c0de::10/64"
"192.0.2.10/24"
];
link = {
state = "up";
kind = "physical";
};
identify.perm_address = "8c:16:45:dc:b1:ad";
};
routing.routes = [
{
to = "0.0.0.0/0";
via = "192.0.2.1";
}
{
to = "::/0";
via = "fe80::defa";
dev = "outside";
}
];
};
};
}