Hi,
Thanks for yourr response..
Actually I want ot change preference anytime betwwen application is
running..
like if I brought up intf1 first and then second one ( intf2 )
so default preference will be for intf1..( considering both on same
subnet )
now I want to change that prefernce nad make second default one (
intf2)..
can you please tell me how to do this..?
Thanks,
Rahul
Moe Trin wrote:
> On 13 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article
> <(E-Mail Removed). com>, LinuxGuy wrote:
>
> >I have 2 interfaces on same subnet ..
>
> And you are posting from google, yet didn't think to search there first?
> This is a very common configuration error, as there are few instances
> when it serves a useful purpose.
>
> -rw-rw-r-- 1 gferg ldp 297491 Sep 4 2003 Adv-Routing-HOWTO
>
> >whenever any application sends packets ,actually it goes through
> >interface 1 ..
>
> Yup - when you have two interfaces leading to the same place, the kernel
> uses the last one you configured because it assumes you changed your mind.
>
> >can I change this routing table behaviour and send packet
> >from interface 2 ( I don't want to do application level changes )
>
> Change the sequence they are brought up, or figure out what you are
> really trying to accomplish and then check the solutions in the HOWTO.
>
> Old guy
|