centos 7 obtain an IP address

  1, the installation package dhclient

  # yum install dhclient

  2, the release of existing IP

  # dhclient -r

  3, reacquired

  # dhclient

  4, to obtain the IP View

  # ip a

  

Guess you like

Origin www.cnblogs.com/bulh/p/11040695.html