> My problem is to determine which ip address will be used by applications when 
> there are multiple nics and virtual interfaces configured:
> e.g. I have a sun (solaris 10 but I don't think that this is a solaris
> 10 specific problem) with ce0 in network a and ce1 in network b. on
> ce0 there are virtual interfaces ce0:1 etc in network a configured. It
> is not configured as a router and /etc/defaultgateway contains the
> gateway from network a. So I would expect that nic ce0 and the gateway
> of network a will be used to get into another networks (and that is
> what I want to). But the fact is that both interfaces are used for
> internet connections. Has anyone an idea how to configure the sun that
> nic a will be preferred for connections with other networks ?

Usually only one will be used because your gateway is only available
from one interface.  You'd have to show us your routing table or
describe it in greater detail.  Since your router is on network a, I
don't see how it can use network b to to reach distant machines at all.

How do you know that it is doing so?

> The other theme I'm interested in is how to determine which ip address
> is used as a sender address when there are multiple ip addresses
> configured on one nic . Some applications use the virtual some the
> physical address. Can I define somewhere in the os which address is
> used by applications ?

If you're talking about source address selection, take a look at example
10 in the ifconfig man page.  You can create a vni interface and force
it to be used as the source address for connections outbound from a
particular physical interface.

-- 
Darren Dunham                                           [EMAIL PROTECTED]
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to