Minggu, 03 Maret 2013

Settting IP Linux Centos 6 via Console Text Mode


Cara Setting IP Static Linux Centos 6
root@server_rdy_# vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
DEVICE="eth0"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
 
Cara Setting Gateway Linux Centos 6
root@server_rdy_# vi /etc/sysconfig/network
 
NETWORKING=yes
HOSTNAME=centos6
GATEWAY=192.168.1.1
 
 
## Restart Network Interface
root@server_rdy_# /etc/init.d/network restart
 
Cara Setting DNS Server Linux Centos 6
root@server_rdy_# vi /etc/resolv.conf
 
nameserver 202.134.1.10 # Replace with your nameserver ip
nameserver 202.134.0.155 # Replace with your nameserver ip
Sedangkan jika ingin mensetting IP DHCP centos 6
Cara Setting IP DHCP Linux Centos 6
root@server_rdy_# vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
DEVICE="eth0"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
BOOTPROTO=dhcp
## Restart Network Interface
root@server_rdy_# dhclient
root@server_rdy_# /etc/init.d/network restart
Semoga Bermanfaat...Terima Kasih...

Tidak ada komentar:

Poskan Komentar