Linux Connection Extranet

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.