After you have installed CentOS 6.2 linux server, the network configuration will be like this.
DEVICE="eth0" HWADDR="xx:xx:xx:xx:xx:xx" NM_CONTROLLED="yes" ONBOOT="no"
1. Configure eth0:
[root@centos6 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" HWADDR="00:0C:29:67:51:B1" NM_CONTROLLED="yes" ONBOOT="yes" IPADDR=192.168.1.44 BOOTPRO=static NETMASK=255.255.255.0
[root@centos6 ~]# vi /etc/sysconfig/network
NETWORKING=yes HOSTNAME=centos6.2 GATEWAY=192.168.1.1
[root@centos6 ~]# /etc/init.d/network restart
[root@centos6 ~]# Service network restart
[root@centos6 ~]# vi /etc/resolv.conf
nameserver 8.8.8.8 nameserver 192.168.1.1
Good information.If you need the internet Static (or) Dynamic IP address visit the site IP-Details.com here you can get the details like Internet Service Provider[ISP],IP Location,Country,Latitude, Longitude,IPv4 Dotted Binary,Octal,Decimal,Hexadecimal Notation.
ReplyDelete