Home > OS >  Linux under the ifconfig command does not display the IP address
Linux under the ifconfig command does not display the IP address

Time:09-27

Excuse me under Linux system, ifconfg view does not display the IP address, ONBOOT=yes has been modified, and the computer DHCP service has started, or can not show the IP for the great god,

CodePudding user response:

You can try another command
IP 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 so
BOOTPROTO=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)
Next:Linux
  • Related