openstack network create Net1 openstack network create Net2 openstack network create Net3 openstack network create Net4 openstack network create Net5 openstack network create Net6 openstack subnet create --network Net1 --subnet-range 11.1.2.0/24 subnet-ipv4s1 openstack subnet create --network Net2 --subnet-range 12.23.34.0/24 subnet-ipv4s2 openstack subnet create --network Net3 --subnet-range 13.5.4.0/24 subnet-ipv4s3 openstack subnet create --network Net4 --subnet-range 14.42.62.0/24 subnet-ipv4s4 openstack subnet create --network Net5 --subnet-range 15.8.9.0/24 subnet-ipv4s5 openstack subnet create --network Net6 --subnet-range 16.6.67.0/24 subnet-ipv4s6 openstack subnet create --network Net1 --subnet-range 2001:db8:abcd:0011::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s1 openstack subnet create --network Net2 --subnet-range 2025:caf:3214:0012::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s2 openstack subnet create --network Net3 --subnet-range 2033:456a:f012:0013::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s3 openstack subnet create --network Net4 --subnet-range 2056:212:d562:0014::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s4 openstack subnet create --network Net5 --subnet-range 2062:321:543:0015::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s5 openstack subnet create --network Net6 --subnet-range 2078:fde:2cd:0016::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac subnet-ipv6s6 openstack router create R1 openstack router add subnet R1 subnet-ipv4s1 openstack router add subnet R1 subnet-ipv6s1 openstack router add subnet R1 subnet-ipv4s2 openstack router add subnet R1 subnet-ipv6s2 openstack router add subnet R1 subnet-ipv4s3 openstack router add subnet R1 subnet-ipv6s3 openstack router create R2 openstack router add subnet R2 subnet-ipv4s4 openstack router add subnet R2 subnet-ipv6s4 openstack router add subnet R2 subnet-ipv4s5 openstack router add subnet R2 subnet-ipv6s5 openstack router add subnet R2 subnet-ipv4s6 openstack router add subnet R2 subnet-ipv6s6 openstack port create --network Net1 --security-group CUSTM_SGP --allowed-address ip-address=20.0.0.0/24 --allowed-address ip-address=2111:12f:862:18::/64 PORT1-N1 openstack port create --network Net1 --security-group CUSTM_SGP PORT2-N1 openstack port create --network Net2 --security-group CUSTM_SGP --allowed-address ip-address=20.0.0.0/24 --allowed-address ip-address=2111:12f:862:18::/64 PORT3-N2 openstack port create --network Net2 --security-group CUSTM_SGP PORT4-N2 openstack port create --network Net3 --security-group CUSTM_SGP --allowed-address ip-address=20.0.0.0/24 --allowed-address ip-address=2111:12f:862:18::/64 PORT5-N3 openstack port create --network Net3 --security-group CUSTM_SGP PORT6-N3 openstack port create --network Net4 --security-group CUSTM_SGP --allowed-address ip-address=30.0.0.0/24 --allowed-address ip-address=202f:adc:9213:2f::/64 PORT7-N4 openstack port create --network Net4 --security-group CUSTM_SGP PORT8-N4 openstack port create --network Net5 --security-group CUSTM_SGP --allowed-address ip-address=30.0.0.0/24 --allowed-address ip-address=202f:adc:9213:2f::/64 PORT9-N5 openstack port create --network Net5 --security-group CUSTM_SGP PORT10-N5 openstack port create --network Net6 --security-group CUSTM_SGP --allowed-address ip-address=30.0.0.0/24 --allowed-address ip-address=202f:adc:9213:2f::/64 PORT11-N6 openstack port create --network Net6 --security-group CUSTM_SGP PORT12-N6 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT1-N1 |awk '{print $2}') --availability-zone nova:compute-0-1.domain.tld Host1-N1 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT2-N1 |awk '{print $2}') --availability-zone nova:compute-0-2.domain.tld Host2-N1 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT3-N2 |awk '{print $2}') --availability-zone nova:compute-0-3.domain.tld Host3-N2 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT4-N2 |awk '{print $2}') --availability-zone nova:compute-0-1.domain.tld Host4-N2 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT5-N3 |awk '{print $2}') --availability-zone nova:compute-0-2.domain.tld Host5-N3 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT6-N3 |awk '{print $2}') --availability-zone nova:compute-0-3.domain.tld Host6-N3 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT7-N4 |awk '{print $2}') --availability-zone nova:compute-0-1.domain.tld Host7-N4 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT8-N4 |awk '{print $2}') --availability-zone nova:compute-0-2.domain.tld Host8-N4 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT9-N5 |awk '{print $2}') --availability-zone nova:compute-0-3.domain.tld Host9-N5 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT10-N5 |awk '{print $2}') --availability-zone nova:compute-0-1.domain.tld Host10-N5 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT11-N6 |awk '{print $2}') --availability-zone nova:compute-0-2.domain.tld Host11-N6 openstack server create --flavor myhuge --image ubuntu --nic port-id=$(neutron port-list | grep PORT12-N6 |awk '{print $2}') --availability-zone nova:compute-0-3.domain.tld Host12-N6 openstack router set --route destination=20.0.0.0/24,gateway=11.1.2.8 --route destination=20.0.0.0/24,gateway=12.23.34.11 --route destination=20.0.0.0/24,gateway=13.5.4.7 --route destination=2111:12f:862:18::/64,gateway=2001:db8:abcd:11:f816:3eff:fe06:fcd3 --route destination=2111:12f:862:18::/64,gateway=2025:caf:3214:12:f816:3eff:fe23:cb46 --route destination=2111:12f:862:18::/64,gateway=2033:456a:f012:13:f816:3eff:fea2:aa2 R1 openstack router set --route destination=30.0.0.0/24,gateway=14.42.62.28 --route destination=30.0.0.0/24,gateway=15.8.9.9 --route destination=30.0.0.0/24,gateway=16.6.67.4 --route destination=202f:adc:9213:2f::/64,gateway=2056:212:d562:14:f816:3eff:fe2f:9be0 --route destination=202f:adc:9213:2f::/64,gateway=2062:321:543:15:f816:3eff:fe79:9f32 --route destination=202f:adc:9213:2f::/64,gateway=2078:fde:2cd:16:f816:3eff:fe7e:8992 R2 openstack bgpvpn create --export-target 100:1 --import-target 100:11 --route-distinguisher 100:21 --route-distinguisher 100:22 --route-distinguisher 100:23 --name VPN1 --type l3 openstack bgpvpn create --export-target 100:3 --import-target 100:31 --route-distinguisher 100:24 --route-distinguisher 100:25 --route-distinguisher 100:26 --name VPN2 --type l3 openstack bgpvpn router association create VPN1 R1 openstack bgpvpn router association create VPN2 R2 ^[[A+--------------------------------------+--------------------------------------+ | ID | Router ID | +--------------------------------------+--------------------------------------+ | 57b02fd1-2e1b-4d1e-b661-388e18fc8387 | ce343c2c-9f48-44f7-b329-836de73c5d57 | +--------------------------------------+--------------------------------------+ root@cic-1:~# openstack bgpvpn router association delete 57b02fd1-2e1b-4d1e-b661-388e18fc8387 VPN2 Router association 57b02fd1-2e1b-4d1e-b661-388e18fc8387 deleted root@cic-1:~# openstack bgpvpn router association list VPN1 +--------------------------------------+--------------------------------------+ | ID | Router ID | +--------------------------------------+--------------------------------------+ | c0373d8f-c69d-4a57-b589-374a85e27dfa | d62f3287-801b-48f4-822a-118674065d2d | +--------------------------------------+--------------------------------------+ openstack bgpvpn router association delete c0373d8f-c69d-4a57-b589-374a85e27dfa VPN1 openstack bgpvpn delete VPN1 openstack bgpvpn delete VPN2 openstack router set R1 --no-route openstack router set R2 --no-route