Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 1997 12:00:16 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        jmoreno@host1.sumocg.es
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: IFCONFIG & ALIAS
Message-ID:  <341D0730.131D@barcode.co.il>
References:  <341CF03D.5A2A@sumocg.es>

next in thread | previous in thread | raw e-mail | index | archive | help
Jacinto Moreno Parra wrote:
> 
> I have a net and i want to asign several IP addresses into the same IP
> range, who i can do that ?.
> 
> I write this, but the ifconfig command return a error.
> 
> Ejem:
> 
> # ifconfig ep0 inet 195.76.200.2
> # ifconfig ep0 inet 195.76.200.3 alias
> ifconfig: error( SIOCAIFADDR ) File exist.

You didn't mention what version of FreeBSD you're using, but I think
this message is benign. What should make things better is that you give
the alias ifconfig wityh a netmask of 255.255.255.255, i.e.:

ifconfig ep0 inet 195.76.200.3 netmask 255.255.255.255 alias

This will also set up routing for the new alias automatically (which is
the reason why your alias doesn't work in the current config).

> 
> ----------------------
> 
> # ifconfig ep0 inet 195.76.200.2
> # ifconfig ep0 inet alias 195.76.200.3
> ifconfig: error( SIOCAIFADDR ) File exist.
> 
> when i execute "ifconfig ep0", the system list the alias IP address
> but this address not respond.
> 
> # ifconfig ep0
>         .......
>         inet 195.76.200.2 netmask 0xffffff00 broadcast 195.76.200.255
>         inet 195.76.200.3 netmask 0xffffff00 broadcast 195.76.200.255
> 
> # ping 195.76.200.3
> PING 195.76.200.3: (195.76.200.3): 56 data bytes
> .
> .
> 1 packets transmitted, 0 packets received, 100% packet loss.

You probably don't have a routing table entry for the alias. See above
for the fix. There's also some info on it in the web site (I don't
remember the exact place, but I think one of the tutorials addresses
this issue).

> 
> Best Regards
> 
> Jacinto Moreno Parra
Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?341D0730.131D>