FOG Project

    • Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    PXE with severals vlans

    FOG Problems
    3
    11
    2331
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jo2220 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J
        Jo2220 last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Junkhacker
          Junkhacker Developer last edited by

          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

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • J
            Jo2220 last edited by

            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

            1 Reply Last reply Reply Quote 0
            • Junkhacker
              Junkhacker Developer last edited by

              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?

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              1 Reply Last reply Reply Quote 0
              • J
                Jo2220 last edited by

                Hi,
                My server is a Ubuntu desktop 14.04.2 LTS x64

                1 Reply Last reply Reply Quote 0
                • Wayne Workman
                  Wayne Workman last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • J
                    Jo2220 last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jo2220 last edited by

                      [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?

                      1 Reply Last reply Reply Quote 0
                      • Junkhacker
                        Junkhacker Developer last edited by

                        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

                        signature:
                        Junkhacker
                        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                        1 Reply Last reply Reply Quote 0
                        • J
                          Jo2220 last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          201
                          Online

                          10.2k
                          Users

                          16.3k
                          Topics

                          149.9k
                          Posts

                          Copyright © 2012-2020 FOG Project