Instructions for setting up network parameters
Ifconfig: Query, set the network card and IP domain and other related parameters;
Ifup, Ifdown: These two files are script to start the network interface in a simpler way;
Route: query, set routing table (route tables)
IP: Compound instructions, you can directly modify the above mentioned functions;
[[email protected] ~]# Ifconfig {interface} {Up|down} <== observe and start interface
[[email protected] ~]# Ifconfig interface {options} <== setting and modifying interface
Options and Parameters:
Interface: Network card interface code, including Eth0, eth1, ppp0, etc.
Options: Parameters that can be answered, including the following:
Up, down: start (UP) or close (down) the network interface (no parameters are involved)
MTU: You can set different MTU values, such as MTU 1500 (in bytes)
Netmask: Is the sub-shield network;
Broadcast: That's the broadcast address!
5th Linux Common Network Instructions