From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bashkim Salihu" Date: Wed, 19 Jun 2002 12:27:29 +0000 Subject: [LARTC] rule on aliases MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0574_01C2179D.7127E720" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0574_01C2179D.7127E720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i need help, at my scenario I need that pakets from hosts wich have default gw eth0 = to lookup table 1=20 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 =3D=3Dswitch=3D=3D | =20 | =3D=3Drouter=3D=3D --- =3D=3Dswitch=3D=3D | | LAN ------------------------------------------------------- Scenario 2 backbone =3D=3Dswitch=3D=3D |-------------| | =20 | | |=20 =3D=3Drouter=3D=3D --- =3D=3Dswitch=3D=3D | | LAN -------------------------------------------------------- thanks a lot, ------=_NextPart_000_0574_01C2179D.7127E720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i need help,
 
at my scenario I need that = pakets=20 from hosts wich have default gw eth0 to lookup table 1 =
and the pakets that come = from hosts=20 that have default gw eth0:0 to lookup tha main table
 
in my tests the scenario 1 = didn't work=20 and at the scenario 2 everything works
I reseted to default switches = but=20 everything is the same,
 
anyone have the idea or = explanation=20 what could be a problem,
 
router=20 configuration
 
eth0 10.0.0.254/24 -- = LAN
eth0:0 10.0.0.253/24 -- = LAN
eth1  100.100.100.254/24 = --=20 BACKBONE
 
Table main
ip route add = 10.0.0.0/24 via=20 10.0.0.253 table main
ip route add 100.100.100.0/24 dev eth1 table = main
ip=20 route add default via 100.100.100.2 table main
 
Table 1
ip route add = 10.0.0.0/24 via=20 10.0.0.254 table 1
ip route add 100.100.100.0/24 dev eth1 table = 1
ip route=20 add default via 100.100.100.1 table 1
 
ip rule add dev eth0 table = 1
 
-------------------------------------------------------
Scenario=20 1
 
 backbone
=3D=3Dswitch=3D=3D
    = |   =20
    = |
=3D=3Drouter=3D=3D --- = =3D=3Dswitch=3D=3D
    =    =20             |
    =    =20             |
          &nbs= p;        LAN
 
-------------------------------------------------------
Scenario=20 2
 
   =20            =20  backbone
    =    =20         =3D=3Dswitch=3D=3D
 =20    |-------------| |   
    =20 |            =  |=20 | 
 =3D=3Drouter=3D=3D=20 --- =3D=3Dswitch=3D=3D
    =    =20             |
    =    =20             |
          &nbs= p;        LAN
--------------------------------------------------------<= /DIV>
 
thanks a=20 lot,
------=_NextPart_000_0574_01C2179D.7127E720-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/