Linux Experience Summary

Source: Internet
Author: User

First, the Linux minimized installation, unable to find the network card problem:

Using the vi editor, edit the NIC configuration file:

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0
Onboot=no
Bootproto=static

Ontrolled= "No"

ipaddr=192.168.1.1
netmask=255.255.255.0
gateway=192.168.1.254
Hwaddr=00:0c:29:96:38:f8 Note that onboot=no change it to Yes, the network card is active, ontrolled= "no" to "no" re-service network Restart the IP address and gateway ifconfig appear under test


Second, Linux multi-block network card replication, change the MAC address problem:

1, the first virtual machine Add network card:

2. Change the NIC configuration file:

cd/etc/sysconfig/network-scripts/

#ls

#cp Ifcfg-eth0 ifcfg-eth1

3, see the network card MAC address, there are two ways. First shut down, locate the Linxu installation location, locate the file with the suffix. VMX, view the MAC address associated with the network card, start the Linxu System VI edit vi/etc/sysconfig/network-scripts/ifcfg-eth1, change the MAC address to

Restart the NIC service with the same MAC address as the suffix. vmx file.

Two ways:

To view the network card MAC address:

#ip A

To edit the NIC configuration file:

#vi/etc/sysconfig/network-scripts/ifcfg-eth1

Change the MAC address consistent with the above display, the graph line interface can be copied, save exit, restart the network card service.

This article is from the "Network Information security" blog, make sure to keep this source http://lamborg.blog.51cto.com/4704204/1744184

Linux Experience Summary

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.