ip
This commit is contained in:
parent
9466a71cc5
commit
c8600dbe44
1 changed files with 4 additions and 4 deletions
|
|
@ -36,11 +36,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configuration for the second interface (e.g., enp2s0)
|
systemd.network.networks."20-eno2np1" = {
|
||||||
systemd.network.networks."20-wan" = {
|
matchConfig.Name = "eno2np1";
|
||||||
matchConfig.Name = "enp2s0"; # Adjust to your second network interface name
|
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "ipv4"; # Enable DHCP for this interface
|
Address = "192.168.42.144/24";
|
||||||
|
Gateway = "192.168.42.1"; # Replace with your actual gateway
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue