ChetanGaonker | 901727c | 2016-11-29 14:05:03 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | sudo docker run --privileged --cap-add=ALL -d -v /dev:/dev -v /lib/modules:/lib/modules --name access -t vlan /bin/bash | ||||
4 | sudo ./pipework fabric -i eth1 access 10.168.0.254/24 | ||||
5 | sudo docker exec -d access modprobe 8021q | ||||
6 | sudo docker exec -d access vconfig add eth1 222 | ||||
7 | sudo docker exec -d access ip link set eth1.222 up | ||||
8 | sudo docker exec -d access ip addr add 10.169.0.254/24 dev eth1.222 |