Mick <michaelkintzios <at> gmail.com> writes:

> >
> > Hey, that works very well here -- thanks!
> > Been wanting that solution for some time now.
> > :)
> 
> My apologies!  It took some time between reading your message and
> replying to it - by which time I had forgotten the finer points.
> 
> Whether you set NIC priority in the /etc/conf.d/net file or in a post
> up script, the result is the same.  One NIC will have a higher
> priority than another for ALL connections.  This is because NICs do
> not do NATing.  They will send all packets out to the gateway
> (192.168.1.1) and the router at the gateway will determine which
> packet is forwarded to the Internet and which to the LAN.  So, if you
> do not want to prioritise one NIC over another, it may be better to
> use iptables to route LAN packets via a particular NIC instead.
> 

Great to see this helps someone else as well :)

@Mick: I am not sure if I fully understand what you mean. Following the routing
table the most specific route will be used, which is not the default route, but
the route to the local lan. In this case the metric is important as there are
multiple interfaces with the same network.
And what do you mean by setting NIC priority (using the metric_eth0 config
option?) using /etc/conf.d/net or in a post script? Both have different outcomes
it looks to me.

Greetings


Reply via email to