Re: ifconfig bug

2003-11-15 Thread Bruce M Simpson
On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote:
> shouldn't this work?
> 
> # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \
>   ether 00:07:e9:0a:26:52
> ifconfig: ether: bad value
> 
> This is with today's -current, but this may have been around longer - I 
> hadn't tried it before today. Using two commands to set MAC and IP 
> addresses works fine, but it needs to be one command for rc.conf.

This issue is already known about and the behaviour you are seeing is in
accordance with how ifconfig should currently behave.

I suggest patching rc scripts until it can be solved the right way round.

Regards,
BMS
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ifconfig bug

2003-11-15 Thread Lars Eggert
Bruce M Simpson wrote:

On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote:

shouldn't this work?

# ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \
ether 00:07:e9:0a:26:52
ifconfig: ether: bad value
This is with today's -current, but this may have been around longer - I 
hadn't tried it before today. Using two commands to set MAC and IP 
addresses works fine, but it needs to be one command for rc.conf.


This issue is already known about and the behaviour you are seeing is in
accordance with how ifconfig should currently behave.
I suggest patching rc scripts until it can be solved the right way round.
Thanks for the explanations! I'll work around this with a start_if.em0 
script then.

Lars
--
Lars Eggert <[EMAIL PROTECTED]>   USC Information Sciences Institute


smime.p7s
Description: S/MIME Cryptographic Signature


Re: ifconfig bug

2003-11-15 Thread Stefan Farfeleder
On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote:

> shouldn't this work?
> 
> # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \
>   ether 00:07:e9:0a:26:52
> ifconfig: ether: bad value
> 
> This is with today's -current, but this may have been around longer - I 
> hadn't tried it before today. Using two commands to set MAC and IP 
> addresses works fine, but it needs to be one command for rc.conf.

ifconfig accepts only one value for the address family per invocation,
you can't mix "inet" and "ether".

Cheers,
Stefan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ifconfig bug

2003-11-15 Thread Lars Eggert
Hi,

shouldn't this work?

# ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \
ether 00:07:e9:0a:26:52
ifconfig: ether: bad value
This is with today's -current, but this may have been around longer - I 
hadn't tried it before today. Using two commands to set MAC and IP 
addresses works fine, but it needs to be one command for rc.conf.

Thanks,
Lars
--
Lars Eggert <[EMAIL PROTECTED]>   USC Information Sciences Institute


smime.p7s
Description: S/MIME Cryptographic Signature