4.7 IP alias ?

Daniel C. Sobral dcs at tcoip.com.br
Wed Apr 9 07:35:37 PDT 2003


Jacques Beigbeder wrote:
> I have a host with GENERIC 4.7 kernel:
> 
> # uname -a
> FreeBSD federation 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT ...
> 
> I have an interface like:
> 
> # ifconfig fxp0
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet x.y.z.16 netmask 0xffffff00 broadcast x.y.z.255
>         inet6 fe80::2b0:d0ff:feea:7442%fxp0 prefixlen 64 scopeid 0x1 
>         ether 00:b0:d0:ea:74:42
>         media: Ethernet autoselect (10baseT/UTP)
>         status: active
> 
> The other interface (fxp1) is unused.
> 
> Then I try to set an IP alias, same interface, same network, another
> IP address, the end is .250 instead of .16.
> 
> # ifconfig fxp0 x.y.z.250 netmask 255.255.255.0 broadcast x.y.z.255 alias
> ifconfig: ioctl (SIOCAIFADDR): File exists
> 
> Why does this command fails?
> I'm used to use this on 3.4, 4.5...

Frankly, I doubt you used to do this before. Anyway, what you need to do 
is use /32 netmask (255.255.255.255) for an alias in the same network of 
a previous configured network address.

-- 
Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
TCO
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo at tco.net.br
         Daniel.Sobral at tcoip.com.br
         dcs at tcoip.com.br

Outros:
	dcs at newsguy.com
	dcs at freebsd.org
	capo at notorious.bsdconspiracy.net

Save the bales!



More information about the freebsd-current mailing list