Q: Solaris, two interfaces, outgoing smb fed throug 'wrong' interface!
dol at ce.chalmers.se
Fri Jan 14 23:18:35 GMT 2000
Outbound data goes through default interface instead of specified,
How can I instruct samba to tell Solaris to SEND data through specified
I have a solaris filesserver with two network interfaces, hme0 and hme1.
I'd like NFS to use hme0 and smb hme1. I intsruct samba to only listen
for connections on the IP-address associated with eth1. (as os 2.0.6 I
actually specify interfaces=hme1, I also set socket address).
Both ports are connected (with unique ethernet numbers) to the same network
(different switches though). The routing table looks like this:
server# netstat -rn
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
126.96.36.199 188.8.131.52 U 3 8739 hme0
184.108.40.206 220.127.116.11 U 2 0 hme1
18.104.22.168 22.214.171.124 U 3 0 hme0
default 126.96.36.199 UG 0 4
127.0.0.1 127.0.0.1 UH 0 3596 lo0
All SMB traffice is recieved through hme1 which is dandy, however client reads
are fed out through the hme0 interface, with from address specified as, in
this case 188.8.131.52 (hme1). This causes congestion on hme0 which is where
we serve nfs.
I could probably set up static routing records for all hosts likely to use
smb, but this is highly impractical because of disperse and intermixed
IP-adress utilization between NFS/SMB.
(it's not fun to manually add 150 routes!)
Buy gigabit ethernet and be done with it, sorry not an option at this time.
Instruct samba to send data through hme1 interface, can this be done?
Would it require an impractical amount of hacking?
Platform: Solaris 2.6 5/98, Samba 2.0.6. Problems observed using
virtual adrian, netstat, snoop and tcpdump.
Ops, Indoors Ultimate Frisbee tournamant in six hours, gotta get some sleep!
Fredrik Lundholm systems administrator at ce.chalmers.se
dol at ce.chalmers.se voice: +46 31 7721697
fax: +46 31 7723663
More information about the samba