The most detailed ifcfg-eth0 configuration in history

Source: Internet
Author: User

Device= "eth1" NIC name
nm_controlled= parameters of the "Yes" network Mamager

Hwaddr= MAC address
Type=ethernet type

PREFIX=24 Subnet Mask 24 bit

Defroute=yes is the default route, do you want to set the ETH

onboot=yes                                 set to Yes to automatically enable network connection on boot
ipaddr=                                          ip Address
Bootproto=none                       set to None to disable DHCP, set to static IP address enabled,

Set DHCP on for DHCP service
netmask=255.255.255.0 Subnet Mask
dns1=8.8.8.8 First DNS server

Broadcast broadcast

UUID Unique Identifier

The Type=ethernet network type is: Ethernet
gateway= Setting up the Gateway
dns2=8.8.4.4 # A second DNS server
Ipv6init=no Forbidden IPV6
Userctl=no whether to allow non-root users to control the device, set to No, can only be changed with the root user
Name= "System eth1" This is the name of a network connection.

Master=bond1 Specify the name of the master

SLAVE specifies that the interface is a component of a bonded interface.

Network address

Peerdns whether DHCP is allowed to obtain DNS overrides for local DNS

Peerroutes whether to obtain a routing table entry for information that defines the default gateway for an interface from the DHCP server

Ipv6init Whether the IPv6 interface is enabled.

Ipv4_failure_fatal=yes Disabling a device if the IPv4 configuration fails

Ipv6_failure_fatal=yes Disabling a device if the IPv6 configuration fails

This article is from the Linux OPS blog, so be sure to keep this source http://xutaibao.blog.51cto.com/7482722/1671739

The most detailed ifcfg-eth0 configuration in history

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.