network config with two network cards as route to gateway

dsr at tao.merseine.nu dsr at tao.merseine.nu
Tue Jul 13 06:26:00 EDT 2004


On Tue, Jul 13, 2004 at 01:36:37PM +0900, Derek Martin wrote:
> On Tue, Jul 13, 2004 at 12:21:50AM -0400, David Kramer wrote:
> > Derek Martin wrote:
> > 
> > >ISC's dhcpd allows the administrator to assign static IPs based on MAC
> > >address.
> [SNIP] 
> > I've been looking at the man page and can't see how to do that.  Can you 
> > show me an example?
> 
> Well it's been over 2 years since I've had to do it, but it's
> something like this:
> 
> host mybox {
> 	hardware ethernet 00:11:22:33:44:55;
> 	fixed-address 1.2.3.4;
> }

Yes, although I prefer this form where feasible:

host mybox {
       hardware ethernet 00:11:22:33:44:55;
       fixed-address mybox;
}

Note that this way, if you change mybox's IP address in DNS, it
will be changed on the next DHCP release as well...

-dsr-



More information about the Discuss mailing list