i want to make static ip on centos 4.7 server

Issues related to software problems
Post Reply
samarasat
Posts: 9
Joined: 2009/05/20 23:45:22

i want to make static ip on centos 4.7 server

Post by samarasat » 2009/05/22 01:09:36

i want to make static ip on centos 4.7 server

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

thanks for help

xavibuf
Posts: 5
Joined: 2009/05/21 14:40:47

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

Post by xavibuf » 2009/05/22 06:57:56

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

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

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

Post by gerald_clark » 2009/05/22 13:35:59

Or run netconfig.

samarasat
Posts: 9
Joined: 2009/05/20 23:45:22

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

Post by samarasat » 2009/05/23 12:00:15

[quote]
gerald_clark wrote:
Or run netconfig.[/quote]


how i do thats plz steps???

thanks gor help

samarasat
Posts: 9
Joined: 2009/05/20 23:45:22

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

Post by samarasat » 2009/05/23 12:02:07

[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

Post Reply

Return to “CentOS 4 - Software Support”