interface name was changed after reboot

Issues related to configuring your network
yuwei.wang
Posts: 1
Joined: 2018/05/15 08:30:32

interface name was changed after reboot

Postby yuwei.wang » 2018/05/15 08:56:39

Hi, all:

my vm which has three interfaces. eth0, eth1, eth2.

I detached eth0 interface and delete ifcfg-eth0 when vm is running. After task successed, then I can see eth1 and eth2 interface. But After reboot,
origin eth1 become eth0, origin eth2 become eth1 now. And eth0 ip doesn't have ip, eth1 ip is not currect.

User avatar
TrevorH
Forum Moderator
Posts: 22575
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: interface name was changed after reboot

Postby TrevorH » 2018/05/15 10:20:53

Yep, that's the way it works if you use the old style interface naming convention. You would also need to rename all the ifcfg-eth* files and amend the DEVICE= and NAME= lines in each of them.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke