LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-10-2004, 08:28 PM   #1
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Rep: Reputation: 15
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
 
Old 03-10-2004, 08:40 PM   #2
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
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
 
Old 03-10-2004, 08:43 PM   #3
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
Old 03-10-2004, 08:45 PM   #4
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
Old 03-29-2004, 12:13 AM   #5
cknight
LQ Newbie
 
Registered: Mar 2004
Location: California
Distribution: Redhat 9
Posts: 1

Rep: Reputation: 0
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.
 
Old 03-30-2004, 09:10 PM   #6
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
THanks

Thanks for all the help.
I will check it out

Appreciate it.
James
 
Old 06-13-2004, 11:34 PM   #7
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



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
Multiple static IP addresses fr0zen Linux From Scratch 5 11-23-2005 06:47 PM
Multiple IP Addresses mikemrh9 Linux - Networking 6 05-26-2005 05:15 AM
Multiple IP Addresses on Startup mikemrh9 SUSE / openSUSE 1 12-01-2004 09:01 AM
Multiple IP addresses on one NIC hrr Linux - Networking 2 03-07-2003 12:04 PM
Multiple IP Addresses meshcurrent Linux - Networking 1 10-12-2002 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration