mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(pbx): ipv4 config
This commit is contained in:
parent
767247cc91
commit
f826d2bb4a
6 changed files with 36 additions and 10 deletions
|
|
@ -7,13 +7,19 @@ _: {
|
|||
};
|
||||
network.interfaces = {
|
||||
net0 = {
|
||||
name = "ens18";
|
||||
name = "eth0";
|
||||
macAddress = "BC:24:11:33:19:04";
|
||||
address4 = "dhcp";
|
||||
address4 = "10.1.1.43";
|
||||
address6 = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
extern.files = {
|
||||
"/etc/sysconfig/network-scripts/ifcfg-eth0" = {
|
||||
source = ./ifcfg-eth0;
|
||||
mode = "0644";
|
||||
};
|
||||
};
|
||||
exports = {
|
||||
services = {
|
||||
sshd = {
|
||||
|
|
|
|||
19
systems/freepbx/ifcfg-eth0
Normal file
19
systems/freepbx/ifcfg-eth0
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
TYPE="Ethernet"
|
||||
PROXY_METHOD="none"
|
||||
BROWSER_ONLY="no"
|
||||
DEFROUTE="yes"
|
||||
IPV4_FAILURE_FATAL="no"
|
||||
IPV6INIT="yes"
|
||||
IPV6_AUTOCONF="yes"
|
||||
IPV6_DEFROUTE="yes"
|
||||
IPV6_FAILURE_FATAL="no"
|
||||
IPV6_ADDR_GEN_MODE="stable-privacy"
|
||||
NAME="eth0"
|
||||
UUID="67f844cf-952d-486b-9788-1e4f7ae3119c"
|
||||
DEVICE="eth0"
|
||||
ONBOOT="yes"
|
||||
#BOOTPROTO="dhcp"
|
||||
BOOTPROTO="static"
|
||||
IPADDR="10.1.1.43"
|
||||
GATEWAY="10.1.1.1"
|
||||
NETMASK="255.255.255.0"
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address4": "10.1.1.43",
|
||||
"address6": "fd0a::be24:11ff:fe33:1904",
|
||||
"macAddress": "BC:24:11:33:19:04"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue