●IPアドレス変更
# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
->IPアドレスを変える
# systemctl restart network
# ip addr
# shutdown -r now
# ip addr
●ホスト名確認
[root@ora12ee ~]# hostnamectl status
Static hostname: ora12ee.oradomain
Icon name: computer-vm
Chassis: vm
Machine ID: 79f7ac51254548c49d82595bf67e7b62
Boot ID: aaa8973cbd1a47d6bde5669465c9994e
Virtualization: kvm
Operating System: Oracle Linux Server 7.3
CPE OS Name: cpe:/o:oracle:linux:7:3:server
Kernel: Linux 4.1.12-61.1.18.el7uek.x86_64
Architecture: x86-64
●変更
[root@ora12ee ~]# hostnamectl set-hostname ora12ee02.oradomain
[root@ora12ee02 ~]# hostname
ora12ee02.oradomain
[root@ora12ee02 ~]# uname -n
ora12ee02.oradomain
[root@ora12ee02 ~]# cat /etc/hostname
ora12ee02.oradomain
[root@ora12ee02 ~]# hostnamectl status
Static hostname: ora12ee02.oradomain
Icon name: computer-vm
Chassis: vm
Machine ID: 79f7ac51254548c49d82595bf67e7b62
Boot ID: aaa8973cbd1a47d6bde5669465c9994e
Virtualization: kvm
Operating System: Oracle Linux Server 7.3
CPE OS Name: cpe:/o:oracle:linux:7:3:server
Kernel: Linux 4.1.12-61.1.18.el7uek.x86_64
Architecture: x86-64
●hostsを変える
vi /etc/hosts