LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make Virtual IP address permenant with every reboot-------------- (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-virtual-ip-address-permenant-with-every-reboot-331721/)

pal 06-08-2005 09:58 PM

How to make Virtual IP address permenant with every reboot--------------
 
hello sir,
I am using a Redhat 9 machine with one ethernet card (with one IP address).
I had given a Virtual IP address to the same card using ifconfig command.
Now I can see both the IP addresses using ifconfig .

But whenever I reboot the system Only one IP address remains.

How to make both the IP addresses permanent with every reboot.


Thanks

mhallbiai 06-08-2005 10:22 PM

Code:

ifconfig eth0 192.0.0.1 ...
ifconfig eth0:1 10.0.0.1 ...

if this is what you are talking about then you can add the script. it has been some time since i touched rh9 but on rhel2.1/3/4 and fc1/2/3 and the scripts are found in /etc/sysconfig/network-scripts/

you should have an ifcfg-eth0 already. copy it to ifcfg-eth0:1 (cp ifcfg-eth0 ifcfg-eth0\:1) and then edit it with the appropriate information being sure to change DEVICE=eth0 to DEVICE=eth0:1

doing this should also allow for if[down|up] eth0:1 to work


...or you could just add your ifconfig for the virtIP to rc.local


hope this helps

pal 06-10-2005 01:34 AM

Thank you very much sir

My Problem got solved in just 5 minutes with your suggestions.



Thanks again


All times are GMT -5. The time now is 10:23 PM.