For beginners: liunx centos7.0 Minimal setup manual static IP operation Guide Tutorial

Source: Internet
Author: User
Tags windows manual

Operating background:

Liunx centos7.0
Minimal install--no setup, no net_tools, etc.
No network is configured when you install the system-you need to configure the network after installation;

Purpose of Operation:

Suitable for rookie, the most simple and understandable operation to complete the network card configuration;

First step: Switch directories

After logging into the system, enter cd/etc/sysconfig/network-scripts/return
Do not remember the path can be more than a few times tab key, will automatically complete/list the optional path;

Step Two: Locate the network card settings file

Input VI ifcfg-e Press the TAB key Auto-complete (different machine card name may be different) carriage return

Step three: Edit the network card settings file

Press the I key once to enter edit mode


What to modify:
(1) Bootproto value DHCP changed to static, that is: automatic IP changed to a stationary IP;
(2) Onboot value no change to Yes: Network card boot;
(3) Add four parameters & values, according to network topology settings, similar to Windows manual IP;
ipaddr=192.168.100.199
netmask=255.255.255.255
gateway=192.168.100.1
dns1=192.168.100.1


Press ESC once modified to exit edit mode
Enter Colon Wq ": Wq" Carriage return _ Note: lowercase;

Fourth step: Restart the system

Enter reboot carriage return;

Fifth Step: Test

Login system after reboot, enter Ping www.baidu.com
Test Ping Pass;

Attached: Network card configuration Parameters detailed
Type: Configure the file interface types. There are various network configuration files in the/etc/sysconfig/network-scripts/directory, such as Ethernet, IPSec, etc., and the network interface type is Ethernet.
Device: Devices to which this profile applies
HWADDR: MAC address of the corresponding device
Bootproto: Address configuration protocol used when activating this device, common DHCP, static, none, BOOTP
NM_CONTROLLED:NM is the abbreviation of NetworkManager, whether this network card accepts NM control; recommended for "No" (NetworkManager: The network Configuration tool for the graphical interface, does not support bridging, it is strongly recommended to close)
Onboot: Whether this device is activated at system boot time
Type: interface types, common Ethernet, Bridge
UUID: Unique identification of the device
IPADDR: Specify IP Address
NETMASK: Subnet Mask
Gateway: Default Gateways
DNS1: The first DNS server points to a
DNS2: The second DNS server points to a
Userctl: Whether a normal user can control this device
Peerdns: If the value of Bootproto is "DHCP", whether to allow DHCP server to assign a DNS server to direct the information to overwrite the/etc/resolv.conf file

For beginners: liunx centos7.0 Minimal setup manual static IP operation Guide Tutorial

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.