LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2012, 05:56 PM   #1
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Rep: Reputation: 0
static IP's on eth1-3 on a PXE booted machine


my setup is to PXE boot from eth0 and the OS (ubuntu 10.04) is loaded via NFS3. Each machine has four NICS. Is it possible to have static IP's on eth1-3 on the PXE booted machine if several machines are using the same image?

Someone in IRC suggested using udev rules to specify MAC<>ifname mappings, and using interface names in /etc/network/interfaces to configure them per-node.

What I need is to be able to have these machines boot off the same image and have different IP's on eth1-3
 
Old 10-09-2012, 11:31 AM   #2
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
You have several issues...

You could use the same generic image to clone for each client, but I don't know if will work for the clients after setup... Each machine needs to be separately identifiable on the network... And each will have unique MACs, hardware issues, etc.

The boot device will be configured in the BIOS, and all others will have a unique MAC address (independent of one another), meaning your udev rules will have quite a lot of parameters to sort that out... unique for each machine. The only thing I can think of that would work would be to write the udev rules to set the udev namings based on the numerical order of the MAC addresses, for consistency. That doesn't even address IP assignment. Normally that is handled by a DHCP server. Whatever they are interfacing to will have unique MAC addresses too. So, there's no difference in accessing specific devices over the network using more standard topology, they can be called out by their MAC addresses.

It really depends on what you are trying to accomplish with this setup... Is it a branching/distributed network? Is it a network of machines that interfaces with some kind of connection to Ethernet interfaced devices? Are you setting up these machines as some kind of smart switches? It really depends on what you are trying to do, in terms of how you approach it.

I get the feeling that what you are doing is overkill. I can't understand why you would have client machines with 4 NICs each, when a few $15 switches, and a centralized DHCP server would likely accomplish the same thing. Most Ethernet interface devices don't care how or from where they are controlled over the network.
 
Old 10-09-2012, 03:51 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,512

Rep: Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014Reputation: 3014
Might take a script into the image maybe include machine info to make selections or mac addresses to assign.

I get the feeling there is a way to also do that at boot time or via pxe.
 
Old 10-11-2012, 02:23 PM   #4
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
it's a NFS diskless cluster. The head node has the image and the compute nodes PXE boot then pull the image via NFS. All compute nodes use the same shared NFS image so if I make a change on one compute node, it affects all compute nodes.

I do know that each node is assigned a unique host identifier after it's booted. Can something like that be done using mac addresses?

Last edited by daisychick; 10-11-2012 at 02:25 PM.
 
Old 10-11-2012, 02:28 PM   #5
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
someone in IRC suggested using udev rules to specify MAC<>ifname mappings, and using interface names in /etc/network/interfaces to configure them per-node but I'm not sure if this would have to be done post startup/boot.
 
Old 10-11-2012, 02:55 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
It occurs to me that dhcp has the ability to specify a fixed IP-address based on the MAC address of the inquiring machine. (Maybe an off-the-shelf router can do it!) In this case, you could simply set up each Linux box to ask for its address from dhcp, knowing in advance which server it will ask and what its answer will always be. Q.E.D.
 
  


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
FreeBSD 9.0 for amd64 booted on my P4 x86 machine! How? prushik *BSD 4 04-25-2012 05:05 AM
PXE in Static IP Network ping2vamsi Linux - Networking 5 01-13-2012 01:39 AM
Want To Replace Ubuntu On Dual-Booted Machine w/o Losing other OS Sumguy Linux - Newbie 2 08-23-2010 04:34 PM
PXE/Boot Server with Static IP clients asmar Linux - Networking 0 08-17-2006 03:25 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration