> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/mininet_book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/mininet_book/operation/link.md).

# 链路操作

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

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

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

```
link s1 h2 down
```
