Conditions: Laptop is connected directly to the router via ethernet cable
Yast->network settings->overview->etho->edit
set to DHCP and accept.
Verify:
bart@TOS-OS:~> ip addr | grep inet
inet 127.0.0.1/8 scope host lo
inet 192.168.1.119/24 brd 192.168.1.255 scope global eth0
Internet connections work correctly
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=33.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=34.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=33.4 ms
Yast->network settings->overview->etho->edit
set to statically assigned ip address 192.168.1.119/24 and accept.
bart@TOS-OS:~> ip addr | grep inet
inet 127.0.0.1/8 scope host lo
inet 192.168.1.119/24 brd 192.168.1.255 scope global eth0
I can no longer reach internet.
bart@TOS-OS:~> ping 8.8.8.8
connect: Network is unreachable
I still think it is strange the OP has no default route defined.
He states that he set it to using DHCP. Then, IMHO, the route should be have been set by the DHCP server.
I misread it that way at first. However, if you look closely, it worked with DHCP. But he then switched to static IP assignment, which would lose that route from DHCP.
That’s what caught me. I thought, although not correctly, that all the needed settings would be in one area. I knew that I needed a route, but as there was no entry where I set static address, I missed it on the other panels. My bad. But then the people here on this forum once again provided the needed help, and, most likely, in less time than I would have spent on hold had I called a “support line”