Re: static IP via DHCP and multiple NICs

Jon Hamilton <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Dan Langille <[email protected]>, said on Sat Mar 22, 2003 [12:22:05 PM]:
} On 22 Mar 2003 at 11:01, Jon Hamilton wrote:
} 
} > Dan Langille <[email protected]>, said on Sat Mar 22, 2003 [11:50:29 AM]:

} > } What I'd like to do is allow the above box to use any of four NICs, 
} > } yet always get the same fixed address.
} > } 
} > } Perhaps I should just assign one wireless NIC and one wired NIC to 
} > } each box and assume they are always with that box.
} > 
} > No need; this can be done fairly easily.  Configure each of your laptops
} > to send an identifier in the DHCP request.  If you're using dhclient, you 
} > can place in /etc/dhclient.conf:
} > 
} > send dhcp-client-identifier "laptop1";
} > 
} > Then on the DHCP server, you can use a declaration like:
} > 
} > group {
} >   use-host-decl-names on;
} > 
} >   host laptop1.yourdomain.net {
} >     option dhcp-client-identifier "laptop1";
} >     option host-name "laptop1";
} >     fixed-address laptop1.yourdomain.net;
} >   }
} > }
} 
} Is there a way to restrict MAC addresses while retaining the above 
} goals?

One would think adding a:
hardware ethernet <mac address>;
line in the host stanza on the server would suffice.  Whether you can use
multiple such lines (4 in your case) in a single entry, or whether you'd 
need to create 4 host entries with different hardware lines isn't clear to
me from reading the man page.  Something to play with, anyway.

-- 

   Jon Hamilton 
   [email protected]

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.