On Apr 23, 9:12*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
> Someone has, for reasons of his own, attempted to assign one IP address
> to one NIC and another IP address to the other NIC (and we'll note in
> passing that ifconfig certainly accepts arguments and displays
> configurations in a way that would encourage the unwary to believe that
> the IP address is assigned to the particular card).
I agree that it's accepted and displayed in a way that encourages
that, but that is in fact not what he has done. In particular, packets
with either address as source or destination may be sent or received
on either interface. As far as the system is concerned, he has
assigned an address to the machine and a network to the interface.
> When ARP requests the MAC address associated with a particular IP
> address, the MAC address for a NIC other than that which ifconfig
> reports as associated with that particular IP address may be reported.
Correct. That IP is in fact reachable through that MAC. It may be, for
all this host knows, the only interface on which that IP is reachable
on that network.
> Why is this behavior a necessary consequence of the weak host model,
Because the address is assigned to the host, not the interface.
> and
> why should it be regarded as a feature rather than simply a fact?
Because it permits the IP address to be reachable even if the
interface isn't. It's part of the host model that makes routing
possible. The idea is that you only have to make the machine reachable
in order to reach it. You don't have to worry about creating
reachability to the "wrong" interface and being unable to reach a
machine.
>*For
> that matter, why is associating the IP address with the host rather than
> the NIC necessary to the weak host model? *Or does "weak host model"
> mean something here other than I'm finding on the web, i.e. that a host
> may respond to IP addresses other than its own?
The definition of a weak host model is that packets addressed to an IP
address assigned to any of the host's interfaces are accepted
regardless of which interface they are received on and packets with
any address assigned to any interface on the machine may be sent from
any interface. This is sometimes described as "associating the IP
address with the host rather than the NIC" because it makes no
difference in any scenario (but interface failure) what interface an
address is assigned on. It's the definition of the weak host model.
http://technet.microsoft.com/en-us/m....cableguy.aspx
DS