Additional bridge/interface config.
This commit is contained in:
parent
1623920a7b
commit
2af9407818
1 changed files with 18 additions and 0 deletions
|
@ -46,6 +46,24 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
interfaces = {
|
||||||
|
"wan" = {
|
||||||
|
useDHCP = true;
|
||||||
|
tempAddresses = "disabled";
|
||||||
|
};
|
||||||
|
"lan" = {
|
||||||
|
ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "192.168.0.1";
|
||||||
|
prefixLength = 16;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
useDHCP = false;
|
||||||
|
# macAddress = "AA:BB:CC:DD:EE:FF";
|
||||||
|
# ^ This is the MAC address of the bridge. It's important to set this
|
||||||
|
# so that the bridge has a predictable MAC address.
|
||||||
|
};
|
||||||
|
};
|
||||||
nat = {
|
nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
externalInterface = "wan";
|
externalInterface = "wan";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue