Created
February 19, 2021 01:48
-
-
Save Skyxim/2258cf8e32a30a32b69f88b11c139ec7 to your computer and use it in GitHub Desktop.
设置armbian network 与docker的macvlan模式下的容器桥接互相访问
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto eth0 | |
iface eth0 inet manual | |
auto macvlan | |
iface macvlan inet static | |
#armbian地址 | |
address 10.0.0.5 | |
broadcast 10.0.0.255 | |
netmask 255.255.255.0 | |
#旁路由的ip地址 | |
gateway 10.0.0.2 | |
dns-nameservers 127.0.0.1 | |
pre-up ip link add macvlan link eth0 type macvlan mode bridge | |
post-down ip link del macvlan link eth0 type macvlan mode bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment