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 |
Code:
ifconfig eth0 192.0.0.1 ... 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 |
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. |