Ethernet routing to a second subnet from a wintel machine

This is the only way on windows and linux systems, yes. Why crossing subnets on a wire is "wrong" is something you will have to explain.

Yet another thing you have to explain (what makes you think I misunderstood something).

Dimiter

Reply to
Didi
Loading thread data ...

That is not what Robert wrote. Robert wrote that routing based on ARP tables is wrong (and probably more generally that assuming that implementations will route based on ARP tables is wrong).

ARP is an address resolution mechanism, _not_ a routing mechanism. The fact that is happens to work like one on a single (or some) implementations does not mean that it is.

Most implementations consult ARP only after routing. This makes sense for reasons that have been explained at length. Adding static ARP entries to all machines on a network segment instead of just assigning them addresses in the same network is entirely the wrong way to go about things. Why are you using IP at all in that case? You may as well just have your own protocol inside Ethernet.

At this point, I think you're just trolling and flailing madly.

- Philip

--
Philip Paeps                                    Please don't email any replies
philip@paeps.cx                                     I follow the newsgroup.
Reply to
Philip Paeps

I explained it well enough. I do not hope that you will get it, I posted for those who might read the thread to be able to see the practical part and distinguish arguments from religious babble.

Dimiter

------------------------------------------------------ Dimiter Popoff Transgalactic Instruments

formatting link

------------------------------------------------------

formatting link

Reply to
Didi

IP is routed on longest-matching-prefix-first, and local propagation comes second to that. So much is clear both from rfc791 (although not said explicitly) and from the rfc119x series of hosts requrements, where it is stated clearly; likewise with all the followups.

Prefixes can be attached to interfaces, or reside in a routing table.

So, if I assign [1:2:3:4::1/64] to an interface, the address [1:2:3:4:5::1] is assumed to be on that subnet, and you can use arp to get to it.

[1:2:4:5:6::1] is not on that subnet, no matter how many arp entries you have for it, a conformant IP application will behave by consulting prefixes first.

And, I use the current version of IP. The old one, version 4, went obsolete last tuesday. Obslolete, but still widely deployed.

-- mrr

Reply to
Morten Reistad

No you cannot. Arp is an IPv4 thingy, IPV6 uses multicast instead. But otherwise your explanation is correct if we substitute either IPv4 for IPv6, or multicast for arp.

HTH, M4

Reply to
Martijn Lievaart

That isn't quite right. IPv6 uses NDP instead of ARP, but it does pretty much the same thing.

NDP uses multicast instead of the broadcast used by ARP. The latter was a mistake, and it is nice to see it fixed. Well, by now IP is the dominant protocol, but you can run other protocols on ethernet, and it isn't nice for all the non-IP hosts to have to process and discard all the ARP packets.

-- glen

Reply to
glen herrmannsfeldt

Thanks for the correction.

M4

Reply to
Martijn Lievaart

OK, NDP. NDP is what ARP should have been, but for the need to support what was legacy systems by 1983.

Anyway, doing layer 2 mapping before routing is not standards conformant IP behaviour, matter what OS or IP version you are using.

-- mrr

Reply to
Morten Reistad

In comp.protocols.tcp-ip Morten Reistad wrote: (snip)

Not having written an actual IP stack, I would think using the ARP cache to speed up routing wouldn't be non-conforming.

If there is no ARP entry, then you have to go through the usual route algorithm, and the ARP cache better be kept up to date when routes change.

-- glen

Reply to
glen herrmannsfeldt

Yes, it would. The problem is that you can have many arp caches. Routing protocols can move IPs around without telling ARP.

The normal way is to make an ip cache, where ip addresses have interface, next-hop, tag and link address attached. These get invalidated as part of IP, not as a link layer extension.

IPv6 does this a lot better with NDP.

No, use a proper IP cache, with invalidation.

-- mrr

Reply to
Morten Reistad

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.