Home > other >  Linux can't ifconfig query IP address
Linux can't ifconfig query IP address

Time:10-23

Using the vi editor to edit directory:/etc/sysconfig/network - scripts/ifcfg - ens32
There is network card (the last directory directory according to the network card of different last directory)
After entering the last line command ONBOOT=NO NO yes instead of
Then enter at the end of the line mode input ": wq" return to the host
In "ifdown ens - 32; Ifup ens - 32 "to restart the network card
Use the command "IP addr" to check the IP address
If want to use the "ifconfig" command to query the IP address
Can use the "yum install.net - toolds - y" for installation
  • Related