It sounds like the ifconfig usesrc may be what I am looking for, although I 
can't seem to figure out how I'm supposed to use it...I am also trying to put 
non-routed traffic (i.e. LAN traffic) out over a specific interface, so I don't 
know about using route add default to achieve that. 

My configuration is something like this: 
bge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4 
inet 192.168.23.200 netmask fffff800 broadcast 192.168.23.255 
ether 0:14:4f:b0:b6:ca 
bge0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 
4 
inet 192.168.16.2 netmask fffff800 broadcast 192.168.23.255 

(where the IP range runs from 192.168.16.0-192.168.23.255) 
My default route for these interfaces is 192.168.16.1. I want all traffic 
initiated from the host to go over the 192.168.23.200 (i.e. an interactive SSH, 
ping, whatever else). 

If there is a way to do what I want, is there also a way to make it applicable 
on boot (I currently use /etc/defaultrouter and /etc/hostname.interface to 
configure the networks)? 

-- 
William Yang 
wy...@tjhsst.edu 

----- Original Message ----- 
From: "Bernd Schemmer" <bernd.schem...@gmx.de> 
To: "William Yang" <wy...@tjhsst.edu> 
Cc: sysadmin-discuss@opensolaris.org 
Sent: Wednesday, February 25, 2009 1:23:32 PM GMT -05:00 US/Canada Eastern 
Subject: Re: [sysadmin-discuss] outgoing traffic on multihomed hosts 

William Yang wrote: 
> 
> Is there a way to tell Solaris to “prefer” sending outgoing traffic 
> over certain IPs? I have a few systems running Solaris 10 with service 
> IPs that sometimes put outgoing traffic on those service IPs (i.e. 
> bge0:1) instead of the main IPs, so other machines see me as coming 
> from mirror.domain.com instead of the real hostname, and I’d rather it 
> didn’t do that. 
> 

I'm not sure what kind of IP addresses your server has : 

More than one IP address in one subnet and you want to have a fixed 
source IP for the outgoing packages? 

If this is the case you can use either the setsrc option for ifconfig or 
the setsrc option for the route command. We do use the later on some of 
our machines because only one IP address of the machines is configured 
in the firewall. 

e.g 

route add default <router_ip> *-setsrc <source_ip> 

regards 

Bernd 

* 
> 
> Thanks in advance, 
> 
> William Yang 
> 
> ------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> sysadmin-discuss mailing list 
> sysadmin-discuss@opensolaris.org 
> http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss 
> 


-- 
Bernd Schemmer, Frankfurt am Main, Germany 
http://home.arcor.de/bnsmb/index.html 

M s temprano que tarde el mundo cambiar . 
Fidel Castro 

_______________________________________________
sysadmin-discuss mailing list
sysadmin-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to