Iproute2: Difference between revisions

From DWIKI
Tony (talk | contribs)
mNo edit summary
Tony (talk | contribs)
Tag: wikieditor
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Documentation==
==Documentation==
*http://lartc.org/
*http://lartc.org/
*[https://linuxhint.com/route-add-command-linux/ ip route add command]
*http://linux-ip.net/html/routing-tables.html
*http://linux-ip.net/html/routing-tables.html
*[https://unix.stackexchange.com/questions/345862/is-it-possible-to-have-multiple-default-gateways-for-outbound-connections Multiple default gateways]
*[https://unix.stackexchange.com/questions/345862/is-it-possible-to-have-multiple-default-gateways-for-outbound-connections Multiple default gateways]


=HOWTO=
==Show routes==
ip r
==Show links status==
ip -d link show
==Bring link up==
ip link set dev eth0 up
[[Category:Networking]]
[[Category:Networking]]
==vlans==
*[https://wiki.archlinux.org/title/VLAN VLAN]
===Create link===
ip link add link eth0 name eth0.100 type vlan id 100
=FAQ=
==Nexthop has invalid gateway==
You can't route through a not directly connected gateway
==Device for nexhop is not up==
just that

Latest revision as of 09:54, 4 May 2026

Documentation

HOWTO

Show routes

ip r
ip -d link show


ip link set dev eth0 up


vlans

ip link add link eth0 name eth0.100 type vlan id 100

FAQ

Nexthop has invalid gateway

You can't route through a not directly connected gateway


Device for nexhop is not up

just that