Computing.Net > Forums > Linux > setting static IP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

setting static IP

Reply to Message Icon

Name: John S.
Date: February 18, 2003 at 12:20:13 Pacific
OS: RH 7.2
CPU/Ram: 9.8 GB HD|192 MB RAM
Comment:

I need to setup static IP address on my
machine(RH 7.2). Where do I go to do/what do I do to do this? (I know everything there is to know about TCP/IP (maybe not everything but thats besides the point) I just dont know how to configure it.
Thanks
-John



Sponsored Link
Ads by Google

Response Number 1
Name: givetomeabreak
Date: February 18, 2003 at 13:14:02 Pacific
Reply:

Redhat has several methods that you can use.
From the command promt, type:
ifconfig eth0 192.168.0.5 broadcast 192.168.0.255 netmask 255.255.255.0

Then type: ifconfig eth0 up

Also, you can type:setup
This will bring up a utility which configures alot of stuff including ip addresses.

The Webmin or Linuxconf utilities are other favorites.


0

Response Number 2
Name: John S.
Date: February 18, 2003 at 15:43:16 Pacific
Reply:

Thanks it worked.
-John


0

Response Number 3
Name: 3Dave
Date: February 19, 2003 at 06:04:33 Pacific
Reply:

PS If you want to add a gateway:
# route add -net default gw 192.168.0.254 netmask 0.0.0.0 metric 1

and to delete it:
# route del default


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: setting static IP

setting static ip add www.computing.net/answers/linux/setting-static-ip-add/29776.html

setting static ip in gentoo www.computing.net/answers/linux/setting-static-ip-in-gentoo/16731.html

Set Static IP www.computing.net/answers/linux/set-static-ip/29738.html