Linux Network card configuration file

Source: Internet
Author: User

Through the investigation of information and work in the summary:

Device= "Eth1"

Nic Name
Nm_controlled= "Yes"

Network Mamager parameters, whether it can be managed by Nnetwork Manager

hwaddr=                                        

MAC address
Type=ethernet

Type

Prefix=24

Subnet mask 24-bit

Defroute=yes

Is the default route, whether to set this ETH as the

onboot=yes                                

     set to Yes, power on automatically enable network connection
ipaddr=                                          

IP Address
Bootproto=none

Set to none disable DHCP, set static IP address to static, set DHCP on for DHCP service
netmask=255.255.255.0

Subnet mask
dns1=8.8.8.8

First DNS server

Broadcast

Broadcasting

Uuid

Uniquely identifies

Type=ethernet

     network type is: ETHERNET
gateway=                                     

     Set the gateway
dns2=8.8.4.4 #                               

     a second DNS server

Prohibit 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

Network address

Arpcheck=yes
Detection

Peerdns

Whether DHCP is allowed to obtain DNS overrides for local DNS

Peerroutes

Whether to obtain routing table entries from the DHCP server for information that defines the default gateway for the interface

Ipv6init

Whether the IPv6 interface is enabled.

Ipv4_failure_fatal=yes

Disable device if IPv4 configuration fails

Ipv6_failure_fatal=yes

Disable device if IPv6 configuration fails

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

Linux Network card configuration file

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.