LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-08-2006, 08:39 PM   #16
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191

The only device I have ever seen forward a DHCP request/response was a Cisco router
configured with the ip-helper xxx.xxx.xxx.xxx command..

a bit of searching and I found the DHCP relay package. http://packages.debian.org/stable/net/dhcp-relay

search you distro's repositories for DHCP-relay....
 
Old 12-08-2006, 09:07 PM   #17
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
Do you think maybe dhcrelay will work? It's down the page abit under DHCP Relay Agent
http://www.redhat.com/docs/manuals/l...ng-server.html

Last edited by homey; 12-08-2006 at 09:08 PM.
 
Old 12-09-2006, 04:26 PM   #18
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
Quote:
I would like to wheel the cart around to an area where there is space, give it power, toss all the systems on the switch to network them, and netboot them or boot into like a live or preinstall enviroment, and then pull the images off the desktop dedicated to imaging.
After thinking about this, it seems that you intend to unplug the client machines from your existing network and plug them into the switch where your image server is connected. If that is the case, it will have no bearing on the rest of your network. No changes to dhcp setup are needed. Correct??????
 
Old 12-09-2006, 05:28 PM   #19
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by homey
After thinking about this, it seems that you intend to unplug the client machines from your existing network and plug them into the switch where your image server is connected. If that is the case, it will have no bearing on the rest of your network. No changes to dhcp setup are needed. Correct??????

No, I was thinking about tossing some DRBL boxes on our actual network. DRBL acts as a DHCP server, and when you PXE boot, the client requests an IP from the DHCP server. You can't have two DHCP servers running on the same network, it will cause problems.

Currently, all clients being imaged are unplugged and then hooked to the server on its own private subnet off of our actual network. However, I was wanting to use the giga switches and faster ethernet cards to make imaging even faster. Plus our current solution of imaging computers is such a pain and near end of life that we are going to have to buckle down and get something new in there soon anyways.
 
Old 12-09-2006, 06:00 PM   #20
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
It shouldn't matter if the DRBL boxes are hooked onto the rest of your network if you have two nics on that machine.
For example:
Code:
your network <-----> eth0 [ drbl server ]eth1 < -----> [ switch ]< ----- > client machines to be imaged
 
Old 12-10-2006, 12:36 PM   #21
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by tlarkin
You can't have two DHCP servers running on the same network, it will cause problems.
Just to correct one minor misconception.. you absolutely CAN have more than one DHCP server on the same network. but there are a couple caveats..

All the DHCP Servers must be handing out Addresses in the same range for a particular network segment.

The Address pool on the servers may not overlap.. in other words
Server A has a pool of 192.168.1.50-150
Server B has a pool of 192.168.1.151-250

Obviously all the other options in the scopes on the two servers must match (gateway, DNS Servers, etc.. )

That's how you build redundancy into your DHCP server. Especially when you handle DHCP for multiple locations from a central server. I hate to run DHCP for multiple buildings/network segments from a single server with zero fault tolerance.

Still this doesn't fix your problem because you can't guarantee which server will respond to the request first and provide an address to the client machine. and since your router is already handling the dhcp relay function you would have to disable that and make your drbl server the dhcp relay.. That's the only way I see that it might work.. Please let us know the outcome of your testing, because I am curious if running dhcp-relay services on the drbl box will solve this issue.
 
Old 12-10-2006, 04:34 PM   #22
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Yes we do have multiple DHCP servers running on our network, but the problem is, they are already in place and part of the infrastructure. To, toss on the DRBL server and have it also act as a DHCP server is not really going to work because of how my boss has the network set up. The aspect of control is a big factor here since he can control every server remotely, and he doesn't want to lose that aspect. I don't blame him either. Also, the Linux aspect is a bit new to our network. We have some Linux servers running, but we mostly run Netware/Windows.

I know I can have multiple DHCP servers but the problem lies in how can I guarantee that PXE booting will always go to the DRBL server? I was thinking of maybe using the PXE boot file in /tftp to make it redirect to the DRBL if it netboots to the wrong server by accident, but I am not sure if that would even work. Also, that would require all the severs to run linux as well.

Basically, I want a DRBL box to be on the network and only had out connections when a client machine netboots. Then, the rest of the time I just want it to sit there and house images. DRBL is very impressive for a free open source utility, and I like what it is capable of. However, for right now it can't be fully used as I would like. We will be going through some major server side changes in the next couple of years. Our servers are on replacement cycles since I work for a public school system. So, we may end up with more linux servers in the future, and that would make it easier since I could just toss DRBL on one of them, perhaps.

As for our routers, I will have to talk to our cisco guy since in all honesty I am not quite sure how they are all set up.

This is a work in progress and may or may not end up being what we go with. I know we also own a enterprise license for Zen, which does have imaging options and since we own it, we may end up using that. Thanks for all the suggestions.
 
Old 12-11-2006, 08:20 AM   #23
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Like for example, OS X Tiger Server 10.4, when you turn netbooting on it sends out a signal to our Macs can netboot to it. It is a service you turn off and on, and then you can even select what images you want to make active for the client to reimage.

There has to be a way to do something similar I would think.
 
Old 12-11-2006, 09:44 AM   #24
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
I downloaded dhcrelay but I think my context of the command is wrong. I tried something like this

Code:
dhcrelay -i eth0 ipofactualserver -d
I don't think I am reading the man pages correctly, since that is what I am coming up with when I try running it.
 
Old 12-11-2006, 11:34 AM   #25
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Update

Okay, I got the dhcrelay to work. For some strange reason the command would not run unless I did an actual su root in the terminal. Before hand I was simply running the command with sudo tags, and it didn't work. No idea why. I have YUM install on my linux box and just did a sudo yum install dhcrelay and installed the app that way.

Now, here is the kicker, the relay itself works. When I have systems requesting an IP it redirected it to the actual DHCP server. However, I was unable to netboot to the DRBL box doing this. Everything anything requested an IP dynamically the relay would just point it to the netware server. I could see in the command line every mac address that requested an IP got redirected to the actual DHCP server.


I think basically what I want to do is not possible, or at least I do not know enough about linux to possibly accomplish this. I want the DRBL server to act strictly as a netboot server. I just want netboot clients to connect to it and that is all. I was reading about this and it seems that a terminal server is perhaps my option here that best fits what I wish to accomplish. However, I am not that familar with clonezilla as of yet to really determine how well this could work in any other format.

So, basically when a client netboots they will be tossed on a seperate subnet from our actual network and be able to pull images that way. This seems more logical to me since we can keep imaging on its own subnet and perhaps even give imaging its own VLAN, or whatever to stream line the unicasting and multicasting process.

Thoughts?
 
Old 12-11-2006, 05:17 PM   #26
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,735

Rep: Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523
Maybe this should be on the networking forum?
You could ask the mods to move it, to avoid duplicate posts.
Sounds like an interesting conundrum. If you do get it working, how about putting the solution in http://www.linuxquestions.org/linux/answers/ ?
 
Old 12-12-2006, 08:26 AM   #27
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Hmm, yes you are right it is more of a networking issue now. We are trying something different today we found on Novell's site. We are having the netware server redirect all PXE boots to a linux client where we will attempt to run clonezilla from.

who should I contact the networking mod?
 
Old 12-12-2006, 01:11 PM   #28
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
okay, well I found my answer. in /etc/dhcpd.conf you want to add the line not authoritative; to make the DHCP server a non primary DHCP server. Then using this hint off of novell's discussion forum we pointed our netware server to the ip of the drbl server.

http://www.novell.com/coolsolutions/feature/17719.html

Now, I can netboot a client on our network no problem but then all of the sudden during the boot process it says it can not connect to the host to get the image (the instance the DRBL creates in /tftpboot). I can only assume this because the IPs of the additional nics are actually on a different subnet than the rest of our network.

I am going to try a few other things, but utilmately maybe change the ip schemes of the cards in the image server. Only thing is, DRBL documentation says that multi casting on a class B network is not ideal, and will run slow. Anyone know exactly why that is?

sources:

http://www.etherboot.org/wiki/twodhc...57231d15a67bbd

http://gentoo-wiki.com/LTSP_Server

I also contacted a mod in the networking section, and perhaps this thread may be moved waiting on their response.

Thanks for everyone's suggestions.
 
Old 12-15-2006, 09:08 AM   #29
tlarkin
Member
 
Registered: Oct 2005
Location: Kansas City
Posts: 160

Original Poster
Rep: Reputation: 30
Update

Okay, so here is the problem, and we are very very close to getting this to work. At every building there is a netware server acting as an authoritative DHCP server. We config'd the DRBL box to be a non authoritative DHCP server, and then config the netware server to forward any PXE boot requests to the IP of the DRBL box. Okay, so now the clients can boot to the DRBL PXE boot menu off the box. We can run memtestx86 over the network just fine, and I can run netinstalls of linux packages. For grins I tossed open suse and ubuntu on the box, and any PXE client can netboot to the server and install linux, that is pretty sweet.

However, the imaging aspect is not working, and this is because the PXE client is somehow getting an IP from the netware server, and then when it is sent to the DRBL server it does not renew the IP, it still is getting an IP out of the DRBL servers range.

So, basically we need to find a way for the client to renew the IP once it hits the DRBL box......so close to getting this to work in an enterprise level enviroment, also I have been bashing my head against the wall trying to think of ways of getting it to work.

Thoughts anyone?
 
  


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
I found solution for network install hangs! MTBer SUSE / openSUSE 0 05-21-2006 11:58 AM
help on network solution for doctor's office geedi Linux - Networking 3 12-11-2005 09:04 PM
Please help me find a solution...I've tried for days. (network problem) RoaCh Of DisCor Linux - Newbie 12 11-19-2004 06:54 AM
Solution for 2 computer network--XP and Linux vdogvictor Linux - Networking 8 04-18-2004 01:45 PM
Backup Solution for whole network davidm Linux - Software 3 08-25-2002 09:19 AM

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

All times are GMT -5. The time now is 10:57 PM.

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