On Sat, 19 Apr 2008, in the Usenet newsgroup comp.os.linux.networking, in
article <fudfsh$r5q$(E-Mail Removed)>, Piotrek G. wrote:
>Moe Trin wrote:
>Actually there is something wrong - a lack of:
>iptables -A OUTPUT -p icmp --icmp-type redirect -j DROP
>It solved my problem with redirections.
>
>What's strange, using
>echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
>doesn't help - redirects are sent all the time... Why?
Can't say, as I've never had the problem, and never looked into
the algorithms.
>Some kernel misconfiguration? It's PLD linux with distribution kernel
>2.6.11-6.
Not using PLD, but that is an older kernel.
-rw-r--r-- 1 admin admin 46583827 Mar 26 2005 linux-2.6.11.6.tar.gz
The most current kernels are 2.6.25 (Apr 17 2008) and 2.6.24.5 (Apr 19
2008). There have been a LOT of changes since 2.6.11.
>> Separate them physically. The redirects occur when the router sees
>> that it's going to be sending the packet out of the same NIC it
>> received the original from - and it thinks "Why are these idiots
>> bothering me when they are on the same wire and can talk directly?".
>It's reasonable
Not to the kernel - It doesn't want to work any harder than you do ;-)
>But I don't understand how it (IP addressing) works in spite of two
>different netmasks. They should communicate through gateway.
Assuming they can't hear each other, yes.
> It says - oops, host you're trying to connect is in the
> different net - use your default gateway which is in the
> same subnet.
The redirect overrides this behavior.
>Maybe it's a lame question but... Why I can't wire two subnets
>together? Isn't subneting invented to separate two or more networks
>connected together?
No. Lessee... the old (RFC) documents are
0917 Internet subnets. J.C. Mogul. Oct-01-1984.
0925 Multi-LAN address resolution. J. Postel. Oct-01-1984.
0932 Subnetwork addressing scheme. D.D. Clark. Jan-01-1985
0936 Another Internet subnet addressing scheme. M.J. Karels. Feb-01-1985
0940 Toward an Internet standard scheme for subnetting. Gateway
Algorithms and Data Structures Task Force. Apr-01-1985.
and these were beaten together in many meetings and mails, and the
result was RFC0950
0950 Internet Standard Subnetting Procedure. J.C. Mogul, J. Postel.
Aug-01-1985. (Format: TXT=37985 bytes) (Updates RFC0792) (Also
STD0005) (Status: STANDARD)
and you want to read section 1 of that document. BRIEFLY, the reasons
for subnetting was hardware (bandwidth - only so many hosts could
"fit" on one wire and be able to talk), (physical - the length of the
wire was limited even with repeaters, and some facilities are more
than several kilometers in "length") and security or privacy (recall
that Ethernet was originally coax, and all hosts on the wire could
"hear" all others). These problems still exist even when using
switches (broadcasts are heard on all ports). Where I work, we
originally set up our subnets with a /22 (255.255.252.0) mask. As we
got more hosts on the wire (and we did start with 10Base5 Thicknet),
we found that traffic was an issue, and added Etherswitches to the
coax to break up the traffic segment so that no more than 100 hosts
were on the same coax. With twisted pair (10BaseT, 100BaseT,
1000BaseT) or fiber, your next limit becomes the bandwidth of the
switch you use.
Old guy