[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian: SIOCSIFFLAGS: Cannot assign requested address when adding extra ips to an interface



Hello!
I have some problem when I'm trying to add an extra IP to an interface.

My config:
# cat /etc/network/interfaces
auto lo
auto eth0
auto eth0:0
auto eth0:1
iface lo inet loopback
allow-hotplug eth0

iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1

iface eth0:0 inet static
address 192.168.0.100
netmask 255.255.255.0

iface eth0:1 inet static
address 192.168.0.101
netmask 255.255.255.0

#ifconfig eth0:0 up
SIOCSIFFLAGS: Cannot assign requested address

The strange thing is that sometimes works, sometimes not.

if I do this way, it works every time:
#ifconfig eth0:0 192.168.0.100 netmask 255.255.255.0

What cause the SIOCSIFFLAGS error messaeg?
It exists on Debian 5 and Debian 6 as well.

Thanks!

Ezen üzenet és annak bármely csatolt anyaga bizalmas, jogi védelem alatt áll, a nyilvános közléstől védett. Az üzenetet kizárólag a címzett, illetve az általa meghatalmazottak használhatják fel. Ha Ön nem az üzenet címzettje, úgy kérjük, hogy telefonon, vagy e-mail-ben értesítse erről az üzenet küldőjét és törölje az üzenetet, valamint annak összes csatolt mellékletét a rendszeréből. Ha Ön nem az üzenet címzettje, abban az esetben tilos az üzenetet vagy annak bármely csatolt mellékletét lemásolnia, elmentenie, az üzenet tartalmát bárkivel közölnie vagy azzal visszaélnie.

This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please phone or email the sender and delete this message and any attachment of it from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted by this e-mail or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.


Reply to: