How can i determine the enabled NIC durring installation

Posted on 2008-06-11
Medium Priority
Last Modified: 2013-12-16
I am trying to install Red Hat Linux remotely. During the installation, i am suppose to specify the interface in which the dhcp address will be obtained in order to locate the build. At the momet i am using a trial and error approach because i have up to 10 NICs and it is a waste of time. Please i will like to know the following...
- How does linux determine which interface to allocate eth0, 1, 2, 3....
- is there a way to easily specify which interface will be used for obtaing a dhcp address
- Is there a way to reboot a server via iLo (remotely) during installation
- is there a way to specify in the build ISO or Kick Start which interface to be used?

Question by:tdopsdarock
1 Comment

Accepted Solution

Rance_Hall earned 1500 total points
ID: 21762812
First thing you need to know is how linux assigns ethX names to nics

first priority is the order that the modules were loaded into the kernel  (edit /etc/modprobe.conf to change the order)

second is the pci bus itself.

pci ports are numbered from small to large (check your mobo docs for details)

so kernel nic module is loaded and it scans the pci bus looking for compatible nics in order of the pci bus id

each card identified is named ethX where X starts at 0

its possible then to have different nics in the system and specify which one will be eth0 based on the order the different modules are loaded.

Can you do something about this during install?  possible depends on the flexibility of kickstart...(I dont know, but thats where you would look)

all nics the same and only one kernel module loaded, then they are numbered in order of the pci bus id.

is there a way to specify which nic gets dhcp during install?  I dont think so, what I do is set them all to dhcp, but only plug one of them in, then after I get the network configuration files done like I want, then I have the server plugged in correctly.

can you reboot a server via ilo? yes you can, but you should have pre configured the static ip address of the ilo interface and plugged a seperate cable into it so you can access the hardware when the software hangs.

can you specify via kickstart what network to use?  I dont think so, but again, its been awhile for me, so its possible this has changed.


Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question