Pages

Tuesday, March 6, 2018

centos 7 basic command documentation

#set hostname
hostnamectl set-hostname multipolar.monitoring

#check status
hostnamectl status


===========================
#display device
nmcli d
>enp0s8

nmcli d show
>description all network device



#set IPv4 address
nmcli c modify enp0s3 ipv4.address 192.168.2.1/24

nmcli c modify enp0s3 ipv4.gateway 192.168.2.2

nmcli c modify enp0s3 ipv4.dns 192.168.2.2

nmcli c modify enp0s3 ipv4.method manual   (auto = DHCP)




# bring device down
nmcli c down enp0s3

# bring device up.
nmcli c up enp0s3


# cek 1 interface
nmcli d show enp0s3


# cek config
ip addr show

===================

No comments:

Post a Comment