[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Routing Problem eleganter lösen



Am Montag, 14. Dezember 2009 schrieb Markus Schulz:
> Am Freitag 11 Dezember 2009 schrieb Stefan Bauer:
> > Markus Schulz wrote:
> > > Bisher habe ich folgende Lösung gebaut:
> > >
> > > ip route add default dev ppp0 tab 1
> > > ip route add default dev ppp1 tab 2
> > >
> > > ip rule add from $ADSL_IP tab 1
> > > ip rule add from $SDSL_IP tab 2

# ip rule ls
0:      from all lookup 255
32766:  from all lookup main
32767:  from all lookup default
32768:  from all iif lo lookup sdsl
32769:  from all lookup adsl

# ip route list tab adsl
default dev ppp0  proto static  scope link

# ip route list tab sdsl
default dev ppp1  proto static  scope link

Und in der main-table existiert keine default Route mehr.
Damit geht alles prima und ich brauche keine Regeln die Kenntnis der 
$EXTIP haben müssen.

Danke. 

msc


Reply to: