Setting Ip Address Di Linux Centos Menggunakan Console
1.) Login Sebagai root
2.) Setting konfigurasi di ifcfg-eth0
[root@localhost ~]#cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]#vi ifcfg-eth0
atau bisa juga cara cepatnya
[root@localhost ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
Masukkan Konfigurasinya
DEVICE=eth0 => Line
BOOTPROTO=static => Jenis Protokol
BROADCAST=192.168.1.255 =>
IPADDR=192.168.1.10 => IP Adrress media
NETMASK=255.255.255.0 =>
NETWORK=192.168.1.0 =>
ONBOOT=yes =>
TYPE=Ethernet =>
Save mengunakan perintah :wq
4.) Edit Konfigurasi Default Gateway /etc/sysconfig
[root@localhost ~]#cd /etc/sysconfig
[root@localhost sysconfig]#vi network
Masukkan Konfigurasinya
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1