Linux 7.X Network Configuration

Linux 7.X Network Configuration

  surroundings:

    Notebook installed in a virtual machine, Redhat 7.4 version of the operating system installed in the virtual machine, now configure the network operating system. (IP, Gateway, etc.)

 

  Related instructions are as follows:

  # nmcli connection

  

  After using the command nmcli connection to see if the data is used to modify modify, if there is no data, then add add.

 

  If there is no data, to use the add instruction is then related to the use of modify command:

  # nmcli connection add con-name eth0 type ethernet ifname eth0

 

  If there are data, using the relevant instructions modify.

  # nmcli connection modify eth0 ipv4.method manual ipv4.addresses 172.24.8.10/24 ipv4.gateway 172.24.8.254 ipv4.dns 172.24.8.254   --配置ip、网关、dns

  Nmcli Connection eth0 up #                      - start eth0

  Show nmcli Device eth0 #                        -. Check the eth0 device information configuration has taken effect.

   

 

  CAT /etc/resolv.conf #    - Check DNS configuration

   

 

   note:

    The above network configuration, why should configure the 172.24.8.0/24 network segment is determined based on a virtual machine inside the network configuration . For details, see " virtual machine using the tutorial. The virtual machine and the host communication ."

Guess you like

Origin www.cnblogs.com/Charles-Yuan/p/10989901.html