FOG installation issue - IP and router settings
-
Hi All,
I’m trying to install FOG server on a CentOS7 server. The IP address of the Server itself is 192.168.64.153. When starting the installation procedure, the default IP of the FOG server is set to 192.168.122.1.
When i’m trying to change the default IP address to address in the 192.168.64.0 subnet, i can’t reach it, but i also can’t reach the 192.168.122.1 default address… what am i missing? Shouldn’t the FOG server address be the same as the server address?
Thanks in advance.
-
AFAIK the fog installer doesn’t change the IP address of the linux server during installation. That is not something normal. I wonder where its getting the 192.168.122.1 value from? Was the fog server ever at that address?
If you look at the hidden fog configuration file in /opt/fog/.fogsettings do you see that IP address in there?
What is the output of this command
ip addr show
Just so I’m clear, where are you seeing the ip address of 192.168.122.1 displayed? Is it on the target computer, FOG server web ui, some place else?
-
IP ADDR SHOW:
[root@fog ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 6c:4b:90:4c:95:63 brd ff:ff:ff:ff:ff:ff
inet 192.168.64.153/24 brd 192.168.64.255 scope global noprefixroute dynamic enp2s0
valid_lft 688709sec preferred_lft 688709sec
inet6 fe80::dfb8:d2dd:3db4:8427/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:76:58:61 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:76:58:61 brd ff:ff:ff:ff:ff:ffi see the virbr0 (?) had the IP i mentioned before, but i have no idea what it is… The server has one physical network adapter - enp2s0.
Apologies, this is my first Linux installation…
-
@kovals said in FOG installation issue - IP and router settings:
virbr0
Well now we know where that IP address is coming from. Virbr is a virtual bridge adapter and it not needed unless you are doing NAT or something else non-typical. During the FOG install it must have picked that network adapter by default.
Lets see if we can fix this.
First lets edit the hidden config file called/opt/fog/.fogsettings
You will need to edit it as root or sudo launch your editor. There is a line in there that saysinterface=
, my bet is it lists virbir0 as the parameter. We need to change that to enp2s0. Save the config file and then rerun the installer from the fogproject/bin directory. The last steps is that you will need to go into the web ui and update the storage node and fog settings parameter changing 192.168.122.1 to the proper IP address. Those steps are outlined here for FOG 1.3.0: https://wiki.fogproject.org/wiki/index.php/Change_FOG_Server_IP_AddressOnce that has been changed reboot your fog server. IF that 122.1 IP address comes back then we will have to dig a bit deeper. But that process should fix it.
-
Changing the interface to enp2s0 solved the problem - many thanks George, really appreciate your support.