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

Setting up FOG 1.2.0 in Multiple VLANs

Scheduled Pinned Locked Moved
General
7
34
21.4k
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.
  • T
    Tom Elliott
    last edited by Sep 5, 2014, 9:55 AM

    Are your switches configured to point back at the dhcp server for each of the different subnets/vlans?

    Many times, when one has multiple VLANs as you do, the DHCP is still handled centrally. However, in order for those subnets to communicate across one another, they need to know how to pass the data back and forth. This is where the DHCP server really shines.

    One thing I notice, however, is that the separate VLANs all have their own DNS servers? Do each of the VLANs have their own Gateway address as well?

    We have 12 separate VLANs in our organization. All have their own Gateway’s that lead back to our routing switch. Our routing switch has an ip-helper setting back to our central DHCP server for their related Gateway. This way there’s still a gate to communicate across, and the routing switch has all the routes configured to allow pass of traffic from one subnet to another.

    I think this may be where your network is having issues.

    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

    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

    1 Reply Last reply Reply Quote 0
    • C
      Christian Nichols
      last edited by Sep 5, 2014, 3:00 PM

      [B]@ArchyFan [/B]I had 0.32 working fine before our network was VLAN’d so this is the first attempt at trying to get FOG working in a VLAN’d environment.

      [B]@Mentaloid[/B] TFTP test fails from client location “Timeout occurred”

      [B]@Tom[/B]
      [QUOTE]Are your switches configured to point back at the dhcp server for each of the different subnets/vlans?[/QUOTE]
      I [I]believe[/I] they are. How would I be sure? (Forgive me for my ignorance, I didn’t configure the switches; however, I can gain access to them).

      [QUOTE]Many times, when one has multiple VLANs as you do, the DHCP is still handled centrally. However, in order for those subnets to communicate across one another, they need to know how to pass the data back and forth. This is where the DHCP server really shines.[/QUOTE]
      I [I]believe[/I] this is how our’s is setup (handled centrally). The pic may be entirely irrelevant to the problem but extra info anyways:
      [IMG]http://i.imgur.com/NjFXNTY.png[/IMG]

      [QUOTE]One thing I notice, however, is that the separate VLANs all have their own DNS servers? Do each of the VLANs have their own Gateway address as well?[/QUOTE]
      They all have the same physical DNS server (the Windows Server - also our DC, DHCP, and DNS server). The different DNS IP’s on each VLAN all point back to the same server. The gateway IP’s are also different relative to their respected VLAN; however, they all point to same router/firewall.

      [IMG]http://i.imgur.com/sLJ7qZS.png[/IMG]

      [QUOTE]We have 12 separate VLANs in our organization. All have their own Gateway’s that lead back to our routing switch. Our routing switch has an ip-helper setting back to our central DHCP server for their related Gateway. This way there’s still a gate to communicate across, and the routing switch has all the routes configured to allow pass of traffic from one subnet to another.[/QUOTE]
      Would you know how I would setup an ip-helper setting like you’re talking about? I’ll research Fortinet’s website for it. Is that called a [I]DHCP relay[/I]?

      Thanks fellas!

      1 Reply Last reply Reply Quote 0
      • G
        George
        last edited by Sep 6, 2014, 6:58 AM

        Hi

        I don t think that it is something with your vlans. In the photo that you have send, client is getting 10.52.5.35 and your dhcp server is 10.52.4.20. I think that this is not correct. Another thing that you should try is to configure the dhcp option 66 with the ip of the fog server and see what happens.

        1 Reply Last reply Reply Quote 0
        • C
          Christian Nichols
          last edited by Sep 6, 2014, 4:12 PM

          [quote=“George, post: 36267, member: 1565”]Hi

          I don t think that it is something with your vlans. In the photo that you have send, client is getting 10.52.5.35 and your dhcp server is 10.52.4.20. I think that this is not correct. Another thing that you should try is to configure the dhcp option 66 with the ip of the fog server and see what happens.[/quote]

          Thanks for your reply, George.

          The client is connected to the High School VLAN which DHCP offers 10.52.4-5.x so it is correct in that sense. If I configured 066 to be an IP (10.52.4.23) then only High School VLAN would be able to see it and boot to PXE.

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Sep 6, 2014, 5:03 PM

            Have you tried applying the scope options for all of the individual vlan’s rather than just on the server?

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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

            1 Reply Last reply Reply Quote 0
            • G
              George
              last edited by Sep 6, 2014, 7:09 PM

              [quote=“Christian Nichols, post: 36275, member: 2195”]Thanks for your reply, George.

              The client is connected to the High School VLAN which DHCP offers 10.52.4-5.x so it is correct in that sense. If I configured 066 to be an IP (10.52.4.23) then only High School VLAN would be able to see it and boot to PXE.[/quote]

              As Tom said you should configure option 66 in every scope that you have made and for me use the ip not dns. For network 1.0 you should use 1.23 for option 66.

              1 Reply Last reply Reply Quote 0
              • G
                George
                last edited by Sep 6, 2014, 7:17 PM

                Can you tell me something else? In the dhcp do you have different interface for every vlan or you are using dhcp relay. it is strange that ipxe client is seeing the dhcp ip from another network

                1 Reply Last reply Reply Quote 0
                • C
                  Christian Nichols
                  last edited by Sep 7, 2014, 3:54 PM

                  [quote=“Tom Elliott, post: 36277, member: 7271”]Have you tried applying the scope options for all of the individual vlan’s rather than just on the server?[/quote]

                  I had no idea I could configure options 66 & 67 in every scope. I thought you could only do it under Server Options like in my screenshot.

                  I’ll mess with it tomorrow to see if it works

                  1 Reply Last reply Reply Quote 0
                  • C
                    Christian Nichols
                    last edited by Sep 8, 2014, 12:41 PM

                    You guys were right! I’m booting into PXE and can see the FOG menu now! Ah I’m so excited
                    [IMG]http://i.imgur.com/l32robu.png[/IMG]

                    Yep… didn’t know you could configure options for individual scopes. Today I learned.

                    I’m going to try to import all of my FOG 0.32 Host info and images now and see where I stand then. Thank you guys so much for helping me out - I would’ve never figured it out without the assistance.

                    1 Reply Last reply Reply Quote 0
                    • C
                      Christian Nichols
                      last edited by Sep 8, 2014, 1:46 PM

                      [B]UPDATE: [/B]
                      I was receiving [QUOTE]FATAL: INT18: BOOT FAILURE[/QUOTE] message when selecting [I]Boot to Disk[/I], resolved it by updating to the latest Published Kernel (x64)

                      1 Reply Last reply Reply Quote 0
                      • C
                        Christian Nichols
                        last edited by Sep 8, 2014, 7:13 PM

                        Well now that I’ve actually had the chance to venture out to the workstations on the other VLANs I noticed all of them are booting to PXE but once the FOG Menu is suppose to appear it errors out and reboots immediately. The error message flashes too quickly for me to tell what the problem was. It boots to the FOG menu fine if the workstation is located within the High School VLAN scope ([B]10.52.4-5.x[/B])

                        I’m going to assume it’s FOG’s [B]TFTP[/B] IP ([B]10.52.4.23[/B]) in FOG Settings > TFTP Server. The workstations on the [B]other[/B] VLANs cannot communicate with that IP because it is a High School VLAN IP.
                        [IMG]http://i.imgur.com/7nlVWb7.png[/IMG]

                        I may try manually changing FOG’s TFTP IP (FOG Settings > TFTP Server)to the FOG IP relevant to that specific VLAN to see if it will work - worse case, I guess, would be having to do that each time you want to use FOG on another VLAN

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Sep 8, 2014, 8:25 PM

                          On each of your switches, I’m going to guess that you’ve got STP (Spanning Tree Protocol) enabled? Can you enable Portfast or Rapid STP?

                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          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

                          1 Reply Last reply Reply Quote 0
                          • C
                            Christian Nichols
                            last edited by Sep 9, 2014, 2:26 PM

                            [quote=“Tom Elliott, post: 36343, member: 7271”]On each of your switches, I’m going to guess that you’ve got STP (Spanning Tree Protocol) enabled? Can you enable Portfast or Rapid STP?[/quote]

                            I will check on this as soon as I get credentials for the switches. We outsourced the VLAN configuration and never got the credentials.

                            Will update soon.

                            1 Reply Last reply Reply Quote 0
                            • C
                              Christian Nichols
                              last edited by Sep 11, 2014, 1:40 PM

                              Okay I’ve obtained the credentials and have access via telnet and web interface. Haven’t tried console.

                              Questions before I start configuring the switches:
                              [LIST]
                              []STP is enabled. Does it need to be disabled or just enable Portfast or Rapid STP alongside it?
                              [
                              ]Can this be done on just one of the end switches (like a lab switch) to see if it fixes the problem or does it have to be enabled on every switch in the network for it to have any effect?
                              []Should this be done after hours or do you think it can safely be done during the work day to avoid a lot of downtime for end-users?
                              [
                              ]Do you have a link to a tutorial/thread explaining how to do this with Cisco switches? Thought I’d ask.
                              [/LIST]
                              Thanks!

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott
                                last edited by Sep 11, 2014, 3:38 PM

                                STP, I’m assuming is enabled for a reason, so if you can I’d recommend start by enabling Portfast/Rapid STP if you can. If you cannot, see about disabling stp throughout if you can.

                                You can do it, for testing, on a switch at a time, so yes, you can “test” by enabling/disabling as needed to a known problem area.

                                I don’t know how your switches react, so I’d say, just for performance, if you can test it after hours.

                                I don’t have a tutorial, I’m sorry.

                                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                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

                                1 Reply Last reply Reply Quote 0
                                • JunkhackerJ
                                  Junkhacker Developer
                                  last edited by Sep 11, 2014, 3:49 PM

                                  i seem to recall someone having a short writeup about cisco switch configuration on the forums, or at least a link to one. some forum searching might yield useful results

                                  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
                                  • C
                                    Christian Nichols
                                    last edited by Sep 22, 2014, 4:29 PM

                                    [quote=“Junkhacker, post: 36537, member: 21583”]i seem to recall someone having a short writeup about cisco switch configuration on the forums, or at least a link to one. some forum searching might yield useful results[/quote]
                                    I found it. Jaymes wrote one. Thanks

                                    [url]http://fogproject.org/forum/threads/cisco-ws-c2960s-not-passing-pxe-or-proxydhcp.9916/[/url]

                                    [quote=“Tom Elliott, post: 36535, member: 7271”]STP, I’m assuming is enabled for a reason, so if you can I’d recommend start by enabling Portfast/Rapid STP if you can. If you cannot, see about disabling stp throughout if you can.

                                    You can do it, for testing, on a switch at a time, so yes, you can “test” by enabling/disabling as needed to a known problem area.

                                    I don’t know how your switches react, so I’d say, just for performance, if you can test it after hours.

                                    I don’t have a tutorial, I’m sorry.[/quote]

                                    Okay, I’ve enabled PortFast on all of the workstation interfaces (and on also on FOG Server switch port) and I’ve changed the Switch Mode from PVST to Rapid-PVST on both the FOG server switch & workstation switch with the same outcome. It doesn’t seem to make a difference. Connection timeout when it tries to load /default.ipxe

                                    However, it [B]DOES[/B] work on workstations connected to the same switch as the FOG Server.

                                    NOTE: I haven’t rebooted the switches since I’ve made those changes. Would that make a difference maybe?

                                    Any suggestions?

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Christian Nichols
                                      last edited by Sep 22, 2014, 4:58 PM

                                      This is some of the output of ‘show running-config’ command on the FOG server switch.

                                      Interface GigabitEthernet1/0/16 is the FOG Server

                                      [CODE]system mtu routing 1500
                                      ip subnet-zero
                                      ip routing
                                      !
                                      !
                                      !
                                      !
                                      no file verify auto
                                      !
                                      spanning-tree mode rapid-pvst
                                      spanning-tree extend system-id
                                      !
                                      vlan internal allocation policy ascending

                                      !
                                      interface GigabitEthernet1/0/16
                                      switchport trunk encapsulation dot1q
                                      switchport mode trunk
                                      spanning-tree portfast trunk
                                      [/CODE]

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Christian Nichols
                                        last edited by Sep 22, 2014, 5:54 PM

                                        [url]http://www.fogproject.org/wiki/index.php/Chainloading_PXE_to_iPXE_using_pxelinux.0[/url]

                                        Followed that guide and I can get to the menu from at least one VLAN now (I will check the others soon).

                                        Only different thing I did from the guide is use FOG’s hostname instead of IP - works fine.
                                        [CODE]DEFAULT vesamenu.c32
                                        MENU TITLE Fog Reimage Menu
                                        MENU COLOR TITLE 1;36;44 #ffffffff #00000000 std
                                        LABEL iPXE Boot
                                        MENU DEFAULT
                                        KERNEL ipxe.krn
                                        APPEND dhcp && chain http://fogserver/fog/service/ipxe/boot.php?mac=${net0/mac}
                                        PROMPT 0
                                        TIMEOUT 1[/CODE]

                                        Hope it images okay tho. One step at a time! I’ll report back.

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          Christian Nichols
                                          last edited by Sep 22, 2014, 6:41 PM

                                          Meh… doesn’t work in the other VLANs lol. [I]clenches fists[/I]

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

                                          183

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project