Click to See Complete Forum and Search --> : switching from DHCP to static


sbrooke
06-05-2001, 03:05 PM
When I installed Redhat 7.1 I selected a DHCP config rather than statically configuring it. I want to switch to a static now. Linuxconf isn't found and I'm not sure which individual files to modify. Any help would be appreciated!

Scott

FoBoT
06-05-2001, 03:07 PM
try "netconfig"

maybe?

if that doesn't work, one of the smart dudez here will post the "real" way to do it

also check some info on the
NHF (http://www.linuxnewbie.org/nhf/intel/network/nicinstall.html)

[ 05 June 2001: Message edited by: FoBoT ]

Dagda
06-05-2001, 04:30 PM
Originally posted by FoBoT:
<STRONG>try "netconfig"

maybe?</STRONG>

I'm pretty sure its netconfig

sbrooke
06-05-2001, 04:31 PM
netconfig worked after I rebooted. Thanks for the tip!

Scott

Coral Sea
06-05-2001, 11:49 PM
You can add linuxconf from the installation
CD. Just run rpm -ivh /mnt/cdrom/wherever/linuxconf*

where "wherever" is the directory on the CD where all the RPMs are. Should be on CD1.

Craig McPherson
06-14-2001, 07:48 PM
Does it kill people to edit their interfaces file by hand?

Debian's is /etc/network/interfaces. I think RedHat's may be under /etc/sysconfig or something like that, but every distro puts it somewhere different.

dekemoose
06-14-2001, 08:58 PM
For Red Hat it would be /etc/sysconfig/network.
I must agree that it is a good idea to know how to edit config scripts, and everyone should learn how to do it. There may come a day when you have to rescue a box from level one, and you will have no GUI. However, why not use the tools that are given to you?
Josh

WilliamWallace
06-15-2001, 07:54 PM
a little side note...make sure your isp will let you use static...if your isp uses dhcp and you use static...one day they may change your ip....then youll panic when your net wont work...

shaggy112
06-16-2001, 11:36 AM
i agree with craig. why not just edit files? you will spend more time looking for the right script than editing the files.
actually the file in redhat for interface 1 is:
/etc/sysconfig/network-scripts/ifcfg-eth0.
Here is ex. of format:

DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
NETWORK=xxx.xxx.xxx.xxx
ONBOOT=yes