# Routing

### Routing Basics

Routing is the process of selecting paths in a network along which to send network traffic. It is crucial for connecting different networks and for the correct delivery of data from one network to another.

### Adding Static Routes on Linux

To add a static route on a Linux system, you use the `ip route add` command followed by the network range, the gateway address, and the device name.

### **Example Command**

```bash
ip route add 10.10.10.0/24 via 10.10.10.1 dev tun0
```

This specific command is telling the operating system to send all traffic destined for the `10.10.10.0/24` network to the next-hop gateway at `10.10.10.1` via the `tun0` network interface.


---

# Agent Instructions: 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:

```
GET https://ejpt-certification.certs-study.com/networking/routing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
