enable DHCP protocol for eno2

This commit is contained in:
ulic-youthlic 2025-03-06 04:47:50 +08:00
parent 4140cf24f1
commit 1c858b10bd

View file

@ -5,25 +5,25 @@
wait-online.enable = false;
networks = {
"eno2" = {
dns = [
"192.168.31.1"
];
address = [
"192.168.31.25/24"
];
gateway = [
"192.168.31.1"
];
routes = [
{
Gateway = "192.168.31.1";
}
];
# dns = [
# "192.168.31.1"
# ];
# address = [
# "192.168.31.25/24"
# ];
# gateway = [
# "192.168.31.1"
# ];
# routes = [
# {
# Gateway = "192.168.31.1";
# }
# ];
matchConfig.Name = "eno2";
# networkConfig = {
# DHCP = "no";
# IPv6AcceptRA = true;
# };
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
};
};
};