Update lxd_custom.md

This commit is contained in:
spiritlhl
2023-10-23 23:31:21 +08:00
committed by GitHub
parent 6b0d954d1a
commit 5745f259fb

View File

@@ -38,8 +38,15 @@ systemctl is-active networking
# sudo systemctl disable systemd-networkd
# sudo systemctl stop systemd-networkd.socket
# sudo systemctl disable systemd-networkd.socket
```
安装```ifupdown```控制网络(注意下面的平台不同可能有的平台需要```ifupdown2```)
```
sudo apt-get install ifupdown -y
```
```
sudo systemctl start networking
sudo systemctl enable networking
```
@@ -126,6 +133,8 @@ route -A inet6 add ::/0 dev he-ipv6
### netassist
这个平台你在切换网络管理时务必使用```ifupdown2```而不是```ifupdown2```安装包因为前者使用v4tunnel协议该平台使用sit协议而sit协议需要在```ifupdown2```控制的环境中使用
类似上述的操作,先在 [https://tb.netassist.ua/](https://tb.netassist.ua/) 注册一个账户先,注册后点击激活的邮件,激活页面会有密码显示,记得记录
然后就是填写你的服务器IPV4地址这个后面可以自己修改先随便填一个都没问题
@@ -156,6 +165,13 @@ sudo tee -a /etc/network/interfaces <<EOF
EOF
```
然后你就需要重启一下系统,保证环境无问题再进行别的操作了
然后你就需要重启一下系统,或者执行
```
apt-get install net-tools iproute2 -y
systemctl restart networking
```
保证环境无问题再进行别的操作了