How To Configure Network Settings In Centos

$ sudo vi /etc/sysconfing/network-scripts/ifcfg-eth0
Configuration for Dynamic IP

DEVICE=”eth0″
BOOTPROTO=dhcp
NM_CONTROLLED=”yes”
ONBOOT=yes

Static IP Configuration

DEVICE=”eth0″
BOOTPROTO=static
NM_CONTROLLED=”yes”
ONBOOT=yes
TYPE=”Ethernet”
IPADDR=192.168.1.2

PREFIX=24
GATEWAY=192.168.1.1

DEFROUTE=yes
DNS1=192.168.1.10
DNS2=192.168.1.20
$ sudo service network restart

Aly Chiman

Aly Chiman is a Blogger & Reporter at AlyChiTech.com which covers a wide variety of topics from local news from digital world fashion and beauty . AlyChiTech covers the top notch content from the around the world covering a wide variety of topics. Aly is currently studying BS Mass Communication at University.