之前用 debian ,用 /etc/network/interfaces 配置网络,现在改了 ubuntu ,是 netplan 配置网络 在 debian 里的配置文件里,有如下配置
auto eth0 iface eth0 inet manual auto macvlan iface macvlan inet dhcp pre-up ip link add macvlan link eth0 type macvlan mode bridge post-down ip link del macvlan link eth0 type macvlan mode bridge
上述配置如何在 netplan 里实现同样的效果?
1
titanium98118 2022-03-05 22:53:55 +08:00 via Android
我是搞不懂 netplan ,用回 ifup/down
|
2
blueboyggh OP @titanium98118 ubuntu 从 netplan 改回 /etc/network/interfaces 有啥副作用吗?
|
3
blueboyggh OP auto eth0
iface eth0 inet manual auto macvlan iface macvlan inet dhcp pre-up ip link add macvlan link enp0s3 type macvlan mode bridge post-down ip link del macvlan link eth0 type macvlan mode bridge |
4
blueboyggh OP 怎么主题里的配置文件都合并到一块了呢,各位大佬看 3 楼吧
|
5
titanium98118 2022-03-05 23:15:21 +08:00 via Android
@blueboyggh 应该没啥副作用吧,不过我
只是用来配 he 的 ipv6 tunnel |