The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Machine names changing on network fxj UNIX for Dummies Questions & Answers 3 09-23-2008 07:08 AM
changing multiple directory names w/ sed RahJiggah OS X (Apple) 1 11-05-2007 01:55 PM
Changing userID and Changing group and GID deal732 Shell Programming and Scripting 2 04-18-2007 11:09 AM
Moving files and changing names muneebr UNIX for Dummies Questions & Answers 5 11-20-2006 09:42 AM
changing file names to lowercase 30177005 Shell Programming and Scripting 1 05-28-2004 09:27 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2009
GKnight GKnight is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 35
changing ethernet NIC names?

I have an RHEL 5 server with 2 Broadcom on-board NICs and 2 quad-port Intel NICs. After I installed the OS, the Intel NICs became eth0-7, and the onboards are eth8 and eth9. I really need the onboard NICs to be eth0 and eth1 (I have plans to later remove the quad-ports and replace them with 10gE cards but that's another story). What's the right way to renumber the existing eth devices? I have the following entries in modprobe.conf:


Code:
alias eth0 e1000e
alias eth1 e1000e
alias eth2 e1000e
alias eth3 e1000e
alias eth4 e1000e
alias eth5 e1000e
alias eth6 e1000e
alias eth7 e1000e
alias eth8 bnx2
alias eth9 bnx2

Should I just change the names in there and also modify the ifcfg-* files? Or is there more to this? How do I make sure that after I reboot, the names will not change back?
  #2 (permalink)  
Old 10-03-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,921
Usually, it should be enough to just change the names of the ifcfg-* files, and restart the network service. Additionally, to ensure that the name always binds to the right port, add the line
Code:
HWADDR=<MAC address>

to the appropriate file.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0