LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Richard Sharpe <sharpe@ns.aus.com>
To : linuxsa@linuxsa.org.au
Date: Thu, 01 Apr 1999 22:02:02 +0900
MAC addresses and DHCP/BOOTP
Hi,
At 05:32 PM 4/1/99 +0930, Robert Wuttke <robert.wuttke@disc.com.au> wrote:
>Could somebody then tell me how DHCP or BOOTP can work if the mac address of
>a NIC can change.
DREKnet used to change the MAC address to an address based on the Phase IV
node number.
Thus you could not start IP until after DREKnet, or ARP would fail.
However, once DREKnet is running, you could easily do a BOOTP or DHCP
request, you simply have to have the correct MAC address in your BOOTP tables.
> The IP address is bound to the TCP/IP stack of the
>computer, not the MAC address,
Can't agree with this. If a system has multiple Ethernet interfaces, like
the one sitting next to me, it has multiple IP addresses. The IP address
is bound to the interface, which in the case of Ethernet, really means that
there is a 1-1 relationship between IP and MAC, which is what ARP is about.
> this is used at the Data Link Layer (on the
>NIC itself). DHCP and BOOTP require that the MAC address be sent to them via
>a broadcast packet, which returns a packet via to the broadcasting MAC
>address for configuring the TCP/IP stack. Woe behold a network admin that
>has a person who decides, "Hmm let's change the MAC address on this card"
>and they use the MAC address of another machine currently existing on this
>network, where does the DHCP/BOOTP response go to ? Does it configure both
>machines to the same address, name, etc ??
No. You simply cannot have two cards with the same MAC address. It will not
work. You also cannot have two machines with the same IP address. Strange
things can happen if you do.
>This makes no sense. The MAC is supposedly unique across the planet, exactly
>for this purpose.
Umm, it only needs to be locally unique, since MAC addresses do not,
generally, get beyond the router.
Thus, it is perfectly workable to have two cards on opposite sides of a
router having the same MAC address.
However, anyone doing that is asking for grief, as, when they move cards
around, they are likely to end up with two cards on the same network with
the same MAC address.
> Image two machines on the internet with the same MAC
>address. Note that packets travelling across a network are based on the MAC
>address. Remember an IP address identifies a machine not a NIC, to prove
>this 127.0.0.1 is loopback, there is no physical NIC, the data link layer
>reads the MAC address from the packet, this is unwrapped for the ip address
>and then this is unwrapped for the protocol port that the packet is bound
>for. The IP address is convenient for us to read, ie 32 bit, the mac address
>is significantly bigger (can remember exactly, I think it's 48 bits).
>
>I have never heard of an application talking directly to the network using
>the MAC address, come-on even IP (generally considered the lowest layer you
>can program on) uses IP addresses (hmmm, hence the name I suppose). The only
>thing that I know of that uses MAC addresses is DHCP and BOOTP.
Well, there are other protocols out there. NetBEUI, which uses NetBIOS
names, talks to MAC addresses. Although, of course, a case could be made
that NetBIOS names are kind of like IP addresses. Hmmm, of course, they
are really a flat names space, unlike DNS, and there is no intermediate IP
stage, but that is because NetBEUI was not designed for internetworks.
>Rob.
Regards
-------
Richard Sharpe, sharpe@ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L,
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080,
Samba (Team member), Linux, Apache, Digital UNIX, AIX, C, ...
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page