Centos network interface configuration file ifcfg-eth

Source: Internet
Author: User

===== Centos network interface configuration file ifcfg-eth

File/etc/sysconfig/network-scripts/ifcfg-eth0 in/etc/sysconfig/network-script under this directory, store the network interface (NIC) the ifcfg-eth0 is the default first network interface, if there are multiple network interfaces on the machine, then the name will push the ifcfg-eth1, ifcfg-eth2, ifcfg-eth3 ...... (The file here is very important and involves whether the network can work normally ).

 

==== Setting format: Set Value = value ====

Set the project as follows:

* Device Interface Name (device, nic)

* Userctl [Yes | no] (whether non-root users can control the device)

* [None | static | BOOTP | DHCP] (protocol not used during boot | static IP allocation | BOOTP protocol | DHCP protocol)

* Hwaddr MAC address

* Whether the network interface is valid when the onboot system is started (Yes/No)

* Type network type (usually ethemet)

* Netmask network mask

* Ipaddr IP Address

* Whether ipv6init IPv6 is valid (Yes/No)

* Gateway default gateway IP Address

* Broadcast address

* Network address

==== See the following example ====

* Device = eth0

* Bootproto = static

* Broadcast = 192.168.1.255

* Hwaddr = 00: 0C: 2x: 6x: 0x: xx

* Ipaddr = 192.168.1.23

* Netmask = 255.255.255.0

* Network = 192.168.1.0

* Onboot = Yes

* Type = Ethernet

Related Article

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.