Konfigurasi IP ADDRESS di Linux Centos

Sebelum  anda melakukan   konfigurasi  dhcp,dns,dll.  Harus   ada  ip  address setiap  paket  tersebut.  

  Settingan  ip  address di  linux centos hamper sama  dengan  linux lainya.  Hanya ada perbedaan  sedikit  saja.  



Konfigurasi  IP ADDRESS di  Linux Centos
Konfigurasi  IP ADDRESS di  Linux Centos 


Langkah 1 :  Konfigurasi   IP  Address  Centos  7 
 nano /etc/sysconfig/network-scripts/ifcg-enp0s3

HWADDR=08:00:27:BC:A4:0E
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s3
UUID=b1e34438-bf5c-4eab-8c6c-cd971d79f3a9
ONBOOT=yes
IPADDR=10.10.10.1
NETMASK=255.255.255.0

NETWORK=10.10.10.0

Artikel  Terkait 



Cara Instalasi Linux Centos


Kumpulan Perintah -Perintah Dasar Linux

Langkah 2 :  Service  Network 

[root@localhost ~]# service network  restart
Restarting network (via systemctl):                        [  OK  ]
[root@localhost ~]

Langkah  3 :   Testing   Network

[root@localhost ~]# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:bc:a4:0e brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.1/24 brd 10.10.10.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:febc:a40e/64 scope link
       valid_lft forever preferred_lft forever
[root@localhost ~]#