[Samba] try to bind samba traffic to specific interface - without
success
Jan
jan at mailbone.de
Sat Aug 4 22:03:59 GMT 2007
Bjørn Tore Sund schrieb:
> Jan wrote:
>> Hey Bjørn,
> Hey Jan,
>
> If you bottom-quote and edit when you respond to me, it becomes that
> much easier to reply _in_ your email and address specifics there.
Alright! The next time, i will do so :)
>>
>> the traffic isn't send by a different subnet ...
>>
>> eth1 = 192.168.0.100 ( default route via 192.168.0.150 )
>>
>> eth2 = 192.168.0.200
>>
>> both interfaces belonging to the same net (255.255.255.0) ...
>>
> Then you don't have a Samba issue, you have discovered what happens
> when you give a Linux box multiple interfaces on the same subnet. The
> IP stack implementation is good for a number of things, but gives
> interesting results in just such instances.
> http://pontus.ullgren.com/view/Multiple_interfaces_on_the_same_subnet
> looks like it describes how to solve it using iproute2, other
> solutions may be better.
> http://www.linuxquestions.org/questions/showthread.php?t=6676 gives a
> brief runtroügh of the problem, Google may give you more - I didn't
> spend much time finding references.
>
> I stopped giving Linux boxes two interfaces on the same subnet a long
> time ago. :)
That hurts so much but you're right and your explanation about the IP
stack implementation was one of the things i didn't thought about.
Sometimes the team spirit work wonders thanks for that :)
>
>> eth2 is not configurated with an default route. could this be the
>> failure? (i don't think so because the route for the default gateway
>> was set for eth1 only by /etc/conf.d/net)
> You can only have one default route out of a computer. You can,
> however, use iproute2 to configure it to always respond to traffic
> through the interface it was contacted on, and lots of other
> interesting things. Highly recommended to look into.
Yes i used it in the past but really? i don't knew what i was working on.
I started working with linux (especially gentoo) about 3 years ago but
there will be
more things then samba breaking my neck.
>>
>> output of route table:
>>
>> Destination Gateway Genmask Flags Metric Ref
>> Use Iface
>>
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
>> 0 eth1
>>
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
>> 0 eth2
>>
>> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
>> 0 lo
>>
>> 0.0.0.0 192.168.0.150 0.0.0.0 UG 0 0
>> 0 eth1
>>
>> i hope that could bring some light on this situation ...
> The situation is nicely illuminated, yes. :)
>
> Bjørn
>
I love gentoo and the majority of the linux faction. thanks for your help
best regards
Jan
More information about the samba
mailing list