1: Nic File/etc/sysconfig/network-scripts/ifcfg-eth0
[[email protected] scripts]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0 # # Physical device name, Eth0 is the first NIC; e Th1 for the second NIC Hwaddr=00:0c:29:84:0c:21 # # network card MAC address, 48-bit type=ethernet # # Ethernet Uuid=09ae6890-2925-4ca0-9cbc-e93 7593624f8 # # Only one user ID, equivalent to the ID number! such as viewing the UUID of a disk device using the Blkid command Onboot=yes # # Controls whether the network adapter is booting Nm_controlled=yes # #BOOTPROTO =DHCP # # proto One of the following values: None, not using the protocol at boot time, static assigning address, BOOTP, using BOOTP protocol, DHCP, using DHCP protocol iipaddr=192.168.17.128 # # IP Address netmask=2 55.255.255.0 # # Subnet mask, dividing network bit and host bit dns2=202.106.0.20 # # DNS is to turn baidu.com into the Baidu server IP. DNS is the domain name and IP Resolution tool dns1=8.8.8.8gateway=192.168.0.1 # # gateway address, router address <br>userctl=nopeerdns=yesipv6init=no
Detailed description of Linux important configuration files