> For the complete documentation index, see [llms.txt](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/txt-files/routed.md).

# routed

## routed

The `routed` command in Linux is a deprecated command that was used to configure and manage routing tables. Routing tables are used to determine the path that packets should take to reach their destination.

The `routed` command is no longer recommended for use. It is a legacy protocol that is not secure and can be spoofed by attackers. Instead, you should use the `ip` command to configure and manage routing tables.

The `ip` command is a powerful tool that can be used to do a variety of things with routing tables, including:

* Adding routes to the routing table.
* Removing routes from the routing table.
* Displaying the routing table.
* Troubleshooting routing problems.

The `ip` command is used in the following syntax:

```
ip [options] [command]
```

The `command` is the specific task that you want to perform on the routing table.

For example, to add a route to the routing table for the destination `192.168.1.0/24`, you would use the following command:

```
ip route add 192.168.1.0/24 via 192.168.0.1
```

This command will add a route to the routing table for the destination `192.168.1.0/24` with the gateway `192.168.0.1`.

The `ip` command is a powerful tool that can be used to do a variety of things with routing tables. It is supported by most Linux distributions and is a versatile tool for managing your routing tables.

Here are some of the benefits of using `ip`:

* It is a powerful and versatile tool that can be used to do a variety of things with routing tables.
* It is supported by most Linux distributions.
* It is a free and open-source software.

Here are some of the drawbacks of using `ip`:

* It can be difficult to use for complex tasks.
* It can be slow to add or remove routes from the routing table.
* It is not as secure as some other tools for managing routing tables.

The `ip` command is a powerful tool that can be used to do a variety of things with routing tables. It is supported by most Linux distributions and is a versatile tool for managing your routing tables. However, it can be difficult to use for complex tasks and can be slow to add or remove routes from the routing table.

## help

```
```


---

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

```
GET https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/txt-files/routed.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.
