[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: routing - dlaczego nie dziala?



Witaj voder,

W Twoim liście datowanym 12 lipca 2001 (14:36:55) można przeczytać:

vap> On Thu, 12 Jul 2001, seeb27 wrote:

>> 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 :
--- ciach ---

Witaj voder,

W Twoim liście datowanym 12 lipca 2001 (14:36:55) można przeczytać:

vap> On Thu, 12 Jul 2001, seeb27 wrote:

>> 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 :
--- ciach ---
seebnet:/# cat /proc/sys/net/ipv4/ip_forward
1
seebnet:/# 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
seebnet:/# ifconfig -a
brg0      Link encap:Ethernet  HWaddr FE:FD:0E:00:60:D6
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:497 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:29868 (29.1 Kb)  TX bytes:3008 (2.9 Kb)
          Interrupt:3 Base address:0xde00

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
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6757 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:480 txqueuelen:100
          RX bytes:608656 (594.3 Kb)  TX bytes:497537 (485.8 Kb)
          Interrupt:10 Base address:0xdc00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:88670 (86.5 Kb)  TX bytes:88670 (86.5 Kb)

seebnet:/#
to nadal nie dziala :(
po glebszym przemysleniu zdaje sie ze cos tu nie gra

seebnet:/# 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

czy przypadkiem dla sieci 212.244.25.64 gatewayem jest 212.244.25.97 a
dla jest 212.244.25.66 a dopiero dla wszytkich innych
(nie pasujacych do tego) 212.244.25.65?
mialem w redhata i przyjmowal formulke :
route add -net 212.244.25.96 gw 212.244.25.66 netmask 255.255.255.224 ethX
(X - dowolny dzialajac interfejs) a jakos debian tego nie lubi :(
w ten sposob rutowalem prywatna klase c (192.168.0.0) podzielona na
pol i w kompie mialem 3 karty sieciowe (eth0, [eth1,eth2-prywatna])
co z tym fantem zrobic ?


-- 
Pozdrowienia,
 seeb27                            mailto:seeb27@interkam.pl



Reply to: