You are not logged in.
Hi all, just wondering how to interpret my routing table - could not find the answer to date, so hope to post this as concisely as possible for future reference to others.
My regular routing table looks like this:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.254 0.0.0.0 UG 100 0 0 enp9s0
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enp9s0
After opening a VPN connection using NetworkManager / OpenVPN in Gnome, my routing table looks like this:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 84.247.62.129 0.0.0.0 UG 50 0 0 tap0
0.0.0.0 192.168.2.254 0.0.0.0 UG 100 0 0 enp9s0
84.247.62.128 0.0.0.0 255.255.255.224 U 0 0 0 tap0
84.247.62.128 0.0.0.0 255.255.255.224 U 50 0 0 tap0
85.17.136.249 192.168.2.254 255.255.255.255 UGH 100 0 0 enp9s0
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enp9s0
So how is actually my traffic being routed through the VPN (tap0) instead of the regular enp9s0 interface with both interfaces pointing to my gateway?
Offline
with both interfaces pointing to my gateway?
Because of the lower metric taking priority.
Offline