[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting an address from DHCP without an interface



martin f krafft <madduck@debian.org> writes:
> 
> eth0:1 is a virtual interface of eth0, but it has the same MAC
> address, so it will get the same IP assigned as eth0 did by the DHCP
> server.

Depending on the DHCP server at the other end, you may be able to use
the ISC DHCP client (with an appropriately modified "/etc/dhclient-script"),
and simply put:

        send dhcp-client-identifier 00:ff:de:ad:be:ef;

in the "/etc/dhclient.conf" file, where 00:ff:de:ad:be:ef is whatever
MAC address you want the DHCP server to use in assigning you your
lease.

A DHCP server is *supposed* to use this parameter to identify the
client and only fall back to the MAC address (as supplied in the DHCP
packet's "chaddr" field) if no client identifier is provided by the
client.

-- 
Kevin <buhr@telus.net>



Reply to: