SolusVM
Change hostname and ip on linux terminal on server or
Change hostname and ip on linux terminal on server or machine (this case CentOS 8)
#Change #hostname #linux #terminal #server
“Systems Administration”
Method 1:
$Sudo Hostname “the name you want”
$Sudo vi /etc/sysconfig/network-scrIPts/ifcfg-enp3s0
BOOTPROTO=none
IPADDR=10.0.2.10
PREFIX=24
GATEWAY=10.0.2.10
DNS1=8.8.8.8
$ sudo nmcli connection down enp3s0 && sudo nmcli connection up enp3s0
Method 2:
$ sudo nmcli connection modify enp3s0…
source
To see the full content, share this page by clicking one of the buttons below |