This commit is contained in:
Kameron Kenny - pi501 2024-04-12 10:09:36 -04:00
commit 70b0b59ce1
1 changed files with 12 additions and 0 deletions

12
provision_networks.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
ip link set eth0 promisc on
docker network create -d macvlan --subnet 10.99.22.0/24 --gateway 10.99.22.254 -o parent=eth0.22 infra_dev_net
docker network create -d macvlan --subnet 10.200.53.240/28 --gateway 10.200.53.254 -o parent=eth0.53 dns_local_net
#docker network create -d ipvlan --subnet=10.99.22.0/24 -o ipvlan_mode=l2 -o parent=eth0.22 infra_dev_net
# SAMPLE DOCKER RUN WITH NEW NETWORK:
# docker run --name container1 --net infra_dev_net --ip 10.99.22.11 -dt ubuntu