Fuzzy Fox wrote:
>
> SIOCADDRT is the "Socket I/O Control ADD RouTe" command to the kernel.
> It is failing for some reason.
>
> > I recomplied the kernel and included in all the network options.
>
> The 2.1 kernels handle routes slightly differently. In particular,
> there is no longer any need to set a route on a particular interface.
> Whereas in 2.0, you would first need to "ifconfig" the interface, then
> "route add -net" the same address in order to route packets through it,
> in 2.1, the second "route" step is now performed internally by the
> kernel, and generates an error like the above, if you attempt to do it
> yourself.
That was exactly my problem with those error messages.
Now, I took out all 'route add -net' from my /etc/init.d/network file. I
don't get
the error message anymore. However, my linux box still doesn't work as
a router. So, I downgraded the kernel to 2.1.125.
Here is a simple diagram of my network:
Cable Modem -----eth1 Linux Box A eth0----- eth1Linux Box B eth0------ NT
WORKS
Linux Box A kernel 2.0.36 ipfwadm rules (no trouble)
Linux Box B kernel 2.1.125 doesn't allow packets through from NT WORKS to
Internet
That's my route table now on Linux Box B:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
lana:~# ifconfig
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
eth0 Link encap:Ethernet HWaddr 00:80:C8:3A:5D:BC
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:148 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:11 Base address:0x6100
eth1 Link encap:Ethernet HWaddr 00:40:05:36:38:A3
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:215 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:10 Base address:0x6200
Any idea what else could be missing?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]