Network configuration for Linux under IP:
I know altogether three ways, the following simple introduction (note: The network configuration must be "root Administrator" login to configure).
One
1, first in the command line input "ifconfig" command, you can see the relevant network information, wherein the "EthX" that represents the network card information, "Lo" represents the loop;
2, such as My computer only a network card, network card for "eth0", the direct input "ifconfig eth0 10.3.43.53" command configuration can be effective immediately;
3, after the configuration can be entered "ifconfig" command to view;
Note: This configuration will only temporarily change the IP address, after restarting the computer or the original network configuration.
Two
1, enter the "Setup" command at the command line, select "Network Configuration" option to enter;
2, after entering if press "Sky Grid key" will find the value of the cursor at the "*", this means automatic allocation, and finally check "OK" to save;
3, if you want to manually assign then enter and press "tab" (if the cursor value is "*" Press once "Sky grid key" can be restored), and then according to the prompt to enter the appropriate information after selecting "OK" to save;
4, after the modification will not take effect immediately, need to enter "/etc/rc.d/init.d/network restart" after the command line prompt all "OK" before the configuration is successful;
5, enter the "ifconfig" command to view the relevant network information, this method is permanently in effect.
Three
1, by modifying the configuration file changes, enter "Vi/etc/sysconfig/network-scripts/ifcfg-eth0" in the command line can be modified (in this file
Can be modified including IP, subnet mask, broadcast address, default gateway and other information);
2, after the modification will not take effect immediately, you need to enter "/etc/rc.d/init.d/network restart" after the command line prompt all "OK" before the configuration is successful, this method is also permanent.
Network configuration such as IP under Linux