With the new toolkit, it is as easy as with the old to add new ip addresses:
ip addr add 192.168.1.1/24 dev eth0
When looking with ip addr show
again, you see the second ip address assigned to the interface:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.0.100/24 brd 192.168.0.255 scope global eth0
inet 192.168.1.1/24 scope global eth0
inet6 fe80::223:54ff:fe45:f307/64 scope link
valid_lft forever preferred_lft forever
Remove that ip address with:
ip addr del 192.168.1.1/24 dev eth0
The iproute2 suite:
The iproute2 suite is the communication suite for interprocess communication beween the kernel and the user space via the netlink protocol. It should replace the whole standard network tools. Here is what they replace:
ifconfig
--> ip addr
and ip link
route
--> ip route
arp
--> ip neigh
iptunnel
--> ip tunnel
ipmaddr
--> ip maddr
netstat
--> ss