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

multi-network cloning with 1 server

Scheduled Pinned Locked Moved Unsolved
General Problems
4
10
1.2k
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.
  • V
    vsc1t
    last edited by Oct 24, 2018, 12:11 PM

    Networks are not physically connected.

    On first network FOG act as DHCP
    Second network has it own DHCP server.

    Everything work good on first network

    On second network dhcp options next-server and 67 are configured? so client connect and download from tftp normally, but from ipxe client is receiving address of first network.

    I tried to edit file default.ipxe and changed hardcoded ip address to dns name. After this clients from both networks can start fog menu, but from second without background image.

    The next problem is that I can not deploy the image in the second network as by pressing the button Deploy image (on client side from fog menu), client again receive hardcoced IP address of first network.

    Total I have a fully working server on the 1st network and not working in the second network.
    How to configure FOG to work in 2 networks?

    W 1 Reply Last reply Oct 24, 2018, 3:35 PM Reply Quote 0
    • W
      Wayne Workman @vsc1t
      last edited by Oct 24, 2018, 3:35 PM

      @vsc1t said in multi-network cloning with 1 server:

      On second network dhcp options next-server and 67 are configured? so client connect and download from tftp normally, but from ipxe client is receiving address of first networ

      Sounds like DHCP is still running on the FOG Server on the second network.

      How do you have this setup? Does the fog server have two NICs? I’m suspecting no, and if it’s no, then DHCP is still being served when you connect to the second network. You just need to turn off the DHCP service when you don’t need it, turn it back on when you do:
      systemctl stop dhcpd
      systemctl start dhcpd

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      V 1 Reply Last reply Oct 25, 2018, 9:33 AM Reply Quote 0
      • F
        Fernando Gietz Developer
        last edited by Fernando Gietz Oct 24, 2018, 9:49 AM Oct 24, 2018, 3:48 PM

        I am not expert in network but we have a multi-vlan scenario. You need to define the ip-helpers (https://learningnetwork.cisco.com/thread/75587) in the vlan. If you don’t define the iphelper in your vlan, the computers which are in the second vlan don’t reach to the ipxe server (your FOG server that is in the first vlan).

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth Oct 24, 2018, 2:38 PM Oct 24, 2018, 8:29 PM

          @Fernando-Gietz @Wayne-Workman From what I read between the lines the OP is asking about setting up a so called multi-homed server, so two separate network interfaces configured to host two different subnets.

          @vsc1t Is my assumption correct? While I see that people might want to setup FOG like this I am not sure if we can guide you through the whole process of setting this up. It’s not what FOG is made for and it definitely needs some manual work. I have never done this before but I guess it can be done if you know the bits and pieces and have coding skills.

          But what you actually should look into is setting up a storage node in your other network, hmmm?!

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          V 1 Reply Last reply Oct 25, 2018, 9:40 AM Reply Quote 1
          • V
            vsc1t @Wayne Workman
            last edited by Oct 25, 2018, 9:33 AM

            @Wayne-Workman No it doesn`t work. Even if DHCPd is stoped client is receiving IP address of FOG from the second network via iPXE

            1 Reply Last reply Reply Quote 0
            • V
              vsc1t @Sebastian Roth
              last edited by Oct 25, 2018, 9:40 AM

              @Sebastian-Roth

              But what you actually should look into is setting up a storage node in your other network, hmmm?!
              Yes, it sounds like the best way. Could you give me some link with instructions for setup and configure network node?

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Oct 25, 2018, 9:52 AM

                @vsc1t said in multi-network cloning with 1 server:

                Even if DHCPd is stoped client is receiving IP address of FOG from the second network via iPXE

                From what you write I still see a lot of confusion on what you really try to achieve and what your setup looks like. Please draw a picture of your whole (network) setup and post here. As well you might run ip a s on your FOG server and post output here so we better understand.

                Second network has it own DHCP server.

                What kind of DHCP server is this? Are those two networks connected through a router or switch? Different subnets or same subnets?

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                V 1 Reply Last reply Oct 25, 2018, 10:43 AM Reply Quote 0
                • V
                  vsc1t @Sebastian Roth
                  last edited by Sebastian Roth Oct 25, 2018, 5:59 AM Oct 25, 2018, 10:43 AM

                  @Sebastian-Roth

                  $ip a s
                  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
                      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                      inet 127.0.0.1/8 scope host lo
                         valid_lft forever preferred_lft forever
                      inet6 ::1/128 scope host 
                         valid_lft forever preferred_lft forever
                  2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                      link/ether 08:00:27:68:16:78 brd ff:ff:ff:ff:ff:ff
                      inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute dynamic enp0s3
                         valid_lft 5677sec preferred_lft 5677sec
                      inet6 fe80::971a:3ed0:398c:508c/64 scope link noprefixroute 
                         valid_lft forever preferred_lft forever
                  3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                      link/ether 08:00:27:21:31:27 brd ff:ff:ff:ff:ff:ff
                      inet 192.168.56.101/24 brd 192.168.56.255 scope global noprefixroute dynamic enp0s8
                         valid_lft 990sec preferred_lft 990sec
                      inet6 fe80::696d:9af6:dacf:126c/64 scope link noprefixroute 
                         valid_lft forever preferred_lft forever
                  4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
                      link/ether 08:00:27:e0:79:5a brd ff:ff:ff:ff:ff:ff
                      inet 172.30.0.1/24 brd 172.30.0.255 scope global noprefixroute enp0s9
                         valid_lft forever preferred_lft forever
                      inet6 fe80::a00:27ff:fee0:795a/64 scope link 
                         valid_lft forever preferred_lft forever
                  

                  172.30.0.1 - here FOG is DHCP server
                  192.168.1.2 - there is another DHCP server.

                  when a client is booting from 172.30.0.0 - ok
                  when a client is booting from 192.168.1.0 - it can connect and download from TFTP. Then to continue booting client is receiving http://172.30.0.1/.../boot.php
                  I changed 172.130.0.1 in file default.ipxe to the hostname of FOG.

                  After this clients from both networks can start fog menu, but from 192.168.1.0 without background image.

                  The next problem is that I can not deploy the image in the 192.168.1.0 network as by pressing the button Deploy image (on the client side from fog menu), client again receive hardcoded IP address 172.30.0.1

                  Networks are not connected.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Oct 25, 2018, 10:56 AM Oct 25, 2018, 12:17 PM

                    @vsc1t We have had several requests for multihomed support of FOG in the last months. Possibly something that we can look into but I suppose this would be a lot of work to code properly and make it work in all situations and I don’t see we have the capacity to do so. If people are interested and join in to help I would go ahead and give it a try.

                    Just cross-linking the other posts here so we can get together and talk about it:
                    https://forums.fogproject.org/topic/12580/multi-network-cloning-with-1-server (just came today)
                    https://forums.fogproject.org/topic/11384/multicast-on-multihomed-server ( @bongasicdn7 has achieved most of it on his own - Can you elaborate more on how you initially setup FOG to make client PXE boot work?)
                    https://forums.fogproject.org/topic/12463/network-bonding-with-fog ( @danuel are you still keen to make this work and willing to help?)
                    https://forums.fogproject.org/topic/5695/fog-server-multi-home (old topic but for reference)

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    W 1 Reply Last reply Oct 25, 2018, 8:41 PM Reply Quote 0
                    • W
                      Wayne Workman @Sebastian Roth
                      last edited by Wayne Workman Oct 25, 2018, 2:42 PM Oct 25, 2018, 8:41 PM

                      @Sebastian-Roth I can assist with the isc-dhcp configuration. I have a box here at home with two NICs I can test on, and I have a couple of spare routers and other spare computers laying around. My availability will be limited Friday through mid next week though, I’m heading out of town to visit the folks.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

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

                      183

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project