Remove unnecessary ipvlan experiment
This commit is contained in:
parent
880fe6a7a1
commit
7140f464af
|
@ -11,6 +11,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable forwarding for containers
|
# Enable forwarding for containers
|
||||||
|
# I have not yet confirmed that this is necessary.
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv6.conf.all.forwarding" = 1;
|
"net.ipv6.conf.all.forwarding" = 1;
|
||||||
};
|
};
|
||||||
|
@ -280,15 +281,6 @@
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
systemd.network.netdevs."00-container-ipvlan" = {
|
|
||||||
netdevConfig = {
|
|
||||||
Name = "podipvlan";
|
|
||||||
Kind = "ipvlan";
|
|
||||||
};
|
|
||||||
ipvlanConfig = {
|
|
||||||
Mode = "L2";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
systemd.network.networks."10-wan" = {
|
systemd.network.networks."10-wan" = {
|
||||||
matchConfig.Name = "enp2s0";
|
matchConfig.Name = "enp2s0";
|
||||||
dhcpV6Config = {
|
dhcpV6Config = {
|
||||||
|
@ -317,24 +309,8 @@
|
||||||
# make routing on this interface a dependency for network-online.target
|
# make routing on this interface a dependency for network-online.target
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
};
|
};
|
||||||
systemd.network.networks."20-container-ipvlan" = {
|
|
||||||
matchConfig = {
|
|
||||||
Name = "podipvlan";
|
|
||||||
Type = "ipvlan";
|
|
||||||
};
|
|
||||||
dhcpPrefixDelegationConfig = {
|
|
||||||
SubnetId=1;
|
|
||||||
};
|
|
||||||
dhcpV6Config = {
|
|
||||||
DUIDType="uuid";
|
|
||||||
};
|
|
||||||
networkConfig = {
|
|
||||||
IPv6DuplicateAddressDetection=1;
|
|
||||||
LinkLocalAddressing="ipv6";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
# Useful for debugging systemd networkd
|
||||||
systemd.services.systemd-networkd.environment.SYSTEMD_LOG_LEVEL = "debug";
|
systemd.services.systemd-networkd.environment.SYSTEMD_LOG_LEVEL = "debug";
|
||||||
|
|
||||||
systemd.services.scan-uploader = {
|
systemd.services.scan-uploader = {
|
||||||
|
|
Loading…
Reference in New Issue