Subject: bin/12845: dhcp should not use -alias option of ifconfig
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jam@pobox.com>
List: netbsd-bugs
Date: 05/05/2001 18:05:13
>Number:         12845
>Category:       bin
>Synopsis:       dhcp use -alias option of ifconfig, but the option is not available for all network cards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 05 16:05:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kazushi (Jam) Marukawa
>Release:        May 5, 2001
>Organization:
none
>Environment:
	Celeron 366MHz, NetBSD-current
System: NetBSD sou.nerv.org 1.5V NetBSD 1.5V (sou) #2: Fri May 4 22:34:08 CDT 2001 jam@sou.nerv.org:/mnt/src/sys/arch/i386/compile/sou i386
Architecture: i386
Machine: i386
>Description:
    Recent DHCP client configurating script, "dhclient-script", uses
"ifconfig ... -alias ip-address" to give IP address, but this -alias
option is not available for all network devices.
    For example, I tried to use my old 3COM 905 ether card ("ep0"),
but it dhclient-script shows following error and it cannot lease
any IP address from DHCP server.  The line starts with + is taken
by adding "set -xv" line at the beginning of the script.

  + ifconfig ep0 inet -alias 24.17.3.181
  ifconfig: SIOCDIFADDR: Can't assign requested address

>How-To-Repeat:
    Use any of ethernet card which doesn't support -alias option.
>Fix:
    Stop using -alias option.
>Release-Note:
>Audit-Trail:
>Unformatted: