15 lines
753 B
Bash
Executable File
15 lines
753 B
Bash
Executable File
#!/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 macvlan --subnet 10.99.153.240/28 --gateway 10.99.153.254 -o parent=eth0.153 pub_dns_net
|
|
docker network create -d macvlan --scope swarm --subnet 10.99.153.240/28 --gateway 10.99.153.254 -o parent=eth0.153 pub_dns_swarm_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
|