[Linux] centos7 connection xshell required ip address lookup

1. Enter the query name ip ip addr command three entries will appear, centos ip address is inet value ens33 entry.
Ens33 will find no inet this property, then it can not connect to a virtual machine by IP address.
Here Insert Picture Description
2. Next view ens33 card configuration: vi / etc / sysconfig / network -scripts / ifcfg-ens33

  • Note vi spaces behind
  • vi Linux is built-in text editor to open the file command means

From the configuration list can be found CentOS 7 is not started by default card (ONBOOT = no), this was changed to a yes. [Insert the keyboard keys, modify]
Here Insert Picture Description
3. Press Esc to exit and enter the command: wq, enter to [wq to save the meaning].
4. Network Service Restart: the sudo the restart-Service Network
5. The input command ip addr. To view ip address
Here Insert Picture Description

Published 58 original articles · won praise 49 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43550839/article/details/104055152