Iproute2: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
(2 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 = | ||
Line 13: | Line 16: | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= | = Locations = | ||
<blockquote> | <blockquote> | ||
== | {| class="wikitable" | ||
|- | |||
| <code>/etc/iproute2/rt_tables</code> || defines routing tables and ids | |||
|- | |||
|} | |||
</blockquote><!-- Locations --> | |||
= Tutorials = | |||
<blockquote> | <blockquote> | ||
{| class="wikitable" | |||
|- | |||
| routing intro || https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/ | |||
|- | |||
|} | |||
</blockquote><!-- Tutorials --> | |||
</blockquote><!-- | = 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 == | == Routing Policy == | ||
<blockquote> | <blockquote> | ||
Rules direct traffic to a routing table. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ip rule | ip rule | ||
Line 29: | 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><!-- | </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