Difference between revisions of "Ip (command)"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* <code>[[ip route show]]</code>. See also: <code>[[netstat]] -rnv</code>
 
* <code>[[ip route show]]</code>. See also: <code>[[netstat]] -rnv</code>
 
* <code>[[ip route add]]</code>
 
* <code>[[ip route add]]</code>
* <code>ip route del default</code>
+
* <code>[[ip route]] del default</code>
 +
 
 +
 
 
* <code>[[ip link show]]</code> or <code>[[ip link ls]]</code>
 
* <code>[[ip link show]]</code> or <code>[[ip link ls]]</code>
 
* <code>[[ip link set]] dev eth0 [[mtu]] 9000</code> ([[Jumbo frames]])
 
* <code>[[ip link set]] dev eth0 [[mtu]] 9000</code> ([[Jumbo frames]])
 +
* <code>[[ip link add]]</code>
  
 
[[Policy based routing]] / Source routing policy:
 
[[Policy based routing]] / Source routing policy:

Revision as of 09:17, 16 February 2021

This article is a Draft. Help us to complete it.


Linux


Policy based routing / Source routing policy:

ip route add from <source>/<mask> table <name> 
ip route add 1.2.3.4/24 via <router> dev eth4 table <name>
ip link add wg0 type wireguard


ip link set eth0 up


Set an IP address:

  • ip addr add 192.168.0.xx/24 dev eth0

Default gateway:

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

Cisco IOS

Related commands

See also

Advertising: