LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multiple IP addresses (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-ip-addresses-156073/)

james_cwy 03-10-2004 08:28 PM

Multiple IP addresses
 
I am running redhat 9 and would like to configure my eth0 to have multiple IP addresses.

I know this can be done using Windows but am unsure whether this is possible in redhat 9.

How can I do this?

Thanks
James

pingswept 03-10-2004 08:40 PM

Give this a try:

/sbin/ifconfig eth0:0 192.168.1.100
/sbin/ifconfig eth0:1 192.168.1.101

Then try:

/sbin/ifconfig eth0

to see if it worked.

Good luck.
Pingswept

james_cwy 03-10-2004 08:43 PM

Add this IP
 
I would like to add this IP:

172.32.10.50

The current IP of my redhat machine is xxx.xxx.xxx.165.

Thanks

james_cwy 03-10-2004 08:45 PM

Workable ways
 
Has anyone tried setting multiple IPs and if you have been successful, hope you can share your experience and the way you did it.

Thanks a lot
Appreciate it
James

cknight 03-29-2004 12:13 AM

I have gotten this to work.

ifconfig eth0:1 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255

I have been using this to virtual host a web site and haven't had any problems.

You may want to add this to your rc.local file if you want it to continue if you restart.

james_cwy 03-30-2004 09:10 PM

THanks
 
Thanks for all the help.
I will check it out

Appreciate it.
James

james_cwy 06-13-2004 11:34 PM

Bug in redhat 9??
 
I managed to configure two IP addresses and could access the Internet at that time

After some weeks, I could not connect to the Internet unless I deactivate the eth0:1. Then later reactivating it and it would be OK

Is this suppose to happen anyway?


All times are GMT -5. The time now is 12:14 AM.