@jsingh04 said in Static wan IP stops working after a power cycle:
it shows a name resolution error
Then you have a DNS problem.
When you set the WAN as DHCP it probably pulls some external DNS servers that the firewall itself can use if it's own DNS resolver is not working.
When you look at you system log you will note that initially the date/time is wrong. The boot log shows there is an RTC present but it seems to be incorrect. Probably the battery needs replacing.
When you boot it with a static IP set after a power cycle the clock will be wrong and that leads to a scenario where Unbound fails to start because it's cert is invalid or it see results as invalid because DNSsec is enabled (by default). That means ntpd cannot resolve any external servers and the time cannot be updated.
So do one (or more) of:
Fix the RTC battery.
Add at least one external DNS server when you use a static WAN.
Disable DNSSec in Unbound.
Add a local NTP server that can be reached by IP address.
Steve