LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   assigning ip address after install (https://www.linuxquestions.org/questions/linux-networking-3/assigning-ip-address-after-install-15669/)

gui10 03-05-2002 10:18 PM

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?

bbenz3 03-05-2002 10:43 PM

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.

kervin 03-06-2002 03:36 PM

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'.


All times are GMT -5. The time now is 09:57 PM.