The page has been translated by Gen AI.
Change IP
You can change the Virtual Server’s IP and add a network port to the Virtual Server to configure the IP.
Change IP
You can change the IP of the Virtual Server.
Caution
- If you proceed with changing the IP, you will no longer be able to communicate using that IP, and you cannot cancel the IP change while it is in progress.
- The server is rebooted to apply the changed IP.
- If the server is running the Load Balancer service, you must delete the old IP from the LB server group and directly add the updated IP as a member of the LB server group.
- Servers using Public NAT/Private NAT must disable and reconfigure Public NAT/Private NAT after an IP change.
- If you are using Public NAT/Private NAT, first disable the use of Public NAT/Private NAT, complete the IP change, and then set it up again.
- Whether to use Public NAT/Private NAT can be changed by clicking the Edit button of Public NAT IP/Private NAT IP on the Virtual Server Details page.
To change the IP, follow the steps below.
- Click the All Services > Compute > Virtual Server menu. Navigate to the Service Home page of Virtual Server.
- On the Service Home page, click the Virtual Server menu. You will be taken to the Virtual Server List page.
- On the Virtual Server List page, click the resource whose IP you want to change. You will be taken to the Virtual Server Details page.
- On the Virtual Server Details page, click the Edit button for the IP entry you want to modify. IP Edit popup window opens.
- IP Edit In the popup window, after selecting Subnet, set the IP to be changed.
- Input: Manually enter the IP to be changed.
- Auto Generation: Automatically generate the IP and apply it.
- When the setup is complete, click the Confirm button.
- When the popup notifying IP modification opens, click the Confirm button.
Configure the server’s IP after adding a network port
If you created a Virtual Server with Ubuntu Linux, after adding a network port in Samsung Cloud Platform, you also need to configure the IP on the server.
Log in as the root user on the virtual server’s OS and use the ip command to verify the assigned network interface name.
Color modeip aip acode block. ip command - network interface check command - If there is an added interface, the following result is displayed.
Color mode
[root@scp-test-vm-01 ~] # ip a
3: ens7: <BROADCAST,MULTICAST> mtu 9000 qdisc noop state DOWN group default qlen 1000
link/ether fa:16:3e:98:b6:64 brd ff:ff:ff:ff:ff:ff
altname enp0s7[root@scp-test-vm-01 ~] # ip a
3: ens7: <BROADCAST,MULTICAST> mtu 9000 qdisc noop state DOWN group default qlen 1000
link/ether fa:16:3e:98:b6:64 brd ff:ff:ff:ff:ff:ff
altname enp0s7- Use a text editor (e.g., vim) to open the /etc/netplan/50-cloud-init.yaml file.
- Add the following content to the /etc/netplan/50-cloud-init.yaml file and save it.
Color mode
network:
version: 2
ethernets:
ens7:
match:
macaddress: "fa:16:3e:98:b6:64"
dhcp4: true
set-name: "ens7"
mtu: 9000network:
version: 2
ethernets:
ens7:
match:
macaddress: "fa:16:3e:98:b6:64"
dhcp4: true
set-name: "ens7"
mtu: 9000Note
netplan configuration YAML files require proper indentation. When editing a YAML file, please refer to the existing settings and be careful.
- Use the netplan command to set an IP address on the added network DEVICE.
Color mode
netplan --debug applynetplan --debug apply- Use the ip command to verify that the IP is set correctly.
Color mode
[root@scp-test-vm-01 ~] # ip a
3: ens7: <BROADCAST,MULTICAST> mtu 9000 qdisc noop state DOWN group default qlen 1000
link/ether fa:16:3e:98:b6:64 brd ff:ff:ff:ff:ff:ff
altname enp0s7
inet 10.10.10.10/24 metric 100 brd 10.10.10.255 scope global dynamic ens7
valid_lft 43197sec preferred_lft 43197sec
inet6 fe80::f816:3eff:fe0a:96bf/64 scope link
valid_lft forever preferred_lft forever[root@scp-test-vm-01 ~] # ip a
3: ens7: <BROADCAST,MULTICAST> mtu 9000 qdisc noop state DOWN group default qlen 1000
link/ether fa:16:3e:98:b6:64 brd ff:ff:ff:ff:ff:ff
altname enp0s7
inet 10.10.10.10/24 metric 100 brd 10.10.10.255 scope global dynamic ens7
valid_lft 43197sec preferred_lft 43197sec
inet6 fe80::f816:3eff:fe0a:96bf/64 scope link
valid_lft forever preferred_lft forever