Solved

How can i determine the enabled NIC durring installation

Posted on 2008-06-11
1
238 Views
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?

thanks..
0
Comment
Question by:tdopsdarock
1 Comment
 
LVL 8

Accepted Solution

by:
Rance_Hall earned 500 total points
Comment Utility
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.


0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now