renaming network interface

Issues related to configuring your network
Post Reply
rica01
Posts: 4
Joined: 2011/08/10 15:18:06

renaming network interface

Post by rica01 » 2011/08/10 15:42:58

hi guys =)

I'm installing a centos meta-node for a cluster. This computer will be the frontend for the cluster, so it has 2 network cards: eth0, eth1.

I would like to rename them: eth0-FW and eth1-CL yet im not able to do it.

I have tried using the network-scripts and the udev rules but i'm not able to... last linux i used was Debian and there i just changed the 70-persistenet-net.rules and they changed, yet here im missing something...

any help would be apreaciated =)

Thanks

-ricardo :-)

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

renaming network interface

Post by pschaff » 2011/08/13 12:52:00

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

See the upstream documentation about [url=http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-networkscripts-interfaces-alias.html]Alias and Clone Files[/url]. If you want to change the actual device name to /dev/whatever via udev rules, I'm not sure what else that would mess up, nor why it is worth the trouble.

rica01
Posts: 4
Joined: 2011/08/10 15:18:06

Re: renaming network interface

Post by rica01 » 2011/09/04 05:09:23

Hi me back again.

I still haven't been able to rename these interfaces succesfully.

If i edit the /etc/udev/rules.d/70-persisent-net-rules in way where i fix the MAC address of the interfaces and i change the "name" to anything, on next boot the original eth0 and eth1 are recreated.

Post Reply