Linux basic network configuration and network-related configuration files

Source: Internet
Author: User

For Linux basic network configuration and network-related configuration files, file IP addresses related to TCP/IP configuration: /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = eth0 ONBOOT = yes BOOTPROTO = static IPADDR = 192.168.0.103 NETMASK = 255.255.255.0 GATEWAY = 192.168.0.1 NETWORK = 192.168.0.0 BROADCAST = 192.168.1.255 GATEWAY: /etc/sysconfig/network NETWORKING = yes HOSTNAME = liyihui GATEWAY = 192.168.1.1 domain name resolution:/etc/host. conf specifies how to resolve the host name. Available options include order: Set the available methods and sequence for host name resolution. Available methods include hosts (use the/etc/hosts file for resolution) bind (DNS resolution) nis (Network Information Service NIS resolution) multi: sets whether to return multiple IP addresses of the host from the/etc/hosts file, valid value: on/off machine name:/etc/hosts local host name resolution database route resolution:/etc/resolv. conf DNS domain name service client configuration file service port configuration:/etc/services set network service default TCP or UDP port configuration Nic IP address ifconfig eth0 192.168.1.103 netmask 255.255.255.0 up # configure eth0 IP address, up indicates immediate effect if you modify/etc/sysconfig/network-scripts/ifcfg-eth0, You need to restart the NIC to make it take effect restart Nic command: service network restart

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.