routed, route, kernel 2.0.36
Martin Edlman
edlman na fortech.cz
Úterý Červenec 11 14:38:01 CEST 2000
Zdravim
mam problem s fungovanim routed. Snazim se ho rozbehat na Linux
Routerech (LRP 2.9.4) (s jadrem 2.0.36), ale routovaci tabulky po update
nevypadaji, tak jak by podle me mely. No a podle toho to taky nefunguje.
Situace: mam dva routery (1 2) pripojeny do stejny site, maj stejnou
def.gw, chci aby data mezi sitema (A B C D E), ktery jsou za temahle
routerama, sly primo bez toho, ze by sly pres def.gw
sit A --+-- router 1 ----+---- router 2 ---+--- sit D
| | |
sit B --+ def.gw +--- sit E
| |
sit C --+ Internet
def.gw: 195.128.217.129/27
router 1: 195.128.217.148/27
router 2: 195.128.217.144/27
sit A: 195.128.217.52/30
sit B: 195.128.217.56/30
sit C: 195.128.217.60/30
sit D: 195.128.217.200/30
sit E: 195.128.217.204/30
Nechce se mi delat to statickyma routama, protoze routery pribejvaj,
site se menej a je to staticky neudrzovatelny.
Takze chci pouzit routed.
Pred jeho pustenim mam na routeru 1 nasl. tabulku:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.128.217.129 0.0.0.0 255.255.255.255 UH 0 0 105 eth0
195.128.217.52 0.0.0.0 255.255.255.252 U 0 0 21 eth1
195.128.217.56 0.0.0.0 255.255.255.252 U 0 0 14 eth2
195.128.217.60 0.0.0.0 255.255.255.252 U 0 0 23 eth3
195.128.217.128 0.0.0.0 255.255.255.224 U 0 0 17 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 23 lo
0.0.0.0 195.128.217.129 0.0.0.0 UG 1 0 518 eth0
Na routeru 2:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.128.217.129 0.0.0.0 255.255.255.255 UH 0 0 295 eth0
195.128.217.200 0.0.0.0 255.255.255.252 U 0 0 16 eth1
195.128.217.204 0.0.0.0 255.255.255.252 U 0 0 18 eth2
195.128.217.128 0.0.0.0 255.255.255.224 U 0 0 16 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 17 lo
0.0.0.0 195.128.217.129 0.0.0.0 UG 1 0 358 eth0
Po spusteni routed, mam na routeru 1:
Kernel IP routing table
Destination Gateway Genmask Flg Met. Ref Use Iface
195.128.217.129 0.0.0.0 255.255.255.255 UH 0 0 105 eth0
195.128.217.52 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
195.128.217.56 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
195.128.217.60 0.0.0.0 255.255.255.255 UH 0 0 0 eth3
195.128.217.200 195.128.217.144 255.255.255.255 UGH 1 0 1 eth0
195.128.217.204 195.128.217.144 255.255.255.255 UGH 1 0 0 eth0
195.128.217.52 0.0.0.0 255.255.255.252 U 0 0 21 eth1
195.128.217.56 0.0.0.0 255.255.255.252 U 0 0 14 eth2
195.128.217.60 0.0.0.0 255.255.255.252 U 0 0 23 eth3
195.128.217.128 0.0.0.0 255.255.255.224 U 0 0 17 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 23 lo
0.0.0.0 195.128.217.129 0.0.0.0 UG 1 0 518 eth0
Na routeru 2:
Kernel IP routing table
Destination Gateway Genmask Flg Met. Ref Use Iface
195.128.217.129 0.0.0.0 255.255.255.255 UH 0 0 295 eth0
195.128.217.200 0.0.0.0 255.255.255.255 UH 0 0 1 eth1
195.128.217.204 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
195.128.217.52 195.128.217.148 255.255.255.255 UGH 1 0 0 eth0
195.128.217.56 195.128.217.148 255.255.255.255 UGH 1 0 0 eth0
195.128.217.60 195.128.217.148 255.255.255.255 UGH 1 0 0 eth0
195.128.217.200 0.0.0.0 255.255.255.252 U 0 0 16 eth1
195.128.217.204 0.0.0.0 255.255.255.252 U 0 0 18 eth2
195.128.217.128 0.0.0.0 255.255.255.224 U 0 0 16 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 17 lo
0.0.0.0 195.128.217.129 0.0.0.0 UG 1 0 358 eth0
Coz je podle me blbe.
Za prvy je me divny, proc se tam zopakovaly zaznamy pro vlastni site s
MASKOU 255.255.255.255!!!
A za druhy, proc jsou tam zaznamy pro site z druhyho routeru taky s
MASKOU 255.255.255.255!!!
Kdyz potom pustim traceroute napr. z routeru 1 do site E, tak to jde
pres def.gw misto primo na router 2.
# traceroute to 195.128.217.205 (195.128.217.205), 30 hops max, 40 byte
packets
1 195.128.217.129 8.25 ms 8.06 ms 7.921 ms
2 195.128.217.205 10.945 ms 9.894 ms 10.026 ms
Nevite, co by mohlo byt za problem? routed poustim bez parametru,
zkousel jsem i -d, -t, ale moc mi to nepomohlo. Pomuze mi nekdo zde?
Podle manovych stranek, by to podle me melo fungovat.
--
Martin Edlman
Fortech s.r.o, Litomysl
Public PGP key: http://edas.visaci.cz/#pgpkeys
Další informace o konferenci Linux