One, as a crazy love of Linux, we first need to master in the Linux system how to configure IP, Routing and host name basic Linux network configuration, of course, if we want to access the Internet basic IP address configuration is not enough, Access to the network we need to configure our Domain name resolution Server DNS, the following as a rookie I put our usual use of basic network configuration commands to and you introduce, write bad words, please forgive me ~~~~~
This article mainly introduces Linux under the network view, configuration of the basic commands: Ifconfig, IP, route, and then the introduction of DNS, host name and other information configuration!
Second, before we configure the network, we first understand the Linux system under the network interface type and naming rules, as well as the type of network address
1. Network Interface type:
Lo: Local loopback interface
ETH[0-9]: Ethernet interface
PPPX: Point to Point Connection
Of course, we usually use the LO and Ethernet interface. These two types of loopback loop interface lo are only used for loop testing within the system, and the ETH Ethernet interface is the physical interface that we often use to connect the network cable.
2, the Ethernet network card naming rules:
Under different systems its naming rules are not the same, and we take the Redhat 5-32bit system as an example:
Rehl 5-32bit: The definition file of the Ethernet network card naming rule is/etc/modprod.conf
3, network Address type:
Temporary Network address: Network information configured using commands such as ifconfig will take effect immediately, but restarting the network service or system will fail
Permanent network address: By modifying the network configuration file within the system, the changes will not take effect immediately, need to restart the network services or the system will be effective, and will be permanently effective.