Network-scripts/ifcfg-detailed configuration

Source: Internet
Author: User

/Etc/sysconfig/network-scripts/ifcfg-Interface-Name>,/Etc/sysconfig/network-scripts/ifcfg-Interface-Name>-Clone-Name>-- The first file defines the interface information, and the second file defines the information that is different from the configuration of a "clone" (that is, the second available) interface. For example, except for different network numbers, the "clone" file may only contain network numbers, all device information is stored in the basic ifcfg file. The entries that can be defined in the ifcfg file are related to the interface type.

    The following values are common in all basic configuration files:

  • Device =NameHere, the name is the name of the physical device (unless the PPP device is dynamically allocated, its name is "logical name ".
  • Ipaddr =ADDRHere, ADDR is the IP address.
  • Netmask =MaskHere, the mask is the network mask.
  • Network =ADDRHere, ADDR is the network address.
  • Broadcast =ADDRHere, ADDR is the broadcast address.
  • Gateway =ADDRHere, ADDR is the gateway address.
  • Onboot =AnswerHere, answer takes one of the following values:
    • Yes-- The device will be activated during boot.
    • No-- This device is not activated during boot.
  • Userctl =AnswerHere, answer takes one of the following values:
    • Yes-- Non-root users can control the device.
    • No-- Non-root users are not allowed to control the device.
  • Bootproto =PROTOHere, proto takes one of the following values:
    • None-- Do not use the boot protocol.
    • BOOTP-- Use the BOOTP protocol.
    • DHCP-- Use the DHCP protocol.
    The following are the values used by all PPP and slip files:

  • Persist =AnswerHere, answer takes one of the following values:
    • Yes-- The device will remain in the active State, even if the modem is hung up, leading to non-active state.
    • No-- The device is not always active.
  • Modemport =PortThe port is the device name of the modem port (for example, "/dev/MODEM ").
  • Linespeed =Baud, Baud is the line rate of the modem (for example, "115200 ").
  • Defabort =AnswerHere, answer takes one of the following values:
    • Yes-- Insert the default termination string when creating or editing the script for this interface.
    • No-- Do not insert the default termination string when creating or editing the script for this interface.
    The following values apply to all PPP files:

  • Defroute =AnswerHere, answer takes one of the following values:
    • Yes-- Set this interface as the default route.
    • No-- Do not set this interface as the default route.
  • Escapechars =AnswerHere, answer takes one of the following values:
    • Yes-- Use the predefined asyncmap.
    • No-- Do not use a pre-defined asyncmap.

    (This represents a simplified interface, which does not allow you to specify the escape character. However, a 00000000 asyncmap can be used in almost any case, and any asyncmap can be used by setting pppoptions if necessary .)

  • Hardflowctl =AnswerHere, answer takes one of the following values:
    • Yes-- Use hardware traffic control.
    • No-- Do not use hardware traffic control.
  • Pppoptions =OptionsHere, options is any option string. It is placed at the end of the command line to overwrite the previous options (such as asyncmap ).
  • Papname =NameName is part of "name $ papname" in the pppd command line. Note that the option "remotename" is always specified as the name of the logical PPP device, such as "ppp0" (if other PPP devices are activated previously, this may be the physical device ppp1) in this way, the PAP/chap file -- name/passwd pair can be managed together with the logical PPP device name. Theoretically, it is feasible to name a logical PPP device, for example, "worldnet" or "myisp", other than "ppp0"-"pppn.
  • Remip =ADDRHere, ADDR is set to a remote IP address (usually not specified)
  • MTU =ValueHere value is the MTU value.
  • MRU =ValueHere, the value is set to the value of MRU.
  • Disconnecttimeout =ValueValue indicates the number of seconds after a successful connection is terminated.
  • Retrytimeout =ValueValue indicates the number of seconds to wait for the next connection to fail.

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.