ip command in Linux is used to show / manipulate routing, devices, policy routing and tunnels. It is a provided by iproute2 package. ifconfig command which is provided by net-tools package has been around since long and will stay around. ip is more powerful and modern and will eventually replace it.