Files:/etc/sysconfig/network-scripts/ifcfg-cardname
The following values are common in all basic configuration files:
* Device=name, where name is the name of the physical device (except for dynamically assigned PPP devices, its name is "logical name").
* Ipaddr=addr, here addr is the IP address.
* Netmask=mask, here Mask is the netmask.
* Network=addr, here addr is the network address.
* Broadcast=addr, here addr is the broadcast address.
* Gateway=addr, here addr is the gateway address.
* Onboot=answer, here answer take one of the following values:
. Yes-the device will be activated at boot.
. No-the device is not activated at boot.
* Userctl=answer, here answer take one of the following values:
. Yes-non-root users can control the device.
. No-the non-root user is not allowed to control the device.
* Bootproto=proto, here Proto take one of the following values:
. None-the boot-time protocol is not used.
. BOOTP-Uses the BOOTP protocol.
. DHCP--Use DHCP protocol.
This article is from the "Margin with Wish" blog, please be sure to keep this source http://281816327.blog.51cto.com/907015/1615152
CentOS Network Basics: (3) Configure common parameters of NIC