ip (command)

From wikieduonline
Jump to navigation Jump to search

ip command show / manipulate routing, network devices, interfaces and tunnels.


Policy based routing / Source routing policy:

ip route add from <source>/<mask> table <name> 
ip route add via <router> dev eth4 table <name>

Set an IP address:

  • ip addr add 192.168.0.xx/24 dev eth0

Default gateway:

  • ip route add default via dev eth0
  • ip route add default via dev eth55
Cannot find device "eth55"

Cisco IOS[edit]

Related terms[edit]

See also[edit]