Network with Static Configuration
-
Hi,
I have a network with 50 clients, the IP configuration is on static. Can anyone advice how can I use FOG do deploy my image. My network also is not on the domain only workgroup. Need assitance please. Thanks a lot.
-
You can setup your Fog server as DHCP and PXEBoot. The IP address given during PXE boot will only be used for that function, and when the regular operating system loads, it will switch to it’s configured static IP address.
Just setup your DHCP scope to be outside the normal IP range used by your static network. I’m assuming you have a pretty simple networking, no VLANS, just a few switches, most likely unmanaged.
If you have a more complex network, it can still be done, just more things to consider when configured it all.
-
Thanks a lot !
Actually I have 3 VLANS, I dont have access to the switch, its controlled by outside vendor.
If you could give me more advice and ideas it will be highly appreciated. Cheers! -
Go ahead and setup your Fog server with DHCP and make sure the range is outside those used by your statics. You may have to adjust the switch settings to enable DHCP Relay or IP Helper so that DHCP broadcasts from the PXE client are routed to the Fog server.
Sometimes this setting is already in place by whomever configured the VLANs, but since you don’t have an existing DHCP server, it probably is not configured.
If worse comes to worse, you can setup a Fog server in each vlan to handle TFTP and DHCP, but have them synchronize all images with a master server.
-
Hi thanks a lot, one more question, if I deploy 50 new PCs and run multicast do I need to with get the mac address manually of each PC to run fog?
-
You will have to register them with the Fog server before you can multicast to them. There are modifications to Fog which allow multicasting without registration, but those changes are 3rd party and not officially supported.
-
Hi,
I’m having issue setting up my fog server as a DHCP
[COLOR=black][FONT=Arial]below are the IP configrationof my VLAN.[/FONT][/COLOR][COLOR=black][FONT=Arial]My 1st Vlan[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Static IP Range: 10.225.161.164 to 10.225.161.190[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Subnet Mask: 255.255.255.224
Gateway 10.225.161.161[/FONT][/COLOR]My 2nd VLan
[COLOR=black][FONT=Arial]Static IP Range: [/FONT][/COLOR]10.225.161.65 - 10.225.161.94
[COLOR=black][FONT=Arial]Subnet Mask: 255.255.255.224
Gateway 10.225.161.164[/FONT][/COLOR]I follow the installation in wiki, and change the IP configuration on DHCP conf. I also install dnsmsq.
But I can’t make it work. My Fog server is on the 1st vlan. any configuration I have to do with dhcp
or shall I install proxyDHCP?Need your advise please.
-
Are you able to get a DHCP lease from a client machine on the same vlan/subnet as the DHCP server?
-
Yes I was getting IP lease on the same VLAN of my DHCP, but not on the other vlans.
Anything we could do ?
Below is my dhcpd.conf:DHCP Server Configuration file.
see /usr/share/doc/dhcp*/dhcpd.conf.sample
This file was created by FOG
use-host-decl-names on;
ddns-update-style interim;
ignore client-updates;
next-server 10.225.161.29;subnet 10.225.161.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.224;
range dynamic-bootp 10.225.161.25 10.225.161.28;
default-lease-time 21600;
max-lease-time 43200;option domain-name-servers x.x.x.x;
option routers x.x.x.x;
filename "pxelinux.0";
}
-
You need to enable DHCP Relay (IP Helper) in all your VLAN aware switches.
From [url]http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch08:_Configuring_the_DHCP_Server#Using_a_Single_DHCP_Server_to_Serve_Multiple_Networks[/url]
[QUOTE]
[LEFT][FONT=sans-serif][COLOR=#000000]As stated before, DHCP clients send their requests for IP addresses to a broadcast address which is limited to the local LAN. This would imply that a DHCP server is required on each subnet. Not so. It is possible to configure routers to forward DHCP requests to a DHCP server many hops away. This is done by inserting the IP address of the router’s interface on the DHCP client’s network into the forwarded packet. To the DHCP server, the non-blank router IP address field takes precedence over the broadcast address and it uses this value to provide a DHCP address that is meaningful to the client. The DHCP server replies with a broadcast packet, and the router, which has kept track of the initial forwarded request, forwards it back towards the client. You can configure this feature on Cisco devices by using the ip helper-address command on all the interfaces on which DHCP clients reside. Here is a configuration sample that points to a DHCP server with the IP address 192.168.36.25:[/COLOR][/FONT][/LEFT]
[CODE]interface FastEthernet 2/1
ip address 192.168.1.30 255.255.255.0
ip helper-address 192.168.36.25[/CODE]
[/QUOTE] -
Let me check on this, I think this could be a big problem for me… actually I’m working at the airport I believe our network are very complicated and requesting some changes with the switch would take a lot of debate. But let try, I have to check to my boss if we could make such request. Thank you so much for answering all my queries, highly appreciated.
I might be posting more questions please be patient with with me cheers !
-
Hi,
I tried to create and imaged but after it finished, I got and error " FTP connection to Storage Server has failed! "
I am just using the default user group. Any advice please. -
Are you using a single FOG server or a Normal server plus one or more FOG servers installed in storage mode?
-
Just one server, currently using the default storage management.
Config.php below:
PXE_IMAGE_DNSADDRESS", “” );
define( “STORAGE_HOST”, “10.225.161.29” );
define( “STORAGE_FTP_USERNAME”, “fog” );
define( “STORAGE_FTP_PASSWORD”, “lounge” );
define( “STORAGE_DATADIR”, “/images/” );
define( “STORAGE_DATADIR_UPLOAD”, “/images/dev/” );
define( “STORAGE_BANDWIDTHPATH”, “/fog/status/bandwidth.php” );
define( “CLONEMETHOD”, “ntfsclone” ); // valid values partimage, ntfsclone
define( “UPLOADRESIZEPCT”, 5 );
define( “WEB_HOST”, “10.225.161.29” );
define( “WEB_ROOT”, “/fog/” );
define( “WOL_HOST”, “10.225.161.29” );
define( “WOL_PATH”, “/fog/wol/wol.php” );
define( “WOL_INTERFACE”, “eth0” );
define( “SNAPINDIR”, “/opt/fog/snapins/” );
define( “QUEUESIZE”, “10” );
define( “CHECKIN_TIMEOUT”, 600 );
define( “MYSQL_HOST”, “localhost” );
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “root” );
define( “MYSQL_PASSWORD”, “lounge” );
define( “DB_TYPE”, “mysql” );
define( “DB_HOST”, MYSQL_HOST );
define( “DB_NAME”, MYSQL_DATABASE );
define( “DB_USERNAME”, MYSQL_USERNAME );
define( “DB_PASSWORD”, MYSQL_PASSWORD );
define( “DB_PORT”, null );Do i have to edit any setting for storage node ? any config.php?
My default storage node
[SIZE=4][B]FOG Storage Nodes[/B][/SIZE]FOG_STORAGENODE_MYSQLUSER
FOG_STORAGENODE_MYSQLPASS -
When you installed Linux, did you create the fog user or let the installfog.sh file create it? You may have to go through the password synchronization steps on the wiki to get the fog username and password fixed for all the different places it’s used.
-
I let installfog.sh create it …I have check all password synchronization on wiki and follow it thoroughly but still this problem persist. Only thing I am not sure about is the fog storage node, If I have to change anything because I am using the default storage node, as of now it is still on default, (it is using different password).
Can you let me know if I have to change the FOG_STORAGENODE_MYSQLPASS, same as my MYSQL root password?
[INDENT]FOG_STORAGENODE_MYSQLUSER
FOG_STORAGENODE_MYSQLPASS[/INDENT] -
In the FOG web interface, go to Storage Management, All Storage Nodes, and click on the DefaultMember. Make sure the Management Password is set to the same password as the fog user in the OS, which appears to be “lounge” based on your config.php file you posted.
-
You got this right on target !! Thanks a lot !
Now my server is working I was able to upload and deploy images. I have my images in XP.
Now I have to try doing my Windows 7 Image. Hope not to face any issues.
Again, thanks you so much for the help ! Cheers !