Change FOG Server IP Address

Posted By : Shiv Shankar | 14-Dec-2017

If we need to transfer the server from one network to another or provide another interface on the fog server or to provide another static IP as per the requirement, then we can change the FOG server IP.

 

Main Steps:-

 

  • Update the ipaddress= field (and other fields if necessary) inside the /opt/fog/.fogsettings file.

  • Rerun the installer

  • Update the IP address for the storage node on the FOG system where you changed the IP address Web Interface -> Storage Management

  • Update the IP address on a any master storage node that may reference this FOG server Web Interface -> Storage Management

  • (For master server) Update the FOG_WEB_HOST value Web Interface -> FOG Configuration -> FOG Settings -> Web Server -> FOG_WEB_HOST

  • (For master server) Update the FOG_TFTP_HOST value Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server -> FOG_TFTP_HOST

 

FOG Settings File

 

Update the /opt/fog/. file:

 

sudo vim /opt/fog/.fogsettings

 

Instructions on using Vim: Vim

 

There are several settings in here that may need updated depending on if you're running DHCP on the fog server or not. But the one that must be updated is the ipaddress=x.x.x.x setting. Update this with the correct IP. Save your changes and quit, and then re-run the fog installer.

 

Additional information about the /opt/fog/.fogsettings file can be found here: .fogsettings


 

  • Change FOG server settings
  • Cancel any pending capture/deploy tasksTasks > Active Tasks (Previous IP settings are embedded in task info)
  • Log in to FOG WebUI > about > FOG Settings
  • General Setting: FOG_WOL_HOST

 

TFTP Server: FOG_TFTP_HOST, FOG_PXE_IMAGE_DNSADDRESS

 

WEB Server: FOG_WEB_HOST

 

FOG WebUI > about > PXE Boot Menu > Save PXE Menu

 

FOG WebUI > Storage Management > All Storage Nodes

 

DefaultMember: IP Address

 

DHCP server configuration file (https://d2ozz7pa6o5n24.cloudfront.net/etc/dhcpd.conf) restart service after changes are made.

 

PXE Menu changes ( //pxelinux.cfg/default)

 

Replace any previous IP addresses with new IP address

 

This also applies if your DNS server has changed. You would replace all previous DNS IP addresses with new DNS server IP address.

 

Example (no change to DNS):

 

Old line in /tftpboot/pxelinux.cfg/default:

 

append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=X.X.X.1 mode=quickimage keymap=web=X.X.X.X/fog/ loglevel=4 consoleblank=0

 

New line in /tftpboot/pxelinux.cfg/default:

 

append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=quickimage keymap= web=X.X.X.X/fog/ loglevel=4 consoleblank=0

 

About Author

Author Image
Shiv Shankar

Shiv is a highly skilled Infra professional, specializing in Linux, infrastructure management, Prometheus, AWS, Docker, shell scripting, Grafana, and Ansible. His expertise lies in effectively designing, deploying, and managing scalable solutions on the AWS platform, as evidenced by his certifications in CCNA and AWS. Shiv's proficiency in Docker, shell scripting, Prometheus, Grafana, and Ansible enables him to streamline infrastructure management and automate various processes for enhanced efficiency.

Request for Proposal

Name is required

Comment is required

Sending message..