i want to make static ip on centos 4.7 server
what steps imust do it ?????????
thanks for help
i want to make static ip on centos 4.7 server
Re: i want to make static ip on centos 4.7 server
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
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
-
- 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
Or run netconfig.
Re: i want to make static ip on centos 4.7 server
[quote]
gerald_clark wrote:
Or run netconfig.[/quote]
how i do thats plz steps???
thanks gor help
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
[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
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