Page 1 of 1

i want to make static ip on centos 4.7 server

Posted: 2009/05/22 01:09:36
by samarasat
i want to make static ip on centos 4.7 server

what steps imust do it ?????????

thanks for help

Re: i want to make static ip on centos 4.7 server

Posted: 2009/05/22 06:57:56
by xavibuf
You have to edit the /etc/sysconfig/network-scripts/ifcfg-ethX file with this content:

DEVICE=ethX
IPADDR=X.X.X.X
NETMASK=X.X.X.X
NETWORK=X.X.X.X
BROADCAST=X.X.X.X
GATEWAY=X.X.X.X
ONBOOT=yes
BOOTPROTO=none
USERCTL=no


And restart the network service:

/etc/init.d/network restart

Re: i want to make static ip on centos 4.7 server

Posted: 2009/05/22 13:35:59
by gerald_clark
Or run netconfig.

Re: i want to make static ip on centos 4.7 server

Posted: 2009/05/23 12:00:15
by samarasat
[quote]
gerald_clark wrote:
Or run netconfig.[/quote]


how i do thats plz steps???

thanks gor help

Re: i want to make static ip on centos 4.7 server

Posted: 2009/05/23 12:02:07
by samarasat
[quote]
xavibuf wrote:
You have to edit the /etc/sysconfig/network-scripts/ifcfg-ethX file with this content:

DEVICE=ethX
IPADDR=X.X.X.X
NETMASK=X.X.X.X
NETWORK=X.X.X.X
BROADCAST=X.X.X.X
GATEWAY=X.X.X.X
ONBOOT=yes
BOOTPROTO=none
USERCTL=no


And restart the network service:

/etc/init.d/network restart[/quote]

thank you iwill try it