Iproute2: Difference between revisions

From wikinotes
(Created page with "The Linux <code>ip</code> tool used to manage networking. Created by the linux kernel developers = Documentation = <blockquote> {| class="wikitable" |- | src || https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/ |- |} </blockquote><!-- Documentation -->")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
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 =
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
| <code>man ip</code> || https://man.archlinux.org/man/core/iproute2/ip.8.en
|-
|-
| src || https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/
| src || https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/
Line 10: Line 15:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Locations =
<blockquote>
{| class="wikitable"
|-
| <code>/etc/iproute2/rt_tables</code> || defines routing tables and ids
|-
|}
</blockquote><!-- Locations -->
= Tutorials =
<blockquote>
{| class="wikitable"
|-
| routing intro || https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/
|-
|}
</blockquote><!-- Tutorials -->
= Routing =
<blockquote>
== Tools ==
<blockquote>
<syntaxhighlight lang="bash">
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 ==
<blockquote>
Rules direct traffic to a routing table.
<syntaxhighlight lang="bash">
ip rule
</syntaxhighlight>
</blockquote><!-- Routing Policy -->
== Routing Table ==
<blockquote>
Routing tables
<syntaxhighlight lang="bash">
ip route
</syntaxhighlight>
</blockquote><!-- Routing Table -->
</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