SUMMARY: Is there a way to have two IP addresses on the same physical Ethernet interface?

From: <Syed.Hosain_at_aeris.net>
Date: Tue Dec 29 2009 - 20:55:48 EST
Thanks to all who responded so quickly ... answer is to use virtual
interfaces.

Set up /etc/hostname.bge0:1 with the 10.0.7.7 address and then do:

ifconfig bge0:1 plumb
ifconfig bge0:1 10.0.7.7/24 up

for a manual start without rebooting.

And it worked fine!

Thanks again!

Z

-----Original Message-----
I have done reading on ifconfig and other commands, but do not seem to
determine if I can do the following.

1.       One of our Sun systems has an address (internal address, of
course) of 10.0.7.5 on its bge0 ethernet interface.

2.       I need to have it respond exactly the same way (ideally, same
hostname too) with an address of 10.0.7.7 on the same bge0 ethernet
interface.

3.       In other words, whether I do a "ping 10.0.7.5" or a "ping
10.0.7.7" or a "rsh 10.0.7.5 <command>" or a "rsh 10.0.7.7 <command>",
it all reaches the same physical Ethernet card on the same machine, etc.

Ideally, I would also like to have the following entries in the
/etc/hosts file (i.e., with the same actual host name for both
addresses):

10.0.7.5  mach

10.0.7.7  mach

Thoughts, folks? And I am in a bit of a rush to accomplish this in the
next few hours, if possible - always a rush <sigh>!

Thanks,

Z
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Dec 29 20:57:08 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:15 EST