Subject: bin/4934: dhclient ignores interface arguments
To: None <gnats-bugs@gnats.netbsd.org>
From: None <xiamin@scdesantis.ne.mediaone.net>
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
>Last-Modified:
>Originator: Xiamin Raahauge
>Organization:
>Release: NetBSD-1.3
>Environment:
NetBSD-1.3 on Mac68k using dhclient in 1.3
System: NetBSD scdesantis.ne.mediaone.net 1.3 NetBSD 1.3 (GHOST-PRIEST) #12: Sat Jan 24 11:27:41 EST 1998 xiamin@scdesantis.ne.mediaone.net:/usr/src/sys/arch/mac68k/compile/GHOST-PRIEST mac68k
>Description:
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.
>How-To-Repeat:
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.
>Fix:
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
fi
Just change ae0 to whatever you need.
>Audit-Trail:
>Unformatted: