configuration FTTH bouyges

This commit is contained in:
nyanloutre 2019-04-27 10:36:01 +02:00
parent 414be4c06a
commit ef0a6f3cc9
1 changed files with 9 additions and 3 deletions

View File

@ -49,15 +49,22 @@ in
hostName = "loutreos"; # Define your hostname.
hostId = "7e66e347";
dhcpcd.extraConfig = ''
interface "bouyges" {
send vendor-class-identifier "BYGTELIAD";
}
'';
vlans.bouyges = {
id = 100;
interface = "eno1";
};
interfaces = {
eno1.useDHCP = false;
bouyges = {
# 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 = {
ipv4.addresses = [
@ -69,8 +76,7 @@ in
# NAT bouyges <-> eno2
nat = {
enable = true;
# À remplacer par bouyges
externalInterface = "eno3";
externalInterface = "bouyges";
# Permet d'utiliser le SNAT plus rapide au lieu de MASQUERADE
# externalIP = "0.0.0.0";
internalIPs = [ "10.30.0.0/16" ];