meow
This commit is contained in:
parent
ce880f8195
commit
dee4fdfc60
1 changed files with 11 additions and 11 deletions
|
|
@ -28,20 +28,20 @@
|
||||||
# 192.168.42.5/24
|
# 192.168.42.5/24
|
||||||
# gw 192.168.42.1
|
# gw 192.168.42.1
|
||||||
|
|
||||||
# Configuration for the first interface (e.g., enp1s0)
|
# Static IP for eno2np1
|
||||||
systemd.network.networks."10-lan" = {
|
systemd.network.networks."eno2np1" = {
|
||||||
matchConfig.Name = "enp1s0"; # Adjust to your first network interface name
|
|
||||||
networkConfig = {
|
|
||||||
Address = "192.168.42.5/24";
|
|
||||||
Gateway = "192.168.42.1"; # Optional: Set a gateway if needed
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.network.networks."20-eno2np1" = {
|
|
||||||
matchConfig.Name = "eno2np1";
|
matchConfig.Name = "eno2np1";
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
Address = "192.168.42.144/24";
|
Address = "192.168.42.144/24";
|
||||||
Gateway = "192.168.42.1"; # Replace with your actual gateway
|
Gateway = "192.168.42.1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let eno1np0 use DHCP
|
||||||
|
systemd.network.networks."eno1np0" = {
|
||||||
|
matchConfig.Name = "eno1np0";
|
||||||
|
networkConfig = {
|
||||||
|
DHCP = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue