[QUOTE=UZumdick;4598]Do you mean without any virtual ip configuration ?
In my config
ip addr add 192.168.1.13/24 dev eth1
does nothing - ifconfig:
[…]
eth1 Link encap:Ethernet HWaddr 5C:F3:FC:E5:F0:22
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:40 Memory:98000000-98012800
[/QUOTE]
Yes it does something, but you need to look at it using ‘ip addr’.
ifconfig is the old way of doing things.
Nowadays you no longer need an alias (ethx:n) for a secondary IP (what you call virtual, I guess) to work.
As I said, not using ‘ifconfig’, but you see the secondary using ‘ip addr’.
[QUOTE]
ip addr del 192.168.1.13/24 dev eth1
Deletes also the whole virtual interface, like ifconfig does.
-Udo[/QUOTE]
Well, technically you do the following, so there is no real up/down for the secondary. At least I wouldn’t know spontaneously how to up/down it (ie. remember it while attributing some state to it).
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:ac:00:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.98.103/24 brd 192.168.98.255 scope global eth0
# ip addr add 192.168.98.69/24 dev eth0
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:ac:00:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.98.103/24 brd 192.168.98.255 scope global eth0
inet 192.168.98.69/24 scope global secondary eth0
# ip addr del 192.168.98.69/24 dev eth0
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:ac:00:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.98.103/24 brd 192.168.98.255 scope global eth0
You don’t see anything of the secondary interfaces in ifconfig. Anyway, why do you want/need to?