Centos 7 turn off NetworkManager
My domain whittenberg.domain and my machine is nas.whittenberg.domain
Do not attempt this unless you have console access. You can do all the below from a say a putty session, but if things go wrong you will need console access.
vi /etc/hostname
nas.whittenberg.domain
vi /etc/hosts
127.0.0.1 nas nas.whittenberg.domain localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
vi /etc/resolv.conf
# Generated by NetworkManager
search whittenberg.domain
nameserver 192.168.10.1
nameserver 2600:8800:2580:eda:4af8:b3ff:fe93:615d
---begin if you want to use the old eth0 naming convention
vi /etc/default/grub
Search for the line “GRUB_CMDLINE_LINUX” and append the following:
“net.ifnames=0 biosdevname=0″
**copy/paste from this blog sometimes leaves incorrect " in the linux file. Please type those in manually from your kyb. Also make sure you do not have to many quotes in the file. The line should begin and end in a quote. If you have any in the middle it will fail.
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
**above is used if you have EFI boot
mv /etc/sysconfig/network-scripts/ifcfg-enp3s0 /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth0
NAME=eth0
DEVICE=eth0
---end if you want to use the old eth0 naming convention
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl stop NetworkManager-wait-online
systemctl disable NetworkManager-wait-online
systemctl enable network
chkconfig network on
systemctl start network
reboot and sanity check
systemctl status NetworkManager
systemctl status network
No comments:
Post a Comment