Iproute2: Difference between revisions

From wikinotes
No edit summary
 
Line 1: Line 1:
The [[Linux]] <code>ip</code> tool used to manage networking.
The [[Linux]] <code>ip</code> tool used to manage networking.
Created by the linux kernel developers
Created by the linux kernel developers
{{ TODO |
this is fascinating. read all man pages and organize these docs properly }}


= Documentation =
= Documentation =
Line 31: Line 34:
</blockquote><!-- Tutorials -->
</blockquote><!-- Tutorials -->


= Usage =
= Routing =
<blockquote>
<blockquote>
== Connections ==
== Tools ==
<blockquote>
<blockquote>
 
<syntaxhighlight lang="bash">
</blockquote><!-- Connections -->
ip rule  # manage policies that choose the routing-table for a packet
ip route  # manage routing-tables
ip vrf    # associate a routing table to a networking device
ip netns  # create a seprate network stack (devices, rules, routes, firewall)
# .. likely more..
</syntaxhighlight>
</blockquote><!-- Tools -->


== Routing Policy ==
== Routing Policy ==
<blockquote>
<blockquote>
Rules direct traffic to a routing table.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
ip rule
ip rule
Line 47: Line 57:
== Routing Table ==
== Routing Table ==
<blockquote>
<blockquote>
Routing tables
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
ip route
ip route
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Routing Table -->
</blockquote><!-- Routing Table -->
</blockquote><!-- Usage -->
</blockquote><!-- Routin -->

Latest revision as of 15:49, 18 September 2022

The Linux ip tool used to manage networking. Created by the linux kernel developers

TODO:

this is fascinating. read all man pages and organize these docs properly

Documentation

man ip https://man.archlinux.org/man/core/iproute2/ip.8.en
src https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/

Locations

/etc/iproute2/rt_tables defines routing tables and ids

Tutorials

routing intro https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/

Routing

Tools

ip rule   # manage policies that choose the routing-table for a packet
ip route  # manage routing-tables
ip vrf    # associate a routing table to a networking device
ip netns  # create a seprate network stack (devices, rules, routes, firewall)
# .. likely more..

Routing Policy

Rules direct traffic to a routing table.

ip rule

Routing Table

Routing tables

ip route