Centos 6 changes the network card eht1 to eth0

Centos 6 changes the network card eht1 to eth0

Under SSH:
1. vi /etc/udev/rules.d/70-persistent-net.rules
Change eth0 to eth1, and change eth1 to eth0

2. Rename the network card file
cd /etc/sysconfig/network-scripts
mv ifcfg-eth0 ifcfg-eth2
mv ifcfg-eth1 ifcfg-eth0
mv ifcfg-eth2 ifcfg-eth1

3. Modify the network card Modify ifcfg-eth0 and change eth1 in the file to eth0 (2 places in total).
Modify ifcfg-eth1 and change eth0 to eth1 (2 places in total).

4. Restart
reboot

<<:  DGCHost: $4/month/512MB memory/50GB SSD space/1TB traffic/OpenVZ/Singapore

>>:  SteadyTurtle: $11.70/year for shared hosting, free GlobalSign SSL certificate

Recommend

StableHost: $1.2/month/unlimited space/unlimited traffic/Sweden

StableHost, a stable merchant, now launches Swedi...

$20/year/unlimited space/unlimited traffic virtual host - Host Ultra

Host Ultra has been providing hosting services si...

DeinServerHost: €3.95/month/1GB memory/300GB space/2TB traffic/Windows/Germany

DeinServerHost, a German hosting provider, was es...

FasterVM: 90 yuan/year/128MB memory/3GB SSD/200GB traffic/KVM/Cera, Los Angeles

FasterVM is a Chinese host. Judging from the revi...

$3.99/month/10G space/100G traffic/Phoenix virtual host—— RLS Hosting

RLS Hosting is an American hosting company founde...

Uovz: 20 yuan/month/1GB memory/20GB SSD hard disk/1TB traffic/KVM/Los Angeles

Uovz has been introduced many times in the host e...

VPSFast: $3.4/month/512MB memory/15GB space/1TB traffic/KVM/Hong Kong

VPSFast is a newly established hosting provider u...