Wifi stop working (opensuse)

After hibernating and changing of network my internet stop working. The wifi connected to the router but no access to servers/web pages. After some web searching, the trick that solved the problem was netconfig update -f