ifcfg scripts are now created from scratch
- ifcfg script do not contain UUID any more
This commit is contained in:
@ -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
|
||||
|
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp1s0
Normal file
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp1s0
Normal 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
|
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp2s0
Normal file
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp2s0
Normal 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
|
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp3s0
Normal file
8
to_system/etc/sysconfig/network-scripts/ifcfg-enp3s0
Normal 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
|
5
to_system/etc/sysconfig/network-scripts/ifcfg-enp4s0
Normal file
5
to_system/etc/sysconfig/network-scripts/ifcfg-enp4s0
Normal file
@ -0,0 +1,5 @@
|
||||
TYPE=Ethernet
|
||||
NAME=enp4s0
|
||||
DEVICE=enp4s0
|
||||
BOOTPROTO=dhcp
|
||||
ONBOOT=yes
|
Reference in New Issue
Block a user