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

RE: Multiple IP addresses for a single ethernet card?



At 13:39 05-08-1999 -0400, you wrote:
>all i do its ifconfig -a eth0:1 ip
>works fine for me
>
>D0sE
>
>On Thu, 5 Aug 1999, Steve Cody wrote:
>
>> 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

You need a kernel with aliasing enable.

Then make a new file in /etc/sysconfig/network-scripts:
copy eth0 to eth0:0
There edit the line DEVICE=eth0 to DEVICE=eth0:0

Then edit the other lines like IPADDR, NETWORK, NETMASK etc to your taste.

After doing a '/etc/rc.d/init.d/network stop' and '/etc/rc.d/init.d/network
start' you should have your aliasing device available. Check with 'ifconfig'.

Regards, Koos Werkman.



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