forked from nyanloutre/nixos-config
configuration FTTH bouyges
This commit is contained in:
parent
414be4c06a
commit
ef0a6f3cc9
@ -49,15 +49,22 @@ in
|
|||||||
hostName = "loutreos"; # Define your hostname.
|
hostName = "loutreos"; # Define your hostname.
|
||||||
hostId = "7e66e347";
|
hostId = "7e66e347";
|
||||||
|
|
||||||
|
dhcpcd.extraConfig = ''
|
||||||
|
interface "bouyges" {
|
||||||
|
send vendor-class-identifier "BYGTELIAD";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
vlans.bouyges = {
|
vlans.bouyges = {
|
||||||
id = 100;
|
id = 100;
|
||||||
interface = "eno1";
|
interface = "eno1";
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
|
eno1.useDHCP = false;
|
||||||
bouyges = {
|
bouyges = {
|
||||||
# Adresse MAC BBox ? https://lafibre.info/remplacer-bbox/informations-de-connexion-ftth/msg598303/#msg598303
|
# Adresse MAC BBox ? https://lafibre.info/remplacer-bbox/informations-de-connexion-ftth/msg598303/#msg598303
|
||||||
macAddress = "00:11:22:33:44:55";
|
macAddress = "E8:AD:A6:21:73:68";
|
||||||
};
|
};
|
||||||
eno2 = {
|
eno2 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
@ -69,8 +76,7 @@ in
|
|||||||
# NAT bouyges <-> eno2
|
# NAT bouyges <-> eno2
|
||||||
nat = {
|
nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# À remplacer par bouyges
|
externalInterface = "bouyges";
|
||||||
externalInterface = "eno3";
|
|
||||||
# Permet d'utiliser le SNAT plus rapide au lieu de MASQUERADE
|
# Permet d'utiliser le SNAT plus rapide au lieu de MASQUERADE
|
||||||
# externalIP = "0.0.0.0";
|
# externalIP = "0.0.0.0";
|
||||||
internalIPs = [ "10.30.0.0/16" ];
|
internalIPs = [ "10.30.0.0/16" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user