Local host name is lost from the /etc/hosts file after reboot on Gaia OS

Host File Missing in Checkpoint firewall
Local host name is lost from the /etc/hosts file after reboot on Gaia OS
  • Local host name is lost from the /etc/hosts file after reboot.
  • Manually editing the /etc/hosts file and rebooting does not resolve the issue.
Cause
Gaia OS fails to associate the hostname with the IP address.
Solution

To resolve the problem, run the following commands from Gaia Clish:

1) hostname> set host name HOSTNAME ipv4-address INTERFACE_IP_ADDRESS
hostname> save config


**********************************************************************************
2)   (i) Go to Expert Mode and type " vi /etc/hosts"
      (ii)  Now edit the host file and add Ip address of firewall associated with host file and then space and then Hostname of your firewall. See screen shot for reference. 




(iii) Now press Ctl+C in your PC and type " :wq" to save and quit from Virtual Editor. 

(iv) Now you have added host file in your firewall. To confirm it go to expert mode and type
" cat /etc/hosts" to check host entry. 



To see the video on this topic just click on below link and don't forget to subscribe our channel. 

Add Host File in Checkpoint Firewall.






Comments

Popular posts from this blog

Download IOS Image for Router

tcpdumps in Checkpoint Firewall