CentOS Ifcfg-eth content explained IP settings Linux

Source: Internet
Author: User

Type=ethernet #网卡类型

Device=eth0 #网卡接口名称

Onboot=yes #系统启动时是否自动加载

Bootproto=static #启用地址协议--static: Static protocol--BOOTP Protocol--DHCP Protocol

ipaddr=192.168.1.11 #网卡IP地址

netmask=255.255.255.0 #网卡网络地址

gateway=192.168.1.1 #网卡网关地址

dns1=10.203.104.41 #网卡DNS地址

hwaddr=00:0c:29:13:5d:74 #网卡设备MAC地址

broadcast=192.168.1.255 #网卡广播地址


System-generated script reference:

Device=eth0
Type=ethernet
uuid=cdc5078e-cd90-4172-a188-4adbde207c8b
Onboot=yes

Nm_controlled=yes
Bootproto=none
hwaddr=00:0c:29:fd:c3:04
Ipaddr=192.168.1.101
Prefix=24
gateway=192.168.1.1
dns1=168.126.63.1
domain=8.8.8.8
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Name= "System eth0"


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.