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 ?

I suppose you have to bind the application to specific network interface:

example:

Apache, httpd.conf:

Listen <hostname>:<port>

or

Listen <ip_address>:<port>

Oracle listener:

LISTENER =
 (DESCRIPTION_LIST =
   (DESCRIPTION =
     (ADDRESS_LIST =
       (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname>)(PORT = <port>))



Real/Logical Hostname or IP address  represent your network interfaces.



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 ?

Use netstat:

netstat -an | grep LISTEN --> to see on which interface and port your application is listenning netstat -an | grep ESTABLISHED --> to see on which interface/ports the established connection are.



Regards,
Dimitre

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to