Network configuration such as IP under Linux

Source: Internet
Author: User

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

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.