Configure FOG Server with two NICs
-
Here’s the scenario I’d like to hash out. I want to virtualize FOG with the following config:
The VM server will have two NICs. Is it possible to serve TFTP on two interfaces, one of which will also host DHCP on the internal VM network? The other interface will function normally as if config’d to work with an existing DHCP server on the prod net. I’m trying to find ways to speed up imaging and reduce prod network load to image a set of VMs on the same hyper-v server. -
@brakcounty On the server can you serve tftp on two interfaces. The tftp server is interface agnostic. The problem you will have is the FOG code running on the FOG server only knows about 1 network interface. So event if you pxe boot into the FOG iPXE on either interface, the ipxe menu will only point to the interface FOG considers the its imaging interface.
-
Hy there i can see your post and i have some suggestion
Network Setup:
NIC1: Connect NIC1 to your primary network (e.g., LAN) that will serve the FOG Server to clients.
NIC2: Connect NIC2 to a separate network segment (e.g., a dedicated storage network) for imaging and storage purposes.
Install FOG Server:Install FOG Server on your chosen server hardware. Follow the FOG Server installation instructions for your operating system (commonly Ubuntu or CentOS).
Configure NICs:Assign static IP addresses to both NICs. Use different subnets for each NIC. For example:
NIC1: IP: 192.168.1.100, Subnet: 255.255.255.0 (LAN network)
NIC2: IP: 192.168.2.100, Subnet: 255.255.255.0 (Storage network)
Network Configuration:Modify the network configuration files for both NICs to set the static IP addresses. On Ubuntu, the file is typically located at /etc/netplan/; on CentOS, it’s usually in /etc/sysconfig/network-scripts/.
Thanks and regards
JulianDudek -
@george1421 Even if I configure the storage group with one subnet and tftp with another?
-
@brakcounty the issue is with the ipxe menu. reguardless how you get to the fog ipxe menu its will point to the interface marked as for imaging.
With a web browser make a call to
http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00
this will display the text behind the ipxe menu. At the top it defined a variable that includes the IP address of the imaging interface. -
Hy
I hope my msg helped you thanks and regards.
-
@george1421 I see the set fog-ip variable and set storage-ip variable. Could I set those two variables with IPs of different interfaces? So for example, the interface IP server ipxe will be the “set fog-ip” and the interface IP serving NFS will be the “set storage-ip” var. Would that work?