Merge branch 'master' of https://github.com/v01ded/docker-openwrt into macvlan_for_lan

pull/4/head
Jordan Sokolic 2020-05-24 21:44:19 +03:00
commit 1c23d73548
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