[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Multiple IP addresses for a single ethernet card?



You have to have IP Aliasing compiled into the kernel.  Use the ifconfig
command:

/sbin/ifconfig eth0:0 x.x.x.x netmask 255.255.x.x up

Use the second IP Address instead of x.x.x.x and put the correct information
in for the subnet mask.  I have this command in my rc.local file so that it
executes upon bootup. I am sure there is a better way, but that is all I
knew to do.

Steve Cody

-----Original Message-----
From: neil neil86 august net [mailto:neil neil86 august net]
Sent: Thursday, August 05, 1999 12:25 PM
To: redhat-install-list redhat com
Subject: Multiple IP addresses for a single ethernet card?


Hello:

I am sure this is a straightforward question, but I cant figure it
out:

Is there a way to have multiple IP numbers assigned to a single 
ethernet card?  My ISP just changed my static IP number and I need
to transition to the new one.  In the meantime, I want to respond
to both IP numbers.

I tried doing this in /etc/sysconfig/network-scripts:

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=216.87.138.87
NETWORK=216.87.138.84
NETMASK=255.255.255.252
IPADDR=216.87.138.86 
IPADDR=208.249.195.86

But, it still only responds to 208.249.195.86 and not the other one.
I am using RH 6.0

Thanks,
	Neil.


 **We pay a 5% finders fee for job referrals that lead to a contract*
 --------------------------------------------------------------------
 |Neil Aggarwal          |JAMM Consulting, Inc. |Custom Programming |
 |President & CEO        |www.JAMMConsulting.com|Java, C, C++, perl,|
 |neil JAMMConsulting com|(972) 612-6056        |HTML, CGI          |
 --------------------------------------------------------------------



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-install-list-request redhat com with 
                       "unsubscribe" as the Subject.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]