Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
Is there a tool/system call to rename a Network Interface on Redhat linux?
We want to change the names of all the interfaces on our host according to a particular scheme.
For Example,:
Change eth0 to eth0/0 .
Typically, this name is created by the driver. Are there any disadvantages/caveats in Changing the name?
I found a command 'ifrename' on google (This forum doesnt allow me to provide a link). But RedHat doesnt seem to support it.
i beleive you can just change the name of the interface in the ifcfg-eth0 file suing the DEVICE= entry i've not seen anythign using a slash though, any secondary IP's on an interface are typically displayed as eth0:1 not eth0/1 etc...
There shouldn't be any real problems in changing the name, just make usre you really want to do it before you commit to it. sounds like you're trying to replicate the Cisco IOS formats?
I assume I have to change the file name itself (ifcfg-eth0 to ifcfg-eth0/0) ?? Just changing the Device name in the file doesnt seem to work. Its not able to recognise the card. Need to see if changing the name of the file works..
The name format doesnt matter.. I just used it as an example. But curious, does using the '/' break any existing scripts???
well the scripts are generally distro specific, you might break something though, i wouldn't be suprised really, what with "/" being in there. not somethign i've ever messed with though. I've definitely had a eth0:0 on redhat before though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.