Set Static IP Address for Ethernet Connection in Raspberry Pi OS
For Bookworm OS: - Click the network icon in the top-right side of the Raspberry pi Desktop. - Click on the advanced option. - Click on edit connections - Select the wired Connections. Double click on it and wired connection window will open. - Go to the IPv4 Settings Tab. - Select Manual from drop-down menu (by default Automatic is selected). - Click on add button. - Enter IP address, subnet mask and default gateway in respective text boxes. - Click on the Save button to save the changes. Now your ethernet connection in Raspberry pi has a static ip address.