My routing table looks as below:
[root@master ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.31.16.1 0.0.0.0 UG 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.31.16.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
192.168.189.64 172.31.23.103 255.255.255.192 UG 0 0 0 tunl0
192.168.219.64 0.0.0.0 255.255.255.192 U 0 0 0 *
192.168.235.128 172.31.21.191 255.255.255.192 UG 0 0 0 tunl0
[root@master ~]#
[root@master ~]# kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
master Ready control-plane 40h v1.25.0 172.31.18.250 <none> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8
worker1 Ready <none> 40h v1.25.0 172.31.21.191 <none> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8
worker2 Ready <none> 40h v1.25.0 172.31.23.103 <none> CentOS Linux 7 (Core) 3.10.0-1160.76.1.el7.x86_64 containerd://1.6.8
[root@master ~]#
I need help to understand output of the below command:
[root@master ~]# ip route get 192.168.235.131
192.168.235.131 via 172.31.21.191 dev tunl0 src 192.168.219.64
cache
[root@master ~]#
Here, I understand that in order to go to the pod with ip 192.168.235.131
, the next hop is 172.31.21.191
based upon the routing table.
However, what do we mean by dev tunl0 src 192.168.219.64?