Beginner
Package: iproute2
ip
Show and manage network interfaces, addresses and routes.
Syntax
ip [object] {command}
Description
ip is the modern replacement for ifconfig and route, part of the iproute2 suite. It manages addresses, links, routing tables and more through consistent sub-commands (ip addr, ip link, ip route).
Examples
ip addr show
List all interfaces and their assigned IP addresses
ip route
Show the current routing table
ip link set eth0 up
Bring a network interface up
ip addr add 192.168.1.50/24 dev eth0
Manually assign an IP address to an interface
ifconfig/route are deprecated in favour of ip on all modern distributions.
Applies to
Put it into practice