Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Bashkim Salihu" <bashka@ipko.net>
To: lartc@vger.kernel.org
Subject: [LARTC] rule on aliases
Date: Wed, 19 Jun 2002 12:27:29 +0000	[thread overview]
Message-ID: <marc-lartc-102448971505504@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]

i need help,

at my scenario I need that pakets from hosts wich have default gw eth0 to lookup table 1 
and the pakets that come from hosts that have default gw eth0:0 to lookup tha main table

in my tests the scenario 1 didn't work and at the scenario 2 everything works
I reseted to default switches but everything is the same,

anyone have the idea or explanation what could be a problem,

router configuration

eth0 10.0.0.254/24 -- LAN
eth0:0 10.0.0.253/24 -- LAN
eth1  100.100.100.254/24 -- BACKBONE

Table main
ip route add 10.0.0.0/24 via 10.0.0.253 table main
ip route add 100.100.100.0/24 dev eth1 table main
ip route add default via 100.100.100.2 table main

Table 1
ip route add 10.0.0.0/24 via 10.0.0.254 table 1
ip route add 100.100.100.0/24 dev eth1 table 1
ip route add default via 100.100.100.1 table 1

ip rule add dev eth0 table 1

-------------------------------------------------------
Scenario 1

 backbone
==switch==
    |    
    |
==router== --- ==switch==
                    |
                    |
                   LAN

-------------------------------------------------------
Scenario 2

                 backbone
                ==switch==
     |-------------| |    
     |             | | 
 ==router== --- ==switch==
                    |
                    |
                   LAN
--------------------------------------------------------

thanks a lot,

[-- Attachment #2: Type: text/html, Size: 5440 bytes --]

                 reply	other threads:[~2002-06-19 12:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102448971505504@msgid-missing \
    --to=bashka@ipko.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox