Skip to content

Network

Network

Routes

Show Routes:

>>> ip route
default via 192.168.88.1 dev enp0s25 proto dhcp metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
172.22.0.0/16 dev br-36f401dcf21c proto kernel scope link src 172.22.0.1 linkdown
172.24.24.0/24 dev br-16744d6c8d43 proto kernel scope link src 172.24.24.1
192.168.88.0/24 dev enp0s25 proto kernel scope link src 192.168.88.253 metric 100
192.168.128.0/20 dev br-f898f6f3d0df proto kernel scope link src 192.168.128.1

Show Route Tables:

>>> cat /etc/iproute2/rt_tables
#
# reserved values
#
255     local
254     main
253     default
0       unspec
#
# local
#
#1      inr.ruhep

Show Routes for Specific Table:

>>> route list table 255
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
broadcast 172.17.0.0 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
local 172.17.0.1 dev docker0 proto kernel scope host src 172.17.0.1
broadcast 172.17.255.255 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
broadcast 172.22.0.0 dev br-36f401dcf21c proto kernel scope link src 172.22.0.1 linkdown
local 172.22.0.1 dev br-36f401dcf21c proto kernel scope host src 172.22.0.1
broadcast 172.22.255.255 dev br-36f401dcf21c proto kernel scope link src 172.22.0.1 linkdown
broadcast 172.24.24.0 dev br-16744d6c8d43 proto kernel scope link src 172.24.24.1
local 172.24.24.1 dev br-16744d6c8d43 proto kernel scope host src 172.24.24.1
broadcast 172.24.24.255 dev br-16744d6c8d43 proto kernel scope link src 172.24.24.1
broadcast 192.168.88.0 dev enp0s25 proto kernel scope link src 192.168.88.253
local 192.168.88.253 dev enp0s25 proto kernel scope host src 192.168.88.253
broadcast 192.168.88.255 dev enp0s25 proto kernel scope link src 192.168.88.253
broadcast 192.168.128.0 dev br-f898f6f3d0df proto kernel scope link src 192.168.128.1
local 192.168.128.1 dev br-f898f6f3d0df proto kernel scope host src 192.168.128.1
broadcast 192.168.143.255 dev br-f898f6f3d0df proto kernel scope link src 192.168.128.1

Routing Priority:

>>> ip rule
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default