Modify IP Address
- View IP Address: ifconfig-See address
- Open configuration file: Vim/etc/sysconfig/network-scripts/ifcfg-eth0 input command: Service network restart
- Meaning of the Bootproto parameter: None (disable DHCP), static (static IP), DHCP (auto get), modify Bootproto parameter to static
- Create two new parameters IPAddr (IP address) and netmask (subnet mask)
- Press ESC, enter: Wq Save exit
- Input command: Service network restart
Abnormal
Restarting network
Problem Description: Service Network restart Error: Restarting network (via Systemctl): Job for Network.service failed because the control PR Ocess exited with error code. See "Systemctl Status Network.service" and "Journalctl-xe" for details.
Cause: The cause of this error is the HWADDR address is wrong, carefully control the MAC address and you write the address is not the same
Destination Host Unreachable
Problem Description: Ping IP host prompt destination host unreachable
Cause: Incorrect connection mode
Solution: Modify the connection mode to "bridge connection"
Linux Modify IP