Configuring the Network
Scenarios
Configure an available IP address for the VM to enable it to communicate with the host.
If the ifconfig and route are unavailable for SUSE Linux Enterprise Server (SLES)15, use the zypper install net-tools-deprecated to install the tools.
Procedure
- On the VM, run the following command to query the NIC name and IP address: If the following information is displayed, the NIC has obtained an IP address (xxx indicates the obtained IP address, and XX indicates the MAC address):
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.x.xxx Mask:xxx.xxx.xxx.xxx
- If the NIC has not obtained an IP address, run the following command to enable the NIC to dynamically obtain an IP address:
Example:
ifup eth0
The following information is displayed:
Determining IP information for eth0... done
If a message is displayed indicating that the ifup command failed, run the following commands:
ip link set NIC name up
dhclient NIC name
You can also run the following command:
ifconfig <NIC name> up
Generally, no information is displayed.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot