This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Creating ns1 with IP 10.100.5.8(FIP 192.168.56.31, Mac fa:16:3e:00:eb:c0) | |
sudo ip netns add ns1 | |
sudo ovs-vsctl add-br test0 | |
sudo ip link add vns1 type veth peer name vpeerns1 | |
sudo ip link set vpeerns1 netns ns1 | |
sudo ip link set vns1 up | |
sudo ip netns exec ns1 ip link set vpeerns1 address fa:16:3e:1d:3d:01 | |
sudo ip netns exec ns1 ip addr add dev vpeerns1 10.100.5.8/24 | |
sudo ip netns exec ns1 ip link set vpeerns1 up | |
sudo ip netns exec ns1 ip route add default via 10.100.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OFPST_FLOW reply (OF1.3) (xid=0x2): | |
cookie=0x8000001, duration=2586.150s, table=0, n_packets=3600, n_bytes=266361, priority=5,in_port=6 actions=write_metadata:0x70000000001/0xfffff0000000001,goto_table:36 | |
cookie=0x8000000, duration=2642.218s, table=0, n_packets=105, n_bytes=9443, priority=4,in_port=2,vlan_tci=0x0000/0x1fff actions=write_metadata:0x10000000000/0xffffff0000000001,goto_table:17 | |
cookie=0x8000000, duration=2635.177s, table=0, n_packets=458, n_bytes=47359, priority=4,in_port=3,vlan_tci=0x0000/0x1fff actions=write_metadata:0x20000000000/0xffffff0000000001,goto_table:17 | |
cookie=0x8000000, duration=2620.984s, table=0, n_packets=1887, n_bytes=165708, priority=4,in_port=4,vlan_tci=0x0000/0x1fff actions=write_metadata:0x30000000000/0xffffff0000000001,goto_table:17 | |
cookie=0x8000000, duration=2605.692s, table=0, n_packets=421, n_bytes=40836, priority=4,in_port=5,vlan_tci=0x0000/0x1fff actions=write_metadata:0x40000000000/0xffffff0000000001,goto_table:17 | |
cookie=0x8000000, duration=361.433s, table=0, n_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. ./openrc admin admin | |
neutron net-create vx-net1 --provider:network_type vxlan | |
neutron subnet-create vx-net1 10.100.5.0/24 --name vx-subnet1 | |
neutron net-create vx-net2 --provider:network_type vxlan | |
neutron subnet-create vx-net2 10.100.6.0/24 --name vx-subnet2 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net1 | awk '{print $2}') --availability-zone nova::odl31 vmvx2 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net2 | awk '{print $2}') --availability-zone nova::odl31 vmvx3 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net1 | awk '{print $2}') --availability-zone nova::odl32 vmvx4 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net |