I'm trying to find the default Gateway of a machine, but I see multiple interfaces.
Also, when I find my IP address from the below website, it gives me a different IP address. I thought the default Gateway and external IP would be the same? Correct me if I'm wrong.
https://www.privateinternetaccess.com/pages/whats-my-ip/
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.2.0.0 192.168.255.9 255.255.255.0 UG 0 0 0 tun0
192.168.33.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.255.1 192.168.255.9 255.255.255.255 UGH 0 0 0 tun0
192.168.255.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun4
192.168.255.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun6
192.168.255.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun5
192.168.255.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun2
192.168.255.9 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.255.13 0.0.0.0 255.255.255.255 UH 0 0 0 tun3
192.168.255.13 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
10.2.0.0 192.168.255.5 255.255.255.0 UG 0 0 0 tun6
192.168.33.0 * 255.255.255.0 U 0 0 0 eth1
192.168.255.1 192.168.255.5 255.255.255.255 UGH 0 0 0 tun6
192.168.255.5 * 255.255.255.255 UH 0 0 0 tun6
192.168.255.5 * 255.255.255.255 UH 0 0 0 tun3
192.168.255.5 * 255.255.255.255 UH 0 0 0 tun2
192.168.255.5 * 255.255.255.255 UH 0 0 0 tun4
192.168.255.9 * 255.255.255.255 UH 0 0 0 tun5
192.168.255.13 * 255.255.255.255 UH 0 0 0 tun0
192.168.255.13 * 255.255.255.255 UH 0 0 0 tun1