Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-08-2005, 09:58 PM   #1
Registered: Dec 2004
Location: india
Posts: 60

Rep: Reputation: 15
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.

Old 06-08-2005, 10:22 PM   #2
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
ifconfig eth0 ...
ifconfig eth0: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
Old 06-10-2005, 01:34 AM   #3
Registered: Dec 2004
Location: india
Posts: 60

Original Poster
Rep: Reputation: 15
Thank you very much sir

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

Thanks again


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
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 09:08 PM
ip address lost after reboot ab_s0248 Linux - Networking 1 03-19-2005 09:51 PM
Virtual network address silver2003 Linux - Networking 2 05-31-2004 01:39 PM
Does anyone know how to make a "soft" link permenant? falcon56215 Linux - General 4 01-30-2002 05:16 AM
NIC gets different MAC address after each reboot?? BrianG Linux - Networking 1 04-09-2001 11:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration