История изменений
Исправление RiseOfDeath, (текущая версия) :
Пробовал.
sudo ip addr add 192.168.100.101/24 dev eth0
sudo ip addr add 192.168.100.102/24 dev eth0
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 68:f7:28:3b:ec:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.17.219/24 brd 192.168.17.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.100.101/24 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.100.102/24 scope global secondary eth0
valid_lft forever preferred_lft forever
inet6 fe80::6af7:28ff:fe3b:ec3c/64 scope link
valid_lft forever preferred_lft forever
sudo ip addr del 192.168.100.101/24 dev eth0
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 68:f7:28:3b:ec:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.17.219/24 brd 192.168.17.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::6af7:28ff:fe3b:ec3c/64 scope link
valid_lft forever preferred_lft forever
Исходная версия RiseOfDeath, :
Пробовал.
sudo ip addr add 192.168.100.101/24 dev eth0 sudo ip addr add 192.168.100.102/24 dev eth0
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 68:f7:28:3b:ec:3c brd ff:ff:ff:ff:ff:ff inet 192.168.17.219/24 brd 192.168.17.255 scope global eth0 valid_lft forever preferred_lft forever inet 192.168.100.101/24 scope global eth0 valid_lft forever preferred_lft forever inet 192.168.100.102/24 scope global secondary eth0 valid_lft forever preferred_lft forever inet6 fe80::6af7:28ff:fe3b:ec3c/64 scope link valid_lft forever preferred_lft forever
sudo ip addr del 192.168.100.101/24 dev eth0
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 68:f7:28:3b:ec:3c brd ff:ff:ff:ff:ff:ff inet 192.168.17.219/24 brd 192.168.17.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::6af7:28ff:fe3b:ec3c/64 scope link valid_lft forever preferred_lft forever