1) Configure the network card:
Go to configure NIC interface: Setup
Start NIC command: Ifup eth0
View IP Address: ifconfig
Configuration process:
1. Execute Setup command →network configuration→device config→eth0 (temporarily select DHCP)
Configuration Complete Once click "OK" → "save" →save&quit, so you exit to the command line interface;
2. Command line ifup eth0----Get IP---Time is a little longer, if not get IP, enter Windows view computer-right-click Management-Service--vmware Dhcp/nat;
3.ifconfig eth0 View acquired IP
4. Then windows-start-run-cmd into the DOS window to ping the IP address seen from Ifconfig;
5. If you can ping pass then prove the configuration is successful;
2) Set the self-starting network card without repeated input ifup eth0
1. Enter the command line: cat/etc/sysconfig/network-scripts/ifcfg-eth0→ to view the configuration file to modify the network card, display Onboot=no, here indicates that the next boot also re-enter the Ifupo to start the network card;
2. Set the self-starting NIC--replace the file's properties with Sed-i
sed-650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>i "s#onboot=no#onboot= Yes#g '/etc/sysconfig/network-scripts/ifcfg-eth0;
This command indicates that the next boot system Will Self-start the network card;
3. See if the configuration was successful: Cat/etc/sysconfig/network-scripts/ifcfig-eth0
This article from "Dream for the Horse not Negative" blog, reprint please contact the author!
"End claims" Configuring the Linux network card