networks
This commit is contained in:
commit
70b0b59ce1
|
@ -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
|
Loading…
Reference in New Issue