Skip to content

Commit

Permalink
deployed network config
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Jan 5, 2024
1 parent d52c719 commit 191b9e4
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions hosts/mno001/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in
enable = true;

netdevs."10-${bond_device_name}" = {
netDevConfig = {
netdevConfig = {
Name = "${bond_device_name}";
Kind = "bond";
};
Expand All @@ -40,30 +40,39 @@ in
};
};

#netdevs."20-${bond_device_name}-vlan" = {
# netDevConfig = {
# Name = "${bond_device_name}-vlan";
# Kind = "vlan";
# };
# vlanConfig = {
# Id = 100;
# };
#};
netdevs."20-uplink" = {
netdevConfig = {
Name = "uplink";
Kind = "vlan";
};
vlanConfig = {
Id = 100;
};
};

networks."10-${bond_device_name}" = {
matchConfig.Name = "${bond_device_name}";

vlan = [ "uplink" ];

networkConfig = {
DHCP = "no";
};
};

networks."10-uplink" = {
matchConfig.Name = "uplink";

address = [ "212.111.245.178/29" ];
routes = [
{
routeConfig.Gateway = "212.111.245.177";
routeConfig.Gateway = "212.111.245.176";
}
];

vlan = [ 100 ];
vlan = [ "uplink" ];

networkConfig = {
BindCarrier = [ "${first_device_name}" "${second_device_name}" ];
DHCP = "no";
};
};
Expand All @@ -81,7 +90,6 @@ in
Bond = "${bond_device_name}"; # Enslaving to bond
};
};

};

# enabling and configuring firewall
Expand Down

0 comments on commit 191b9e4

Please sign in to comment.