# 链路操作

在 Mininet cli 中，使用 `link` 命令，禁用或启用某条链路，格式为

```
link node1 node2 up/down
```

例如临时禁用 s1 跟 h2 之间的链路，可以用

```
link s1 h2 down
```


---

# 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://yeasy.gitbook.io/mininet_book/operation/link.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.
