The page has been translated by Gen AI.
IP Change
You can change the IP of the Virtual Server and add network ports to the Virtual Server to set the IP.
IP Change
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 with that IP, and you cannot cancel the IP change while it is in progress.
- The server will be rebooted to apply the changed IP.
- If the server is running the Load Balancer service, you must delete the existing IP from the LB server group and directly add the changed IP as a member of the LB server group.
- Servers using Public NAT/Private NAT must disable and reconfigure Public NAT/Private NAT after changing the IP.
- 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 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.
- All Services > Compute > Virtual Server Click the menu. Navigate to the Service Home page of Virtual Server.
- Click the Virtual Server menu on the Service Home page. Move to the Virtual Server List page.
- Virtual Server List Click the resource to change the IP on the page. Navigate to the Virtual Server Details page.
- Virtual Server Details page, click the Edit button of the IP item to change the IP. The IP Edit popup opens.
- Edit IP In the popup window, after selecting Subnet, set the IP to change.
- Input: Enter the IP to be changed directly.
- Automatic Generation: Automatically generate the IP and apply it.
- When the settings are complete, click the Confirm button.
- When the popup notifying IP modification opens, click the Confirm button.
Setting IP on the server after adding network ports
If you create a Virtual Server with Ubuntu Linux, after adding a network port on Samsung Cloud Platform, additional IP configuration is required on the server.
As the root user of the Virtual Server’s OS, use the ip command to check 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 enp0s7Code block. ip command - Network interface check result 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 modenetwork: 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: 9000Code block. Edit YAML file
Reference
Indentation is important in YAML files that configure netplan. When modifying a YAML file, please refer to the existing settings and be careful.
Set the IP on the added network DEVICE using the netplan command.
Color modenetplan --debug applynetplan --debug applyCode block. netplan applied 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 foreverCode block. Check IP settings