一个关于 Ubuntu 的 netplan 的配置问题

2022-03-05 22:19:40 +08:00
 blueboyggh

之前用 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 里实现同样的效果?

1177 次点击
所在节点    问与答
5 条回复
titanium98118
2022-03-05 22:53:55 +08:00
我是搞不懂 netplan ,用回 ifup/down
blueboyggh
2022-03-05 23:02:16 +08:00
@titanium98118 ubuntu 从 netplan 改回 /etc/network/interfaces 有啥副作用吗?
blueboyggh
2022-03-05 23:03:03 +08:00
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
blueboyggh
2022-03-05 23:03:27 +08:00
怎么主题里的配置文件都合并到一块了呢,各位大佬看 3 楼吧
titanium98118
2022-03-05 23:15:21 +08:00
@blueboyggh 应该没啥副作用吧,不过我
只是用来配 he 的 ipv6 tunnel

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/838255

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX