How to change IP address of an Ubuntu VM?

0 votes
I am trying to set up a Kubernetes cluster and I need a master and a slave node. The thing is, I am using Virtual machines and both these VM's are on the same system. And the master and worker node cannot have the same IP address.

How do I change the IP of my VM?
Nov 20, 2019 in Linux Administration by Hannah
• 18,040 points
234 views

1 answer to this question.

0 votes

Go to your Linux terminal and execute the following command to check for your current IP address

ifconfig

image

Execute the following command to change the IP

ifconfig eth0 <new-ip>

image

answered Nov 20, 2019 by Kalgi
• 51,850 points

Related Questions In Linux Administration

0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

answered Jan 31, 2019 in Linux Administration by Omkar
• 69,060 points
75 views
0 votes
1 answer

How to change port no 80 of httpd webserver?

Hi@akhtar, You can change port no of httpd ...READ MORE

answered Apr 21 in Linux Administration by MD
• 21,340 points
21 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
346 views
0 votes
1 answer
0 votes
1 answer

How to check version of package installed by npm?

These commands are used to check the ...READ MORE

answered Feb 4, 2019 in Linux Administration by Omkar
• 69,060 points
277 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
141 views
0 votes
1 answer
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
113 views
+1 vote
2 answers

if the File system is full how to troubleshoot ?

Check filesystem usage. df -h If /var is showing ...READ MORE

answered Nov 18, 2019 in Linux Administration by Sirajul
• 52,720 points
130 views