Priyanka Sharma:
Hi everyone! So in this question, how do we determine that for controlplane node “eth0” in the active interface and not “eth1"? and hence the internal IP of node is “10.82.9.6 “? I can get the IP from “hostname -I” but wanted to understand the output for inconfig command better….
Nagendra Maynattamai:
you could use kubectl get nodes -o wide
which will display INTERNAL-IP
then match it with the interface name.
Leo Pastor:
@ @Priyanka Sharma <Why> “controlplane node “eth0” is the active interface and not “eth1”?
Because the internal IP address of controlplane is assigned to eth0, not eth1.
- kubectl get nodes -o wide (look at the INTERNAL-IP column for controlplane)
- Or hostname -i
- You get “10.82.9.6” . Then:
- Look at the output of “ifconfig -a” and see which interface that IP is associated with
- Or "ip a | grep 10.82.9.6
In summary, 2 steps:
a) find the (internal) IP address of the node;
b) find the interface it is associated with.