linux--Network configuration file

Source: Internet
Author: User

Config file for Ip/netmask/gw/dns properties:/etc/sysconfig/network-scripts/ifcfg-iface

Routing-related configuration files:/etc/sysconfig/network-scripts/route-iface

Description: Fcfg-iface defines interface properties through a number of parameters. Use Vim to edit directly. You can also use (CENTOS6) system-config-network (set up), (CENTOS7): Nmtui command modification.

Ifcfg-iface configuration file Parameters:

Device: The name of the unit that corresponds to the secondary file.

Type: interface types, common with Ethernet,bridge

UUID: A unique representation of this device.

Onboot: Whether this interface is activated during system boot.

Bootproto: Activating this interface is a trial of what protocol to configure interface properties, often with Dhcp,bootnp,statci,none.

Ipv6init: Whether to initialize IPV6

DNS1: The first DNS server.

DNS2: Alternate DNS server.

Domain:dns the search domain.

IPADDR: statically specifies the IP address. When Bootproto is configured for DHCP, the configuration item does not work.

NETMASK: subnet mask; centos7 support trial prefix the subnet mask is named in length.

Gateway: Default gateways.

Userctl: Whether to allow ordinary users to control this device

Peerdns: If the value of Bootproto is DHCP, allow DNCP server to assign a DNS server that overrides the local manually specified DNS server point. The default is Allow.

HWADDR: The MAC address of the device.

Nm_controlled: Whether to try the NetworkManager service to control the interface.

    

linux--Network 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.