Muiltple Virtual Interfaces - Random Source Address
I have configurations with multiple virtual interfaces on the same physical interface in the same subnet. (Solaris 9). On the machines I run ana pache with lots of IP based virtual host.
If i have applications which don't bind to a certain ip, then ip of one of the defined interfaces is taken. e.g Mail does not take the first address, instead it uses a random one. How can i define a certain IP to be the default ip?
I have a similar problem on a machine with Solaris 10 and Zones, there i connect to one IP, and get the response from another one.
Fritz
[581 byte] By [
Tom_Tiger] at [2007-11-26 11:12:29]

# 1
> I have configurations with multiple virtual
> interfaces on the same physical interface in the same
> subnet. (Solaris 9). On the machines I run ana pache
> with lots of IP based virtual host.
>
> If i have applications which don't bind to a certain
> ip, then ip of one of the defined interfaces is
> taken. e.g Mail does not take the first address,
> instead it uses a random one. How can i define a
> certain IP to be the default ip?
Solaris 10 adds some keywords to ifconfig so that you can specify one of the addresses as preferred. I'm not sure what the best way to do the same thing on Solaris 9 is.
> I have a similar problem on a machine with Solaris 10
> and Zones, there i connect to one IP, and get the
> response from another one.
It's similar, but harder to solve. One IP layer is shared among all zones, so all the normal optimizations (like picking the "best" interface) reduce the independence of the zones.
IP instances for zones are coming as part of the clearview project. Eventually they will let you assign an interface to a zone and it will own all the IP space on it.
--
Darren