1. Remote management of Linux configuration IP
If the network is different, you need to configure the network card, the command is as follows:
VI/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP0S3 Enter
In the presence of a network environment
Modify the command below it
onboo= "yes"//may not be modified
bootproto= "Static"
Add a command below it
ipaddr=192.168.1.111 (Random Write)
netmask=255.255.255.0
Nm_controlled=no
then press ESC to exit Input: W (save): Q (Exit)
Re-enter command Restart Network Service systemctl restart Network.service
Verify IP is set successfully
Enter the IP addr in which you can see the static IP set
Firewall running remote login This computer the firewall is running at 22 ports
need to turn on 22 port SSH
Enter the following command firewall-cmd--zone=public--add-port=22/tcp--permanent
Notice the above is --
Restart Firewall service Systemctl restart Firewalld.service
If the Linux system is installed on a virtual machine, you need to change the network to a bridged network in the virtual machine settings and then restart the system
Access to the extranet (reference site)http://blog.sina.com.cn/s/blog_55e42da60102vjiq.html
Add DNS: adding DNS through vi/etc/resolv.conf
Added: Search Localdomain
Change: dns1=8.8.8.8 (may not be needed)
Add Gateway: VI/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP0S3
Added: gateway= "192.168.1.1"
dns1=8.8.8.8 (may not be required)
Linux Connection Extranet