when I'm searching for ip setting of centos 7. Responed is centos 6.X 's or ealier, and I tried. But how is the default DHCP configuration of centos 7.Some configurations have been done likeI want the os can get ip infomation by dhcp!!
set up centos7, configuration of ip
centos;ip
It appears that you are trying to configure lo interface to use DHCP. lo is a loopback device, virtual network interface that your computer uses to communicate with itself.You need to find out the name of your network interface card by running ifconfig -a command and then creating a configuration file for it in /etc/sysconfig/network-scripts.Here is an example from my machine.[root@insomnia ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp6s0 DEVICE=enp6s0HWADDR=00:1f:bc:08:69:82ONBOOT=yesBOOTPROTO=dhcp[root@insomnia ~]# ifconfig enp6s0enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet6 fe80::21f:bcff:fe08:6982  prefixlen 64  scopeid 0x20<link>        ether 00:1f:bc:08:69:82  txqueuelen 1000  (Ethernet)        RX packets 18901  bytes 5088525 (4.8 MiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 14492  bytes 2839283 (2.7 MiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0You can also reference this Red Hat Networking Guide as Red Hat Enterprise Linux is identical to CentOS.