When installing multiple network cards on a Linux system, it is not so easy to change the name. In the case of such multiple network cards, how can Linux modify the network card name? Let's take a look at it with Xiaobian.
1, is mounted on a Linux loom four cards, the latter two, the two extensions, the system comes installed, two identified as extended eth0, eth1, want to Change the two systems to eth0, eth1
2. Change the module alias in the /etc/modprobe.conf file
For example, alias eth0 e1000e
alias eth1 e1000e
Change to alias eth2 e1000e
alias eth3 e1000e
3. Change the name of the configuration file of the network card to ifcfg-eth0, that is, adjust the
mv /etc /sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-temp0
mv /etc/sysconfig/network-scripts/ifcfg-eth2 /etc/sysconfig/network-scripts/Ifcfg-temp2
mv /etc/sysconfig/network-scripts/ifcfg-temp2 /etc/sysconfig/network-scripts/ifcfg-eth0
mv /etc/sysconfig/network-scripts/Ifcfg-temp0 /etc/sysconfig/network-scripts/ifcfg-eth2
4. Change the configuration file, change DEVICE=eth0, correspondingly
5. Reload the NIC module
modprobe eth0
modprobe eth1
modprobe eth2
modprobe eth3
6. Restart the network service /etc/init.d/network restart, try it out Restart the network is not working, and later restarted the machine
7, check whether it is normal ifconfig
Compare mac and whether there is running to judge
The above is the Linux multi-NIC card change The method of name is introduced. The method described in this article is only for Linux system. Other systems can be used as a reference. CentOS can see how the system card CentOS 6.X changes the name of the network card.
Linux users in the process of using, sometimes encountered Fatal error, run database recovery and ot
In Linux, users sometimes encounter garbled characters after SecureCRT connects to
I accidentally deleted Ubuntus Grub boot under UEFI, so I cant boot into Ubuntu aut
When the name of the folder has a space, it can be easily deleted under Windows. Ho
How to restart Tomcat regularly on Linux system
Linux system VLAN, Layer 3 switching and trunk difference
Steps for Multi-Mirror Image Traffic Aggregation and Replication in Linux
Tips for setting up IPv4 in Ubuntu system
Linux how to use awk for array sorting
What should I do if Linux cannot be full screen under VMWare VM?
How to upgrade Docker in Ubuntu system
How to expand Xen virtual hard disk space by Linux
Kali Linux crack wifi password with what software is good?
Linux system CentOS 7 to build a high-availability cluster method
Lenovo notebook win7 system how to open /close the fingerprint recognition function in the BIOS
Win7 boot error BaiduSdTray.exe damage perfect solution
How to restore touch version IE11
Win7 system boot into the welcome interface, there is a black screen solution
How do I disable the built-in microphone in my notebook?
Upgrade the mortal wp mobile phone Do not upgrade Win10 Mobile 10536
Win10 system to modify the color of the tile method
How to add or delete input methods in Windows 7 system? The