LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2012, 06:19 AM   #1
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Rep: Reputation: 22
PXE booting through different subnet


My PXE boot server is the default gateway of its PXE client.

From the client, it sees my boot server as 192.168.0.1 . The client also resides inside the 192.168.2.x subnet.

When I set the server to tell the client's PXE to boot from 192.168.0.1, it looks like the client does not see the 192.168.0.1 server although I can ping and even ssh the address mentioned(192.168.0.1).

My setup is currently as follows.

Internet
|
PXE boot server and internet connection sharer.(address 192.168.0.1)
|
Router(address 192.168.2.1) (WAN IP is 192.168.0.2)
|
PXE boot client(s) (address 192.168.2.x) 1<x<256

Here is my /etc/dnsmasq.conf

Code:
dhcp-range=192.168.0.0, 192.168.2.255,12h

dhcp-boot=slackware/pxelinux.0,192.168.0.1

dhcp-option=3,192.168.0.1

dhcp-option=6,192.168.0.1
Hopefully my info is clear enough for now. Care to shed some lights here?

Thank you for reading.
 
Old 08-12-2012, 06:34 AM   #2
fl0
Member
 
Registered: May 2010
Location: Germany
Distribution: Slackware
Posts: 105

Rep: Reputation: 34
Hi,

to use PXE boot with different subnets, you need some kind of dhcp-proxy/relay , maybe you can use your router for this.
i a cisco router this is called ip-helper.

regrads fl0
 
Old 08-12-2012, 10:04 AM   #3
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
Can I use my server instead to implement the dhcp-relay? If I can, then how? My router does not have dhcp-relay feature.
 
Old 08-12-2012, 11:27 AM   #4
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
Your server will never "hear" the "shouts" your client sends out.

You need a smarter router or a rethink on your layout/plans.
 
Old 08-12-2012, 11:49 AM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Might be easier to use gpxe/ipxe.
 
Old 08-12-2012, 12:23 PM   #6
ceh383
Member
 
Registered: May 2003
Location: The Left coast, USA
Distribution: Slack_64 14.2
Posts: 226

Rep: Reputation: 29
You could try setting up a SUPERNET

This would allow different subnets to see each other without a need to upgrade your router.
 
Old 08-12-2012, 03:01 PM   #7
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
It's not the subnetting that's problem it's the presence of the router.

Think of the router as a gatekeeper who will only let people with a ticket (ip-number) get past, in the op's case his ticket office (dhcp server) is on one side of the gate, his ticketless customer (pxe client) on the other.

The dhcp-relay is an extra nice gatekeeper who passes on the request for a ticket.

gpxe/ipxe, these can skip the dhcp part, unfortunately the chainloading pxeclient still needs the dhcp server on the same side of the router as the client - after that the tftp part can be anywhere.
 
Old 08-12-2012, 06:06 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
No, gpxe can use any internet type topology, ftp, tftp, nfs, http. I may misunderstand the issue but try www.netboot.me.
 
Old 08-13-2012, 02:30 AM   #9
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
@OldHolborn and @jefro : I think I understand what you're saying. Even gPXE works, I must first load PXE(If I don't have a boot medium) before loading gPXE and if I can load PXE from my server, I don't need gPXE. The only compromise I can do is to transfer an iPXE boot image to CD/USB stick and boot from there before booting from my PXE server. iPXE does mention I can skip making boot medium if I flashed my NIC ROM, but I don't think it's possible for my NIC which is AR8152. Thanks for the iPXE suggestion. I learned another thing.

@ceh383 : I've looked at supernetting how-to. It looks complicated to me! Care to shed more lights on this? Thank you.
 
Old 08-14-2012, 03:29 AM   #10
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
I've rearranged my hardware formation. Here is my new HW configuration.

Internet
|
PXE server and DHCP server
|
Switch(The router is converted into switch)
|
PXE and DHCP clients

The problem is solved for now. Thanks for your help so far.
 
  


Reply



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
PXE booting again TheStarLion Linux - Distributions 4 06-25-2010 07:33 PM
problem in pxe booting shishirkotkar Linux - Networking 2 04-10-2008 12:13 PM
Booting from PXE veeruk101 Linux - Networking 5 11-23-2006 09:53 PM
pxe booting geden Linux - Networking 5 09-08-2006 07:26 PM
PXE Booting pvlajith Red Hat 1 06-06-2006 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:39 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
Open Source Consulting | Domain Registration