CodePudding user response:
You can try another commandIP addr
Show the IP address.
In addition, please write down your Linux version
You can put the uname - a print
CodePudding user response:
If the virtual machine, such as the theory of using methods which connected to the Internet and is usually set up the network soBOOTPROTO=static set static IP
HWADDR hardware addressIPADDR IP address
GATEWAY GATEWAY
CodePudding user response:
It is possible that your card is not activated, or suggested to configure a static IP so there is no problem,BOOTPROTO=static set static IP
IPADDR=192.168.0.116 (fill your IP) # IP address
NETMASK=255.255.255.0 (fill) the value of your mask # mask value
GATEWAY=192.168.0.1 (default GATEWAY)
DNS1=8.8.8.8 (using Google's default DNS server)