From 74ea202c9dd8689d0793cd46c0fc54e11d659b25 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Tue, 24 Oct 2023 19:46:59 +0800 Subject: [PATCH] Update lxd_custom.md --- docs/guide/lxd_custom.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/guide/lxd_custom.md b/docs/guide/lxd_custom.md index 73e017149c..bb18ef4e6a 100644 --- a/docs/guide/lxd_custom.md +++ b/docs/guide/lxd_custom.md @@ -393,3 +393,19 @@ ip addr show ``` curl ipv6.ip.sb ``` + +### 删除隧道 + +``` +# 关闭隧道接口 +ip link set he-ipv6 down + +# 删除隧道接口 +ip tunnel del he-ipv6 + +# 删除IPv6地址 +ip addr del 修改这里改成你绑定的::2结尾的IPV6地址/80 dev he-ipv6 + +# 删除路由规则 +ip route del ::/0 dev he-ipv6 +```