Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-05-2002, 10:18 PM   #1
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
assigning ip address after install

where can i change the ip address of my rh7.2 box after installation? also, if i selected dhcp at the install stage, do i need to change this for the change in ip address to take effect?
Old 03-05-2002, 10:43 PM   #2
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
you can edit the file /etc/sysconfig/network-scripts/ifcfg-eth0
or you can type in setup at the command line and select network configuration.
Old 03-06-2002, 03:36 PM   #3
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 30
run the '/usr/sbin/netconfig' program. This a simple ncurses program. There you can change from DHCP to STATIC and also modify your IP info.

'/usr/sbin/redhat-config-network' is a flashy gui that I think does the same thing and more. If you're curious, check out the other redhat-config-* programs in /usr/sbin.

For network changes to take place, all you need to do is to 'take down ' the interface and bring it up again. If you have only one interface and its a ethernet card, then it's usually called 'eth0'. So you can do 'ifdown eth0' or the more standard 'ifconfig eth0 down', then 'ifup eth0' or 'ifconfig eth0 up'.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP: Problem in assigning fixed address to clients libregeek Linux - Networking 6 11-17-2005 11:59 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
dhcp networking not assigning address quwiltw Linux - Networking 9 12-22-2004 08:25 AM
assigning memory address to pointer irfanhab Programming 4 04-24-2004 03:35 AM
Assigning site-local ipv6 address to an interface goto Linux - Networking 0 03-24-2003 04:06 AM

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration