On 2015-05-19, Otto Moerbeek <[email protected]> wrote:
> On Tue, May 19, 2015 at 03:29:20PM +0200, Heiko Zimmermann wrote:
>
>> Hello OpenBSD Team,
>> 
>> I try to add an ipv4 alias 176.9.157.yyy to re0
>> (current from today).
>> 
>> ifconfig re0 alias 176.9.157.yyy/27
>> --> ifconfig: SIOCAIFADDR: File exists
>> 
>> When I try: ifconfig re0 176.9.157.yyy 255.255.255.224
>> --> no output

That syntax is not doing what you expect. ifconfig syntax isn't the
same as hostname.if syntax.

>> But I don't see the alias ip with ifconfig -a
>> 
>> Output is:
>> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>         lladdr xx:xx:x:xx:xx:xx
>>         priority: 0
>>         groups: egress
>>         media: Ethernet autoselect (1000baseT full-duplex)
>>         status: active
>>         inet 176.9.175.xxx netmask 0xffffffe0 broadcast 176.9.157.zzz
>> 
>> 
>> ping 176.9.157.yyy --> ping: unknown host: 176.9.157.9.yyy
>> ping 176.9.157.xxx --> ok
>> 
>> What I'm doing wrong?
>> 
>> Thank you in advance.
>> Heiko
>
> ifconfig -a != ifconfig -A != ifconfig re0 
>
> Also, an alias in the same net should get the mask 255.255.255.255
>
>       -Otto
>
>

And there is something strange with the addressea; mixture of 157 and 175.

Reply via email to