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