PXE with severals vlans
-
Hi,
I’m just upgrading my fogserver into 1.2.0 version (0.32 before) (ubuntu 14.04.2)
Update was fine.But PXE’s functions have changed.
I have errors with my tftp server. (file not found)
I remplaced pxelinux.0 by undionly.kpxe (in my isc-dhcp-server) and it’s okBut I have severals networks (Privates and publics (4 networks)) which use tftp server
Now I can use only tftpboot on my primary network (fogserver’s network 172.x.x.x)
If i try to boot from another network -> error (after the default.ipxe file , I have [url]http://172.x.x.x(ip[/url] adress of fogserver)/fog/service/ipxe/boot.php but after he’s stoppedAnybody has a solution ?
Thanks -
Another information . My fogserver has 4 IP adress ( one for each network )
-
in your /tftpboot/default.ipxe file, edit the last lines as such
[CODE]# normal fog server
chain http://<network 1 IP>/fog/service/ipxe/boot.php##params||chain http://<network 2 IP>/fog/service/ipxe/boot.php##params||chain http://<network 3 IP>/fog/service/ipxe/boot.php##params||chain http://<network 4 IP>/fog/service/ipxe/boot.php##params[/CODE]
this will cause ipxe to attempt the next ip address for the fog server as each fails. it’s probably not the cleanest way to do it, but it should get you going -
[quote=“Junkhacker, post: 43855, member: 21583”]in your /tftpboot/default.ipxe file, edit the last lines as such
[CODE]# normal fog server
chain http://<network 1 IP>/fog/service/ipxe/boot.php##params||chain http://<network 2 IP>/fog/service/ipxe/boot.php##params||chain http://<network 3 IP>/fog/service/ipxe/boot.php##params||chain http://<network 4 IP>/fog/service/ipxe/boot.php##params[/CODE]
this will cause ipxe to attempt the next ip address for the fog server as each fails. it’s probably not the cleanest way to do it, but it should get you going[/quote]
Thank you for your answer.
I will test it monday.Maybe , it’s possible to do a kind of script :
- To get back a IP adress ( if IP adress start by 192 go to chain [url]http://192.168.x.x/fog/service/ipxe/boot.php##params[/url] )
else continue at the next IP adress…
Begin again for the 4 networks.
What do you think about it?
- To get back a IP adress ( if IP adress start by 192 go to chain [url]http://192.168.x.x/fog/service/ipxe/boot.php##params[/url] )
-
I tested your solution any success
Computer doesn’t boot on the 4 network. Only the primary “network IP”
My dhcp-server’s filename is undionly.kpxeThanks
-
This post is deleted! -
Hi,
My server is a Ubuntu desktop 14.04.2 LTS x64 -
on the systems that fail to work properly, can you tell if they’re trying to go to the boot.php locations or if they don’t get that far?
-
regardless of the default.ipxe 's configuration file , pxe boots on the primary IP network ( fog’s webinterface )
chain commands have any effect
I tested with only IP network (other Ip adress ) without success -
on the line before the [CODE]chain http://<network 1 IP>/fog/service/ipxe/boot.php##params[/CODE] add a prompt, like so
[CODE]prompt
chain http://<network 1 IP>/fog/service/ipxe/boot.php##params[/CODE]
let me know what is shown on screen -
So
I reinstalled a new machine with a clean install of fog (same OS)
If i use chain command like this:
chain [url]http://<network[/url] IP 1>/fog/service/ipxe/boot.php##params||chain [url]http://<network[/url] IP 2>/fog/service/ipxe/boot.php##params
[U]Boot on the Network IP 1:[/U]
Boot ok, menu fog appears -:)[U]Boot from network IP 2:[/U]
TFPT…
Then
PXE-E32 : TFTP open timeout
then
TFTP…
And after 5 min , windows bootsBut If I open the link [url]http://<network[/url] IP 2>/fog/service/ipxe/boot.php##params in my browser , I have :
#!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
colour --rgb 0xff6600 2
cpair --foreground 7 --background 2 2
console --picture [url]http://<network[/url] IP 1>/fog/service/ipxe/bg.png --left 100 --right 80
:MENU
menu
colour --rgb 0xff0000 0
cpair --foreground 0 3That can never work
I think the best way is open ACL (access control list) between all my network