VMware CentOS7 setting up the network and modifying the system language

Source: Internet
Author: User

1. In VMware, click on "Edit"-"Virtual network editor", for example, I chose NAT mode

In order to be able to use static IP, do not tick the "Assign IP to virtual machine using local DHCP service" option here. Then is the configuration subnet IP, subnet IP and host IP must not be in the same address range, otherwise even if the virtual function of the Internet, the network is slow, but also unstable. My host's IP segment is 192.168.115.xxx, so I am equipped with 192.168.10.xxx to avoid the host IP segment, anyway the third number of IP in 0 to 254 and not 115 on the line. Nat mode is equivalent to configuring a sub-router, there should be a friend to set too many levels of routing should have some experience. You combine your own machine's IP to properly configure a subnet IP bar.

In this interface, click "Nat Settings" to see the virtual machine gateway, which is used in the third step. My gateway here is 192.168.10.2.

2. Edit the/etc/sysconfig/network-scripts/ifcfg-eno16777736 file as root, with the following effect:

type=ethernet
bootproto=static #设置静态Ip
Defroute=yes
Ipv4_failure_fatal=no
Ipv6init=yes
Ipv6_autoconf=yes
Ipv6_defroute=yes
Ipv6_failure_fatal=no
name=eno16777736
uuid=4f40dedc-031b-4b72-ad4d-ef4721947439
device=eno16777736
onboot=yes #这里如果为no的话就改为yes, which means the network card device starts automatically
Peerdns=yes
Peerroutes=yes
Ipv6_peerdns=yes
Ipv6_peerroutes=yes
Ipv6_privacy=no

gateway=192.168.10.2 #这里的网关地址就是第二步获取到的那个网关地址
paddr=192.168.10.150 #配置ip, in the second step has set the IP in 192.168.10.xxx this range, I would arbitrarily set to 150, as long as not the same as the gateway can be
netmask=255.255.255.0 #子网掩码
dns1=202.96.128.86 #dns服务器1, fill in the DNS server address available on your network
dns2=223.5.5.5 #dns服器2

Key parameters I have been marked with color shading, the other to keep the default is good, confirm the error after saving exit.

3. Restart the NIC service, execute service network restart, and then get online.

============= Split Line ===========

Modify the system language

Use the VIM command to go in, vim/etc/locale.conf
Enter after only a simple sentence lang= "en_US. UTF-8 "This configuration, put" en_US. UTF-8 "Replace" with "ZH_CN". UTF-8 "Save to exit.
This is a reboot into the system, the system is also a Chinese configuration interface.

VMware CentOS7 setting up the network and modifying the system language

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.