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 in Linux Administration by Hannah
• 17,060 points
38 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 by Kalgi
• 45,740 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 in Linux Administration by Omkar
• 68,180 points
37 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
115 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 in Linux Administration by Omkar
• 68,180 points
98 views
0 votes
1 answer

how to loop through the content of a file using bash

One of the ways to do it ...READ MORE

answered Feb 15 in Linux Administration by ajs3033
• 7,280 points
99 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
99 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 in Database by Nitesh
67 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 in Linux Administration by Sirajul
• 40,980 points
44 views