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 new 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 reconfigure.
- You can change the usage of Public NAT/Private NAT by clicking the Edit button of Public NAT IP/Private NAT IP on the Virtual Server Details page.
- Public NAT IP can only be modified when there is one server, the VPC is connected to an Internet Gateway, and the regular subnet is public.
To change the IP, follow these steps.
- All Services > Compute > Virtual Server Click the menu. 1. Go to the Service Home page of the Virtual Server.
- Click the Virtual Server menu on the Service Home page. 2. Go to the Virtual Server List page.
- On the Virtual Server list page, click the resource whose IP you want to change. 3. Virtual Server Details navigate to the page.
- On the Virtual Server Details page, click the Edit button for the IP entry you want to change. 4. IP edit The popup window opens.
- Edit IP in the popup window, after selecting Subnet, enter the IP to change.
- When the setup is complete, click the Confirm button.
- When the popup notifying IP modification opens, click the Confirm button.
Configure IP on the server after adding a network port
If you create 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.
As the root user on the Virtual Server’s OS, use the ip command to verify the assigned network interface name.
Color modeip aip a코드블록. ip 명령어 - 네트워크 인터페이스 확인 명령어 - If an added interface is present, 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코드블록. ip 명령어 - 네트워크 인터페이스 확인 결과 Open the /etc/netplan/50-cloud-init.yaml file using a text editor (e.g., vim).
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: 9000코드블록. YAML 파일 편집
Reference
Indentation is important in YAML files that configure netplan. When modifying a YAML file, please refer to the existing settings and be careful.
Use the netplan command to set an IP on the added network DEVICE.
Color modenetplan --debug applynetplan --debug apply코드블록. netplan 적용 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코드블록. IP 설정 확인