Linux Novice Starter Series manual configuration IP address __linux

Source: Internet
Author: User
Tags get ip

How to set up the IP manually with the newly installed Linux system. Enter the terminal according to the following steps can be simple and convenient configuration of IP

1th Step: Setup---Network configuration--->device configuration-->eth0 (1th block card)
Name eth0________________│
│device eth0________________│
│use DHCP []│
Static Configuration │static IP 10.0.2.253__________│
Subnet Mask │netmask 255.255.0.0_________│
Default gateway │default Gateway IP 10.0.2.253 _________│
Primary DNS servers │primary DNS server 8.8.8.8_____________│
Secondary DNS servers │secondary DNS server ____________________│


====
2nd Step:
[Root@teacher ~]# chkconfig networkmanager off setting NetworkManager service does not boot, this service is used to manage network connections
[Root@teacher ~]# service NetworkManager Stop NetworkManager Services


=====
3rd Step:
[Root@teacher ~]# Service Network Restart Refresh Network services to enable the new configured IP address to take effect
Or
Ifdown eth0 Disable Network interface

Ifup eth0 enable Eth0 network interface




Some newly installed Linux systems may not have setup this command, and we can edit a profile to achieve the purpose of manually configuring IP:

First step:

Vi/etc/sysconfig/network-script/ifcfg-eth0

Edit this file's ipaddr (IP address), NETMASK (subnet mask) and gateway (gateway), DNS, and so on. Change DHCP (dynamic fetch IP) to none (statically get IP).

Step Two: Ditto

Step three: Ditto

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.