Hi

To set a static ip you need to configure the file
/etc/sysconfig/network-config/ifcfg-eth0
where eth0 is the name of your ethernet device. The contents of the file
should look something like this:

DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.0.0.255
IPADDR=10.0.0.22
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
GATEWAY=10.0.0.138
TYPE=Ethernet
USERCTL=no
PEERDNS=no

Hope this helps

Ruchit


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 7:08 PM
Subject: How to go from DHCP to static address


> I have a Redhat 7.3 machine running on my home network.  When I originally
> set it up, I had it grab its IP address from a DHCP server.  I would like
to
> change this to a static address.  Can somebody point me in the right
> direction as far as what files need to be configured?
>
> Thanks
> mike
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to