routing - dlaczego nie dziala?
Witaj Polska Lista Debiana!
mam 64 ip i chcialem je podzielic na dwie czesci (podsieci)
eth0 ma ip z koncowka 97 eth1 ma 66, glowny router ma 65 i podzielilem to tak :
eth0 Link encap:Ethernet HWaddr 00:02:44:31:33:5C
inet addr:212.244.25.97 Bcast:212.244.25.127 Mask:255.255.255.224
eth1 Link encap:Ethernet HWaddr 00:D0:09:2B:73:1F
inet addr:212.244.25.66 Bcast:212.244.25.95 Mask:255.255.255.224
host:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
212.244.25.64 0.0.0.0 255.255.255.224 U 0 0 0 eth1
212.244.25.96 0.0.0.0 255.255.255.224 U 0 0 0 eth0
0.0.0.0 212.244.25.65 0.0.0.0 UG 0 0 0 eth1
host:~#
probowalem tez tak:
eth0 Link encap:Ethernet HWaddr 00:02:44:31:33:5C
inet addr:212.244.25.98 Bcast:212.244.25.127 Mask:255.255.255.224
eth1 Link encap:Ethernet HWaddr 00:D0:09:2B:73:1F
inet addr:212.244.25.66 Bcast:212.244.25.95 Mask:255.255.255.224
eth1:0 Link encap:Ethernet HWaddr 00:D0:09:2B:73:1F
inet addr:212.244.25.97 Bcast:212.244.25.127 Mask:255.255.255.224
host:~#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
212.244.25.64 0.0.0.0 255.255.255.224 U 0 0 0 eth1
212.244.25.96 0.0.0.0 255.255.255.224 U 0 0 0 eth0
212.244.25.96 0.0.0.0 255.255.255.224 U 0 0 0 eth1
0.0.0.0 212.244.25.65 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 212.244.25.65 0.0.0.0 UG 0 0 0 eth1
mojhost:~#
bez wzgledu na bramke hosta np x.x.x.100 czy ustawiona na 98 czy 97 to
widze najdalej x.x.x.66 o co chodzi ?
moze jakies route add -net 212.244.25.96 netmask 255.255.255.224 gw 212.244.25.66 eth1 ? - jeszcze
tego nie probowalem tylko sobie gdybam :) poprzegladam jeszcze man'a
poraz n'ty moze wpadne na trop jak to zrobic
--
Pozdrowienia,
seeb27 mailto:seeb27@interkam.pl
Reply to: