On Sat, Jun 11, 2005 at 02:12:55AM -0400, Michael Erdely wrote:
[...]
> $ sudo ifconfig xl0 inet alias 192.168.25.49 \
>     netmask 255.255.255.255 broadcast 192.168.25.49
[...]
> $ sudo ifconfig xl0 inet -alias 192.168.25.49 \
>     netmask 255.255.255.255 broadcast 192.168.25.49
[...]
> 
> Then, network connectivity is restored.  Generally, I remove aliases
> with just "ifconfig xl0 inet -alias 192.168.25.49", but I think it's
> reasonable for an admin to try the example above.
> 
> So... is this expected behavior?

ifconfig does strange things if it's used the wrong way.
And that's what most people seem to do...

>From ifconfig(8):

     ifconfig [interface] [address_family] [address [dest_address]]
              [parameters]

"alias" is a parameter. Therefore in your example it should be

$ sudo ifconfig xl0 inet 192.168.25.49 alias \
    netmask 255.255.255.255 broadcast 192.168.25.49

and

$ sudo ifconfig xl0 inet 192.168.25.49 -alias \
    netmask 255.255.255.255 broadcast 192.168.25.49


    Marco

Reply via email to