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 ok

    But 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 stopped

    Anybody has a solution ?
    Thanks



  • 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 boots

    But 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 3

    That can never work

    I think the best way is open ACL (access control list) between all my network


  • Developer

    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



  • 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


  • Developer

    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?



  • Hi,
    My server is a Ubuntu desktop 14.04.2 LTS x64


  • Moderator

    This post is deleted!


  • 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.kpxe

    Thanks



  • [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 :

    What do you think about it?


  • Developer

    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



  • Another information . My fogserver has 4 IP adress ( one for each network )


Log in to reply
 

363
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.