Page 96 - RHEL8 BOOK
P. 96
9. Set permanent ip address
[root@ sun ~]# cd /etc/sysconfig/network-scripts/
[root@ sun network-scripts]# vi ifcfg-enp0s8
TYPE="Ethernet"
DEVICE="enp0s8"
BOOTPROTO="static"
ONBOOT="yes"
NAME="enp0s8"
IPADDR="192.168.1.1"
PREFIX="24"
GATEWAY="192.168.1.1"
DNS1="8.8.8.8"
10. Set permanent ip address at graphical mode
[root@ sun ~]# nmtui edit enp0s3
[root@ sun ~]# nmtui
Select the first option ‘Edit a connection‘ and then choose the interface as ‘enp0s3’
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
96