Static IP configuration under Linux "Weber Productions"

Source: Internet
Author: User

Configure a static IP address under Linux

Because the IP address of the server is fixed, unlike the IP of our own home notebook is dynamic. So we're going to write this address as static.

Edit this configuration file directly:

Vi/etc/sysconfig/network-scripts/ifcfg-ethx
device=eth0 Bootproto=static  HWADDR= ; Here is the physical address of your network card, do not enter onboot=Yes ipaddr =192.168. 0.1 NETMASK=255.255. 255.0 NETWORK=192.168. 1.0 Broadcast=192.168. 1.255 gateway = ; Enter the IP address of your router
Save exit
#/sbin/service Network Restart
If the NIC boot is OK, the IP address setting is successful. In addition we can use ifconfig eth0 to display the current IP to verify that the settings are correct.
Use/etc/init.d/network restart to  achieve network startup.

Static IP configuration under Linux "Weber Productions"

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.