Ashwin Dora:
Hi @Mumshad Mannambeth / All. In the https://kodekloud.com/topic/practice-test-explore-environment-2 Question 3., its asked ‘What is the network interface configured for cluster connectivity on the master node?’ . Using ifconfig -a we can see all the interfaces but cannot really tell which one is connected to cluster for the masterNode and I dont see a file called interfaces in the directory /etc/network/ .
Brian Gumisiriza:
Please use
ip a
Ashwin Dora:
@Brian Gumisiriza took your advice and I did ip a and also grepped for UP . I see eth0 and eth1 , how will i understand whichone among them is the right one.
Brian Gumisiriza:
I noticed the master IP addresses keep changing according to the sessions.
Two ways to get the answer.
Run
ip a
And look for the interface in the same line where the master IP is
Or
ip a | grep <master-ip address>
So the the Interface is eth0 as show below
root@controlplane:~# ip a | grep 10.42.74.12
inet 10.42.74.12/24 brd 10.42.74.255 scope global eth0