Skip to content

Instantly share code, notes, and snippets.

@jistr
Created December 1, 2015 12:42
Show Gist options
  • Save jistr/e8d29382b27ea57d60fa to your computer and use it in GitHub Desktop.
Save jistr/e8d29382b27ea57d60fa to your computer and use it in GitHub Desktop.
# sudo ovs-vsctl add-port br-ctlplane vlan10 tag=10 -- set interface vlan10 type=internal
# sudo ip addr add 172.16.10.251/24 dev vlan10
# sudo ip link set vlan10 up
# sudo iptables -A BOOTSTACK_MASQ -s 172.16.10.0/24 ! -d 172.16.10.0/24 -j MASQUERADE -t nat
parameter_defaults:
ExternalNetCidr: '172.16.10.0/24'
ExternalAllocationPools: [{'start': '172.16.10.4', 'end': '172.16.10.99'}]
ExternalInterfaceDefaultRoute: '172.16.10.251'
ControlPlaneDefaultRoute: '192.0.2.1'
EC2MetadataIp: '192.0.2.1'
DnsServers: ["192.168.122.1"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment