On 2003 Oct 02 Thursday 23:08, [EMAIL PROTECTED] wrote: > Zdraveite, > > Imam edna mashina s tri mrejovi karti. eth0 e kym edin dostavchik, eth1 e > kym drug, a eth2 mi e kym vytreshnata mreja. Iskam da napravia taka, che > 4ast ot clientite ot vytreshnata mreja da polzvat interneta na eth0, a > ostanalata chast da minavat prez eth1. > Mojete li da mi dadete niakakvi nasoki. Chetoh LARTC-HOWTO i tam vidiah > tazi za vyzmojnost, no informaciata e malko. > > Blagodaria! polzwash policy routing: ex: | root# ip rule list: | 0: from all lookup local | 0: from all lookup main | 0: from all lookup 253 normalniq nabor rules | root# ip rule add from 10.0.0.0/8 lookup 10 | root# ip rule list | 0: from all lookup local | 0: from 10.0.0.0/24 lookup 10 | 0: from all lookup main | 0: from all lookup 253 weche imash prawilo za paketi ot mreja 10 -> table 10 | root# ip route add default via 192.168.0.1 table 10 | root# ip route list table 10 | default via 192.168.200.51 dev eth0 i imash now default gw za mreja 10 - prez 192.168.0.1 wsichki ostanali si rabotqt kakto e "normalno" t.e. prez standartniq gw kakto e kazano w tablica "main". (ip route list === ip route list table main) nadqwam se towa da hwyrlq malko swetlina :) ostanaloto - LARTC :)
-- Regards, Doncho N. Gunchev ============================================================================ A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers). http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html ============================================================================