Fog affecting internet on network



  • Just recently, our Fog server has started to interfere with the internet connection on our work network. We are running Fog 0.32 on Ubuntu 12.04. I also have a Fog server at home which has had this problem since day one, but assumed it had something to do with my awful Virgin SuperHub DHCP conflicting with Fog. But now it has started happening at work and I really need to get to the bottom of it.
    As soon as Fog is switched on, various devices on the same network will begin to have “Internet Connectivity Issues” (Wired + Wireless), and when I switch Fog off, they all eventually regain internet access again.

    I am by no means a Fog/Ubuntu expert. I have edited my PXE boot menu a bit, and I know my way around the Fog directory to change the Kernal when facing stubborn systems. The only way I have ever installed Fog is by following strict instructions from a forum or video tutorial. Without this I would be absolutely lost in Ubuntu.

    Is it time for me to upgrade to a later version of Fog? Does anybody know what the cause of this might be?

    Please let me know if I need to provide any further information.

    Thanks in advance


  • Developer

    [quote=“Haz, post: 39698, member: 3272”]Well I promised an update so here it is.

    Unfortunately after following your precise instructions and steps from the wiki you linked me, it is still giving me the same grief :(

    I think it’s time to give up trying to fix this issue and just do a reinstall.

    Many thanks to you both for your time and help, it is much appreciated!

    Kind regards
    Harrison[/quote]

    If you would like help with your DNSMASQ just send me a pm we can work together to solve the issues :)



  • Well I promised an update so here it is.

    Unfortunately after following your precise instructions and steps from the wiki you linked me, it is still giving me the same grief :(

    I think it’s time to give up trying to fix this issue and just do a reinstall.

    Many thanks to you both for your time and help, it is much appreciated!

    Kind regards
    Harrison


  • Developer

    That line “but was having difficulty getting the ltsp.conf file in the correct directory due to the permissions on Ubuntu” worries me.

    Instead of making a file and moving it… create it and save it in the location that it belongs

    [code]sudo gedit /etc/dnsmasq/ltsp.conf[/code]

    Then paste in the information from the wiki, be sure to use the DNSMASQ settings for iPXE and then save the file.

    This will make the file when you save and exit.

    Because you use sudo, the file will be created as if it were done by the root user and issues with having to move the file should go away because the file is already in place where it needs to be. Then you need to restart the dnsmasq service and edit your /etc/exports file as the wiki commands, set up the symbolic link and all should be well.



  • Hi Jaymes, thanks for the info.

    I did have a look at DNSMASQ last night when researching into what Tom had said on his previous post. Time was getting on a bit, and just reading the word DHCP was making my eyes ache so I gave up in the end. I got as far as installing DNSMASQ through the terminal and creating the ltsp.conf file, but was having difficulty getting the ltsp.conf file in the correct directory due to the permissions on Ubuntu (I have managed to successfully do this kind of thing before in Ubuntu, but time was taking its toll on me and I was starting to get restless whilst trying to figure out/remember the sudo command to do this).

    I am currently at work, and life experience is telling me not to touch the work Fog server yet until I have sorted my home server out and am confident in doing it. I’ll have another look at mine tonight and update you on how I get on.

    Thank you both for your time patience with me :)


  • Developer

    You can do one of two things at this point. Yes, you can back up your images and install a fresh server, or you can try using DNSMASQ to get your current server working.

    [url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url]

    I recommend DNSMASQ, as this alleviates the need to edit the DHCP/DNS scope to include your fog server. and when removed your network will still run happily. This should take less than 5 minutes to set up and configure, if afterwards you are still unable to get to your boot file, a re-installation would not be a bad idea. I would still use 1.2.0 though.

    Tom works quickly and diligently to fix issues with 1.2.0, and upgrading is a piece of cake when an update is available :)



  • Hi Tom,

    Thank you again for your response. Your advice is very appreciated but unfortunately my network skills/knowledge have hit a brick wall, and although I have read into what you have suggested I still can’t seem to get my head around it :/
    Setting my main DHCP server (which is my router) to know where to get the PXE boot files, I imagine is either logging into my router and doing something in there, or using Ubuntu to tell my router where to look for the PXE boot files (presumably the Fog server IP address).

    I may not be making much sense here so how about this -

    If I back up my image files now and decide to upgrade to a more up to date Fog version, can I choose “no” for the DHCP server on Fog, and my main DHCP will be configured automatically? (I have a feeling this is wishful thinking).

    Am I right in thinking it’s better to go for an earlier version than 1.2.0. as this is still a “work in progress”?

    Many thanks


  • Senior Developer

    I think it’s more related to your Option 66/67 settings on the network.

    As you’ve removed the dhcp server that was handing over this information, it no longer exists as you stated.

    Seeing as you have a primary DHCP server, you need to set that main system to know where to get the files needed to PXE boot.



  • Hi Tom,

    Thank you for the sudo command, you were very close too! I found that you had to add “-server” to the end of it, so in full it was -

    sudo apt-get remove --purge isc-dhcp-server dhcp3-server

    This seems to have done something, as my Fog server at home never used to be able to get internet access and now it works!
    The only issue now, is that when I try to PXE boot a machine I get the “no boot filename not received” error. I get the feeling that Fog is still trying to use it’s own DHCP server which is now not there anymore, so it is timing out and giving that error message.

    I could be completely wrong though…


  • Senior Developer

    You will have to open a terminal and run a few sudo commands, though I don’t know which ones specifically.

    something like:
    [code]sudo apt-get remove --purge isc-dhcp-server dhcp3[/code]



  • Thanks again for your reply Tom,

    Looking back at it now, it does seem pretty obvious about the DHCP server and that I should have selected “no” during the installation. This is what you get for blindly following a tutorial without concentrating fully on what it was asking me to do.

    OK, so my solution for this would have been to backup my image files and format/reinstall the Fog server and selecting “no” to the DHCP during the install, but you mention uninstalling the DHCP server instead. How would I go about doing this? Can I do it though the Fog dashboard interface, or will I have to go through the Ubuntu Terminal using sudo commands etc?

    I am most appreciative of your time and information so far Tom, so if I have just opened up a can of worms asking how to uninstall Fogs DHCP please just tell me and I will just go through format/reinstall route instead - I honestly don’t mind.

    Thanks again :)


  • Senior Developer

    They’ll be allocated one from your router, which is likely what’s causing the problem in general.

    Basically, you have two DHCP server’s on the system which would give you the problems you’re describing. Why this suddenly started occurring is beyond me too. All I can guess is your regular DHCP server is handing out IP’s within the range of the FOG Server’s scope now, where before it wasn’t.

    To fix, all you should have to do is uninstall dhcp server from the server itself. You can upgrade if you want, but I don’t know if it’s going to fix the dhcp problem.



  • Hi Tom, thank you for your quick response :)

    Yes, the tutorial that I followed did say to install the DHCP server with Fog. I did wonder whether it was to do with this too, but seeing as it has only started affecting our work network after roughly 1 year of it being installed I was slightly confused.
    So, this might be a silly question -

    If I reinstall Fog now and select “no” during the installation when it asks about the DHCP server, will I have to manually put one in for hosts when doing the “Full Host Registration and Inventory”, or will it just be allocated one from our router instead?

    Thanks again


  • Senior Developer

    The only cause I can think of is that you’ve installed DHCP server with your fog system.[quote=“Haz, post: 39447, member: 3272”]Just recently, our Fog server has started to interfere with the internet connection on our work network. We are running Fog 0.32 on Ubuntu 12.04. I also have a Fog server at home which has had this problem since day one, but assumed it had something to do with my awful Virgin SuperHub DHCP conflicting with Fog. But now it has started happening at work and I really need to get to the bottom of it.
    As soon as Fog is switched on, various devices on the same network will begin to have “Internet Connectivity Issues” (Wired + Wireless), and when I switch Fog off, they all eventually regain internet access again.

    I am by no means a Fog/Ubuntu expert. I have edited my PXE boot menu a bit, and I know my way around the Fog directory to change the Kernal when facing stubborn systems. The only way I have ever installed Fog is by following strict instructions from a forum or video tutorial. Without this I would be absolutely lost in Ubuntu.

    Is it time for me to upgrade to a later version of Fog? Does anybody know what the cause of this might be?

    Please let me know if I need to provide any further information.

    Thanks in advance[/quote]


Log in to reply
 

378
Online

39.5k
Users

11.1k
Topics

105.6k
Posts

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