Implement macvlan to LAN to allow access to physical network

pull/3/head^2
Stanley Lim 2020-05-24 11:02:12 +08:00
parent 85bd477f87
commit e6f611efd5
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,8 @@ UPSTREAM_DNS_SERVER=8.8.8.8
# Static IP address configuration for OpenWRT LAN
LAN_NAME=openwrt-lan
# host interface which will provide the LAN link for OpenWRT
LAN_PARENT=eth1
LAN_DOMAIN=home
LAN_SUBNET=192.168.16.0/24
LAN6_SUBNET=fd99:1234::/48

3
run.sh
View File

@ -55,7 +55,8 @@ function _gen_config() {
function _init_network() {
echo "* setting up docker network"
docker network create --driver bridge \
docker network create --driver macvlan \
-o parent=$LAN_PARENT \
--subnet $LAN_SUBNET \
$LAN_NAME || exit 1