blob: 76a1f7a39d5b71f794cbf0540a7c2a2d08058575 [file] [log] [blame]
ChetanGaonker901727c2016-11-29 14:05:03 -08001#!/bin/bash
2
3sudo docker run --privileged --cap-add=ALL -d -v /dev:/dev -v /lib/modules:/lib/modules --name access -t vlan /bin/bash
4sudo ./pipework fabric -i eth1 access 10.168.0.254/24
5sudo docker exec -d access modprobe 8021q
6sudo docker exec -d access vconfig add eth1 222
7sudo docker exec -d access ip link set eth1.222 up
8sudo docker exec -d access ip addr add 10.169.0.254/24 dev eth1.222