User Tools

Site Tools


This is an old revision of the document!


ip command

ip ro ip route show ip route ls

default via dev wlan0  proto static dev wlan0  proto kernel  scope link  src  metric 9 dev eth0  proto kernel  scope link  src  metric 1 dev vboxnet0  proto kernel  scope link  src 

ip route add default via dev eth0
Add a default gateway (for all IP addresses on the system) that can be reached on eth0

ip link set up ip link set down
change the state of the device to UP or DOWN

ip address show
shows the IP addresses assigned to interfaces

ip addr add dev eth0
add new protocol address

ip addr flush dev eth0 -statistics
release all the IP addresses of the device eth0

unix/networking.1418690116.txt.gz · Last modified: 2014/12/16 01:35 by bajeluk