跳到主要內容

發表文章

目前顯示的是 5月, 2022的文章

[bitnami]設定固定ip

  Log in to the server console. Obtain the network interface name using the command below. Typically, the interface name is of the form  enXXXX . Note the virtual machine’s IP address associated with the interface. sudo ifconfig Create a configuration file for the network interface by copying an existing configuration file and placing it in the  /etc/systemd/network  directory. In this example, assume that the new configuration file is named 25-wired.network: cd /etc/systemd/network sudo cp 99-dhcp.network 25-wired.network Edit the new configuration file and update it to look like the configuration below. Replace the INTERFACE-NAME, HOST-IP-ADDRESS and GATEWAY-IP-ADDRESS placeholders with the name of the network interface, the host IP address obtained previously, and the gateway IP address, as shown in the example. [Match] Name=INTERFACE-NAME [Network] Address=HOST-IP-ADDRESS Gateway=GATEWAY-IP-ADDRESS Here is an example screenshot: Save your changes and restart the virtual