> For the complete documentation index, see [llms.txt](https://help.boomerang3.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.boomerang3.com/s2gw-installation-manual/advanced_use/set-static-ip.md).

# Set static IP

If you need to use a static IP for S2GW then you have to edit /etc/dhcpcd.conf file.

1. To edit the file, start Midnight Commander\
   \&#xNAN;*sudo mc*
2. Go to /*etc/dhcpcd.conf*.

![](/files/4GM9JUakiJ5HZVG32NdL)

3. Double click “4 Edit” or press F4 to open the file for edition.

![](/files/xmJi5f5uPmImSNxi61M8)

4. Go to the end of the file.
5. Assuming you want to set Ethernet cable interface to:\
   \
   \- IP 192.168.1.225\
   \- mask 255.255.255.0\
   \- gateway 192.168.1.1.\
   \- DNS 192.168.1.1\
   \
   add\
   \
   \&#xNAN;*`interface eth0`*\
   *`static ip_address=192.168.1.225/24`*\
   *`static routers=192.168.1.1`*\
   *`static domain_name_servers=192.168.1.1`*\
   \
   at the end of the file.\
   \
   For WLAN, add:\
   \
   \&#xNAN;*`interface wlan0`*\
   *`static ip_address=192.168.1.225/24`*\
   *`static routers=192.168.1.1`*\
   *`static domain_name_servers=192.168.1.1`*\
   \
   at the end of the file.
6. Double click “2 Save” or press F2 to save it.
7. Enter “sudo reboot” to restart the system. This will end the terminal connection.

![](/files/VYNIa5YT0UhHcUN3tJlS)

8. To check the configuration, connect again to the new IP and enter “*ifconfig*”.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.boomerang3.com/s2gw-installation-manual/advanced_use/set-static-ip.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
