ifcfg scripts are now created from scratch

- ifcfg script do not contain UUID any more
This commit is contained in:
2021-04-08 07:02:57 +02:00
parent 53af769c3f
commit 2fadf63da8
8 changed files with 78 additions and 68 deletions

View File

@ -1,3 +1,3 @@
echo "Welcome to $HOSTNAME $(hostname -I)"
echo "$(cat /sys/class/net/enp1s0/address)"
echo "$(cat /sys/class/net/enp4s0/address)"
export EDITOR=nano

View File

@ -0,0 +1,8 @@
TYPE=Ethernet
NAME=enp1s0
DEVICE=enp1s0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.2.1
NETMASK=255.255.255.0
PREFIX=24

View File

@ -0,0 +1,8 @@
TYPE=Ethernet
NAME=enp2s0
DEVICE=enp2s0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.2.2
NETMASK=255.255.255.0
PREFIX=24

View File

@ -0,0 +1,8 @@
TYPE=Ethernet
NAME=enp3s0
DEVICE=enp3s0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.2.3
NETMASK=255.255.255.0
PREFIX=24

View File

@ -0,0 +1,5 @@
TYPE=Ethernet
NAME=enp4s0
DEVICE=enp4s0
BOOTPROTO=dhcp
ONBOOT=yes