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

    New script to update FOG Server's IP address

    Scheduled Pinned Locked Moved
    General
    1
    1
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by Wayne Workman

      https://github.com/FOGProject/fog-community-scripts/tree/master/updateIP

      So, wrote a script that changes a fog server’s IP address for you - including updating DHCP configurations on the local server too, if it’s marked inside of .fogsettings.

      Also - this script supports configuring up to 4 network interfaces, I thought coding for more than 4 would be excessive.

      The script also supports multi-homed FOG Servers. Meaning you can have 2 or 3 or 4 NICs all on totally different networks, the script will just ask you which one you want to use, and it’ll configure the server and DHCP appropriately including empty DHCP configurations for the non-chosen networks.

      The script fully respects /opt/fog/.fogsettings fields for bldhcp, dodhcp, and bootfilename fully.

      It purposely does not respect startrange, endrange,submask,ipaddress,plainrouter,routeraddress,dnsaddress. These values get updated based on the actual configuration of the only/chosen NIC.

      How to use

      Update your IP address, dns address, router address, and submask according to your distribution’s instructions. Clone the fog-community-scripts repository, navigate to the updateIP directory, then simply run ./updateIP

      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 2
      • 1 / 1
      • First post
        Last post

      345

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project