Puncte:0

Set up a static ip on Ubuntu

drapel eg

I have the VM Ubuntu version it has a first static IP fixed. I'm trying to add two others and change the default gateway but I can't, because when I finish the configuration and reboot the server all of this conf is removed.

Here are the commands that I used to configure the static IP:

sudo ip addr add IP address/netmask dev ens256
sudo ip link set dev ens256 up

I have another issue, I can't change the default gateway, below the command line that I used so the error message told me that the gateway already exists and I can't change it.

sudo IP route add default via IP gateway 

Could you help me to change the gateway then set up two other static IPs.? Please note that the VM is not connected to the internet.

Postează un răspuns

Majoritatea oamenilor nu înțeleg că a pune multe întrebări deblochează învățarea și îmbunătățește legătura interpersonală. În studiile lui Alison, de exemplu, deși oamenii își puteau aminti cu exactitate câte întrebări au fost puse în conversațiile lor, ei nu au intuit legătura dintre întrebări și apreciere. În patru studii, în care participanții au fost implicați în conversații ei înșiși sau au citit transcrieri ale conversațiilor altora, oamenii au avut tendința să nu realizeze că întrebarea ar influența – sau ar fi influențat – nivelul de prietenie dintre conversatori.