Subject: bin/4934: dhclient ignores interface arguments
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/04/1998 13:20:46
>Number:         4934
>Category:       bin
>Synopsis:       dhclient ignores interface arguments
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb  4 10:35:01 1998
>Originator:     Xiamin Raahauge
>Release:        NetBSD-1.3
	NetBSD-1.3 on Mac68k using dhclient in 1.3
System: NetBSD 1.3 NetBSD 1.3 (GHOST-PRIEST) #12: Sat Jan 24 11:27:41 EST 1998 mac68k

	The documentation for dhclient says that it can be given the
interface(s) to configure on the command line, but even when given such
an argument it tries to configure every availible interface, undoing
previous configuration on those interfaces.

	If you have multiple interfaces (I have sn0 and ae0) try to give
dhclient an interface argument like this,
dhclient sn0
dhclient will then try to configure both ae0 and sn0, ruining ae0's
configuration since there is no dhcp server on it.
	The simplest fix is to just make dhclient ignore interfaces you
don't want to configure with it. Adding this to the top of
/etc/dhclient-script will do so for ae0. (Making sn0 the only interface
dhclient will touch).

#Hack to avoid working with ae0.
if [ $interface = "ae0" ]; then
  exit 0

Just change ae0 to whatever you need.