rather than
ifconfig eth0:1 up
Which is expecting an address to be assigned as part of this command
why don't you use
ifup eth0:1
which will use the address assigned in the interfaces file
Quote:
it-etch:~# ifconfig eth0:1 up
SIOCSIFFLAGS: Cannot assign requested address
it-etch:~# ifup eth0:1
it-etch:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:xx:xx:xx
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
eth0:1 Link encap:Ethernet HWaddr 00:1a:a0:xx:xx:xx
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
|
the command you gave it is incomplete, it's looking for an address, but you never provided one to assign.
Quote:
it-etch:~# ifconfig eth0:1 10.0.0.2 netmask 255.255.255.0 up
it-etch:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:XX:XX:XX
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
eth0:1 Link encap:Ethernet HWaddr 00:1a:a0:XX:XX:XX
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:209
|