Hello guys,
If you wish to set IP address to your server. Go to through following steps.
First you need to login as 'root' on your server. Execute the following command to configure the network interfaces.
Quotevi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=yes
ONBOOT=yes
HWADDR=00:52:25:56:B1:AC
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.8
PREFIX=21
GATEWAY=192.168.1.1
GATEWAYDEV=eth0
DNS1=192.168.1.254
DNS2=8.8.8.8
Save your settings and execute the following command to restart the network.
Quote/etc/init.d/network restart
How to add IP range to server ?Quote[root ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth1-range0
IPADDR_START=192.168.1.1 #start range from
IPADDR_END=192.168.1.200 # end range to.
CLONENUM_START=10
:wq
Save the file and restart the network service.
Quote/etc/init.d/network restart
Wish this post help you :-)