Re: 7.0 - ifconfig create is not working as expected?

On Sat, Mar 29, 2008 at 03:43:44PM -0500, Brooks Davis wrote:

I was using following command in FreeBSD 6.2:
# ifconfig lo1 create inet netmask
In FreeBSD 7.0 I got an error:
# ifconfig lo1 create inet netmask
ifconfig: inet: bad value
But it is working splitted in to two commands:
# ifconfig lo1 create
# ifconfig lo1 inet netmask
Is this expected behavior or should I file a PR?
This expected. There's some argument it's wrong, but filing a PR is
unlikely to cause it to change any time soon.

Why? The same with creating gif-tunnel, now I need to invoke ifconfig
twice, once for 'create' and once for other tunnel parameters,
whereas for RELENG_6 this works: 'ifconfig gif0 create tunnel'

This breaks existing setups/scripts. This is POLA issue.
Why was it broken?

Eugene Grosbein
freebsd-net@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: [UPDATED:] Re: confusion on /sbin/ifconfig on F16
    ... laptop which has an entry for wireless which is dhcp (I cannot assume wireless ... use ip' in man page of ifconfig. ... Interface naming convention has been undergoing changes since, maybe, F14. ... Maybe if you posted the output of commands on your system and asked questions based ...
  • Re: FC4 internet connection
    ... can you post the output to the following commands? ... service network status ...
  • Re: Connecting to internet through ethernet card..
    ... I have ethernet card for inet connection. ... here is results of commands, be shure - hidden IP's pointed correctly. ... I've used ifconfig command to assign certain IPs and netmasks to ... I've used route to add the default gateway. ...
  • Re: TCPIP : Lost default route
    ... I have also seen ifconfig commands remove the default route. ... $SYSCONFIG -r inet tcp_recvspace=129904 ...
  • Re: Trouble with multiple IPs on one interface
    ... Never mind question number 2. ... ifconfig and realized that I was trying to see something that would ... >1) Is there a difference between the following two commands (and I ... >show all IPs that are currently assigned to an interface? ...