---------ITRecordAZ---------
1. Change hostname:
option 1: Edit file /etc/hostname, save and reboot
option 2: set hostname with command: hostnamectl set-hostname testsrv02, reboot to apply
2. Set IP address
option 1: edit file config
cd /etc/sysconfig/network-scriptsls/
list profile network and edit fil eifcfg-ens33
add some option:
BOOTPROTO=none # change from DHCP to static
IPADDR=192.168.2.100 # Server IP
PREFIX=24 # Subnet
GATEWAY=192.168.2.1 # Set default gateway IP
DNS1=192.168.2.10 # Set dns servers #
DNS2=8.8.8.8
DNS3=8.8.4.4
DEVICE=eth0
ONBOOT=yes
systemctl restart network # restart network services for appply or reboot server
option 2: using nmtui tool