Static IP

Rick Stevens rstevens at vitalstream.com
Tue Apr 12 17:00:45 UTC 2005


Scott Mertens wrote:
> New Linux User:  Red Hat Enterprise Linux ES release 4 (Nahant)
> 
> I am in the process of setting up Printer sharing on this Linux box for
> WIN XP users. I think some of my problems might be resolved if I can set
> up a static IP for this box.  Currently it gets one from a Linksys
> router connected to ISP.
> 
> How can I tell Linux to use a static IP, but use DNS and other info
> provided by ISP/Linksys router?

First off, get into the router and write down the DNS info it uses.
Also check the router's "DHCP Pool" (those are the addresses that the
DHCP server will give out) and the router's IP address and netmask.

Run "redhat-config-network" (or "RedHatIcon->System Settings->Network"
from the Gnome GUI) and configure the NIC for a fixed IP address.  You
will want to select a fixed IP that is NOT in the DHCP pool for the
router.  Your netmask will probably be 255.255.255.0, but use the one
you saw that the router was using.  Your default gateway will be the
router (usually 192.168.0.1) and you'll put in the DNS servers you
grabbed from the router.  That should be it.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-     If you can't beat your computer at chess...try kickboxing!     -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list