Skip to content
English
  • There are no suggestions because the search field is empty.

How to update IP Config/Add Secondary IP (Linux - Ubuntu)

PublicUse-1

 

IPUbuntuNote1

UbuntuIPEdit1

1. Open CMD and SSH to the client's server using the following command, replacing "Username" with the client's username and "IP Address" with the client's IP address - ssh -p 22 "Username"@"IP Address".

 

UbuntuIPEdit2

IPUbuntuNote2

1. cd /etc/netplan

2. cat 00-installer-config.yaml

UbuntuIPEdit01

 

UbuntuIPEdit3

IPUbuntuNote3

1. sudo nano /etc.netplan/00-installer-config.yaml

 

UbuntuIPEdit4

1. To change the existing IP address use the arrow keys to navigate to the corresponding line of code. Then use the backspace key to delete the previous IP before entering your new IP using the number keys.

IPUbuntuNote4

2. You can follow the same steps for changing the Gateway or the Nameservers, ensuring to input the code on the correct line of the config.

IPUbuntuNote5

 

UbuntuIPEdit5

1. You can also add an additional IP addresses to the config, to do this use the arrow keys to navigate to the end of the "addresses" line and hit "Enter" to create a new line, "Tab" along the line until your cursor lines up with the line above.

2. Enter the new IP address with the same format as the one on the line above. (It should look something like the below screenshot).

UbuntuIPEdit7

 

UbuntuIPEdit6

1. Hit "Ctrl+O" to save the changes and then hit "Ctrl+X" to exit the editing tool.

IPUbuntuNote8

2. sudo netplan apply

3. logout