LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-15-2005, 09:59 PM   #1
kidskc
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Change Interface Name


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.

Thanks,
Kidskc
 
Old 08-16-2005, 04:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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?
 
Old 08-17-2005, 01:02 PM   #3
kidskc
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply..

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???
 
Old 08-17-2005, 03:40 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change defualt gateway interface banner Linux - Networking 1 05-08-2005 11:47 AM
Change the apps interface? jasone Linux - Software 3 04-26-2005 01:02 PM
how to change the interface name of the wireless device knight-rider Linux - Wireless Networking 2 01-19-2005 05:37 PM
How Can i change the Interface speed without the mii-tool? aramirez Linux - General 2 01-15-2004 12:12 PM
How to Change config to use USB serial interface hughmax Linux - Newbie 4 03-31-2003 03:34 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration