opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l opendaylight-user@root>neutron router-interface-add router1 V4N1 Command not found: neutron opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe24:7dc6/128 192.168.0.2 100005 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.7/32 192.168.0.3 100008 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.4/32 192.168.0.2 100004 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fee1:3456/128 192.168.0.1 100010 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fec0:cd00/128 192.168.0.3 100003 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.1/32 0.0.0.0 100002 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.2/32 192.168.0.1 100009 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe95:cb15/128 192.168.0.3 100007 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.14/32 192.168.0.3 100006 l opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe24:7dc6/128 192.168.0.2 100005 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.7/32 192.168.0.3 100008 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.4/32 192.168.0.2 100004 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fee1:3456/128 192.168.0.1 100010 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fec0:cd00/128 192.168.0.3 100003 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.1/32 0.0.0.0 100002 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.2/32 192.168.0.1 100009 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe95:cb15/128 192.168.0.3 100007 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.14/32 192.168.0.3 100006 l opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe24:7dc6/128 192.168.0.2 100005 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.7/32 192.168.0.3 100008 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.4/32 192.168.0.2 100004 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fee1:3456/128 192.168.0.1 100010 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fec0:cd00/128 192.168.0.3 100003 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.1/32 0.0.0.0 100002 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.2/32 192.168.0.1 100009 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe95:cb15/128 192.168.0.3 100007 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.14/32 192.168.0.3 100006 l opendaylight-user@root> opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe24:7dc6/128 192.168.0.2 100005 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.7/32 192.168.0.3 100008 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.4/32 192.168.0.2 100004 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fee1:3456/128 192.168.0.1 100010 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fec0:cd00/128 192.168.0.3 100003 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.1/32 0.0.0.0 100002 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.2/32 192.168.0.1 100009 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2:f816:3eff:fe95:cb15/128 192.168.0.3 100007 l df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l df476129-9949-4132-bc01-bcd5f4125e4a 15.0.0.14/32 192.168.0.3 100006 l opendaylight-user@root> opendaylight-user@root> opendaylight-user@root> opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l opendaylight-user@root>fib-show RD Prefix NextHop Label Origin ------------------------------------------------------------------- df476129-9949-4132-bc01-bcd5f4125e4a 2001:db8:0:2::1/128 0.0.0.0 100001 l opendaylight-user@root> ========================================== traces openstack [stack@controller-deray ~]> neutron security-group-create X Created a new security_group: +----------------------+-----------------------------------------------------------------------------------+ | Field | Value | +----------------------+-----------------------------------------------------------------------------------+ | created_at | 2017-10-19T11:34:08Z | | description | | | id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | name | X | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 1 | | security_group_rules | {"remote_group_id": null, "direction": "egress", "protocol": null, "description": | | | null, "ethertype": "IPv4", "remote_ip_prefix": null, "port_range_max": null, | | | "updated_at": "2017-10-19T11:34:08Z", "security_group_id": "121984ad-1929-47dd- | | | b7ce-15e5ae2995ae", "port_range_min": null, "revision_number": 1, "tenant_id": | | | "b8792843b2654d2ca2db014e3af65c2a", "created_at": "2017-10-19T11:34:08Z", | | | "project_id": "b8792843b2654d2ca2db014e3af65c2a", "id": | | | "51110921-0bf8-4007-a813-8b53e83b063f"} | | | {"remote_group_id": null, "direction": "egress", "protocol": null, "description": | | | null, "ethertype": "IPv6", "remote_ip_prefix": null, "port_range_max": null, | | | "updated_at": "2017-10-19T11:34:08Z", "security_group_id": "121984ad-1929-47dd- | | | b7ce-15e5ae2995ae", "port_range_min": null, "revision_number": 1, "tenant_id": | | | "b8792843b2654d2ca2db014e3af65c2a", "created_at": "2017-10-19T11:34:08Z", | | | "project_id": "b8792843b2654d2ca2db014e3af65c2a", "id": "a08598bc- | | | 17e3-4ada-b011-363b11b80991"} | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:34:08Z | +----------------------+-----------------------------------------------------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --dst-port 1:65535 --protocol tcp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:11Z | | description | | | direction | ingress | | ethertype | IPv4 | | headers | | | id | 56611b15-560f-4be8-a62d-9690ddf7051a | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | tcp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:11Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --dst-port 1:65535 --protocol tcp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:12Z | | description | | | direction | egress | | ethertype | IPv4 | | headers | | | id | 6de0b0c6-74fd-405c-9027-3eea57eec791 | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | tcp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:12Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --dst-port 1:65535 --protocol udp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:14Z | | description | | | direction | egress | | ethertype | IPv4 | | headers | | | id | e6036b1c-1f85-47c1-94a3-203f0eaaf42a | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | udp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:14Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --dst-port 1:65535 --protocol udp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:15Z | | description | | | direction | ingress | | ethertype | IPv4 | | headers | | | id | 2e153063-e897-4d52-89da-ac97282ff64d | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | udp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:15Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --protocol icmp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:16Z | | description | | | direction | ingress | | ethertype | IPv4 | | headers | | | id | 10121a8e-00c6-46e2-a8ed-f1d45d5bbb3f | | port_range_max | None | | port_range_min | None | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | icmp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:16Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --protocol icmp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:17Z | | description | | | direction | egress | | ethertype | IPv4 | | headers | | | id | 29a14446-217c-4ceb-bd6a-1dfc999a8f7d | | port_range_max | None | | port_range_min | None | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | icmp | | remote_group_id | None | | remote_ip_prefix | 0.0.0.0/0 | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:17Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --ethertype IPv6 --dst-port 1:65535 --protocol tcp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:19Z | | description | | | direction | ingress | | ethertype | IPv6 | | headers | | | id | 4651aeb4-a6ba-4ac0-a265-4bea2f088b6e | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | tcp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:19Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --ethertype IPv6 --dst-port 1:65535 --protocol udp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:20Z | | description | | | direction | ingress | | ethertype | IPv6 | | headers | | | id | d5b7c751-58dc-4b98-aa68-fe8be871efb8 | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | udp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:20Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --ethertype IPv6 --dst-port 1:65535 --protocol udp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:22Z | | description | | | direction | egress | | ethertype | IPv6 | | headers | | | id | c4a5dece-69c7-4e8f-930c-44a16389a6c5 | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | udp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:22Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --ethertype IPv6 --dst-port 1:65535 --protocol tcp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:23Z | | description | | | direction | egress | | ethertype | IPv6 | | headers | | | id | bfa85985-5260-4e34-b243-b8d034d97eb0 | | port_range_max | 65535 | | port_range_min | 1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | tcp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:23Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --ingress --ethertype IPv6 --protocol icmp +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:24Z | | description | | | direction | ingress | | ethertype | IPv6 | | headers | | | id | a150d288-ab1e-415b-8b2b-3eaa2b7e5ccf | | port_range_max | None | | port_range_min | None | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | icmp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:24Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> openstack security group rule create X --egress --ethertype IPv6 --protocol icmp+-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | created_at | 2017-10-19T11:34:25Z | | description | | | direction | egress | | ethertype | IPv6 | | headers | | | id | a1e3224d-2dda-4ec4-b3d3-70705feaf154 | | port_range_max | None | | port_range_min | None | | project_id | b8792843b2654d2ca2db014e3af65c2a | | project_id | b8792843b2654d2ca2db014e3af65c2a | | protocol | icmp | | remote_group_id | None | | remote_ip_prefix | None | | revision_number | 1 | | security_group_id | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | updated_at | 2017-10-19T11:34:25Z | +-------------------+--------------------------------------+ [stack@controller-deray ~]> [stack@controller-deray ~]> neutron net-create N1 Created a new network: +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | | | created_at | 2017-10-19T11:34:42Z | | description | | | id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | ipv4_address_scope | | | ipv6_address_scope | | | mtu | 1450 | | name | N1 | | port_security_enabled | True | | project_id | b8792843b2654d2ca2db014e3af65c2a | | provider:network_type | vxlan | | provider:physical_network | | | provider:segmentation_id | 74 | | revision_number | 3 | | router:external | False | | shared | False | | status | ACTIVE | | subnets | | | tags | | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:34:42Z | +---------------------------+--------------------------------------+ [stack@controller-deray ~]> neutron subnet-create --name V4N1 N1 15.0.0.0/24 Created a new subnet: +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "15.0.0.2", "end": "15.0.0.254"} | | cidr | 15.0.0.0/24 | | created_at | 2017-10-19T11:34:44Z | | description | | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 15.0.0.1 | | host_routes | | | id | 67f3b909-76cb-4b12-ab27-9dfadeb9bb08 | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | V4N1 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 2 | | service_types | | | subnetpool_id | | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:34:44Z | +-------------------+--------------------------------------------+ [stack@controller-deray ~]> neutron port-create --name PORT1 --security-group X N1 Created a new port: +-----------------------+---------------------------------------------------------------------------------+ | Field | Value | +-----------------------+---------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | created_at | 2017-10-19T11:34:54Z | | description | | | device_id | | | device_owner | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "67f3b909-76cb-4b12-ab27-9dfadeb9bb08", "ip_address": "15.0.0.7"} | | id | fb9556a5-29bb-4d79-884c-73d762258ab9 | | mac_address | fa:16:3e:95:cb:15 | | name | PORT1 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | port_security_enabled | True | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 5 | | security_groups | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | status | DOWN | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:34:54Z | +-----------------------+---------------------------------------------------------------------------------+ [stack@controller-deray ~]> openstack server create --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic port-id=fb9556a5-29bb-4d79-884c-73d762258ab9 --security-group X VM1 +--------------------------------------+----------------------------------------------------------------+ | Field | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | LZBB2fU7AcYo | | config_drive | | | created | 2017-10-19T11:35:11Z | | flavor | m1.tiny (1) | | hostId | | | id | ef825b8a-228a-42fc-9b64-40160b044be4 | | image | cirros-0.3.4-x86_64-uec (313ec3b9-a95e-49b8-989d-c971e0a4fa11) | | key_name | None | | name | VM1 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | properties | | | security_groups | [{u'name': u'X'}] | | status | BUILD | | updated | 2017-10-19T11:35:11Z | | user_id | af70412b89f34f63ba46042c55626063 | +--------------------------------------+----------------------------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7 | +--------------------------------------+------+--------+------------+-------------+-------------+ [stack@controller-deray ~]> neutron port-create --name PORT2 --security-group X N1 Created a new port: +-----------------------+---------------------------------------------------------------------------------+ | Field | Value | +-----------------------+---------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | created_at | 2017-10-19T11:35:31Z | | description | | | device_id | | | device_owner | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "67f3b909-76cb-4b12-ab27-9dfadeb9bb08", "ip_address": "15.0.0.9"} | | id | 74a0081a-3476-43e6-963d-7cad2e146b99 | | mac_address | fa:16:3e:7c:99:49 | | name | PORT2 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | port_security_enabled | True | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 5 | | security_groups | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | status | DOWN | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:35:32Z | +-----------------------+---------------------------------------------------------------------------------+ [stack@controller-deray ~]> openstack server create --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic port-id=74a0081a-3476-43e6-963d-7cad2e146b99 --security-group X VM2 +--------------------------------------+----------------------------------------------------------------+ | Field | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | DXPnik5zfz8J | | config_drive | | | created | 2017-10-19T11:35:46Z | | flavor | m1.tiny (1) | | hostId | | | id | eac305df-6057-4071-93ae-4523f87ebdcc | | image | cirros-0.3.4-x86_64-uec (313ec3b9-a95e-49b8-989d-c971e0a4fa11) | | key_name | None | | name | VM2 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | properties | | | security_groups | [{u'name': u'X'}] | | status | BUILD | | updated | 2017-10-19T11:35:46Z | | user_id | af70412b89f34f63ba46042c55626063 | +--------------------------------------+----------------------------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-------------+ [stack@controller-deray ~]> [stack@controller-deray ~]> [stack@controller-deray ~]> neutron subnet-create --name V6N1 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac N1 2001:db8:0:2::/64 Created a new subnet: +-------------------+-------------------------------------------------------------------------+ | Field | Value | +-------------------+-------------------------------------------------------------------------+ | allocation_pools | {"start": "2001:db8:0:2::2", "end": "2001:db8:0:2:ffff:ffff:ffff:ffff"} | | cidr | 2001:db8:0:2::/64 | | created_at | 2017-10-19T11:36:02Z | | description | | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 2001:db8:0:2::1 | | host_routes | | | id | bc0b94bb-cf0c-4347-a8b0-2a3560a8d959 | | ip_version | 6 | | ipv6_address_mode | slaac | | ipv6_ra_mode | slaac | | name | V6N1 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 2 | | service_types | | | subnetpool_id | | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:36:02Z | +-------------------+-------------------------------------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-------------+ [stack@controller-deray ~]> neutron router-create router1 Created a new router: +-----------------------+--------------------------------------+ | Field | Value | +-----------------------+--------------------------------------+ | admin_state_up | True | | created_at | 2017-10-19T11:36:18Z | | description | | | distributed | False | | external_gateway_info | | | id | df476129-9949-4132-bc01-bcd5f4125e4a | | name | router1 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 3 | | routes | | | status | ACTIVE | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:36:18Z | +-----------------------+--------------------------------------+ [stack@controller-deray ~]> neutron router-interface-add router1 V6N1 Added interface b2c7ef78-191a-4d4d-9d8f-a45c880f07fd to router router1. [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9 | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ [stack@controller-deray ~]> [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9, 2001:db8:0:2:f816:3eff:fe7c:9949 | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9, 2001:db8:0:2:f816:3eff:fe7c:9949 | +--------------------------------------+------+--------+------------+-------------+-----------------------------------------------+ [stack@controller-deray ~]> [stack@controller-deray ~]> neutron port-create --name PORT3 --security-group X N1 Created a new port: +-----------------------+----------------------------------------------------------------------------------+ | Field | Value | +-----------------------+----------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | created_at | 2017-10-19T11:37:30Z | | description | | | device_id | | | device_owner | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "67f3b909-76cb-4b12-ab27-9dfadeb9bb08", "ip_address": "15.0.0.14"} | | | {"subnet_id": "bc0b94bb-cf0c-4347-a8b0-2a3560a8d959", "ip_address": | | | "2001:db8:0:2:f816:3eff:fec0:cd00"} | | id | 81d97668-e4e0-4d79-887e-a705c83c9bdf | | mac_address | fa:16:3e:c0:cd:00 | | name | PORT3 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | port_security_enabled | True | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 6 | | security_groups | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | status | DOWN | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:37:30Z | +-----------------------+----------------------------------------------------------------------------------+ [stack@controller-deray ~]> openstack server create --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic port-id=81d97668-e4e0-4d79-887e-a705c83c9bdf --security-group X VM3 +--------------------------------------+----------------------------------------------------------------+ | Field | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | msHvTmFx8nXr | | config_drive | | | created | 2017-10-19T11:37:41Z | | flavor | m1.tiny (1) | | hostId | | | id | aab3214b-907c-4f19-8b99-dc47a3a569c8 | | image | cirros-0.3.4-x86_64-uec (313ec3b9-a95e-49b8-989d-c971e0a4fa11) | | key_name | None | | name | VM3 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | properties | | | security_groups | [{u'name': u'X'}] | | status | BUILD | | updated | 2017-10-19T11:37:41Z | | user_id | af70412b89f34f63ba46042c55626063 | +--------------------------------------+----------------------------------------------------------------+ [stack@controller-deray ~]> neutron port-create --name PORT4 --security-group X N1 Created a new port: +-----------------------+----------------------------------------------------------------------------------+ | Field | Value | +-----------------------+----------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | created_at | 2017-10-19T11:38:02Z | | description | | | device_id | | | device_owner | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "67f3b909-76cb-4b12-ab27-9dfadeb9bb08", "ip_address": "15.0.0.4"} | | | {"subnet_id": "bc0b94bb-cf0c-4347-a8b0-2a3560a8d959", "ip_address": | | | "2001:db8:0:2:f816:3eff:fe24:7dc6"} | | id | 31549393-2d0a-4e58-9473-dc6595596eee | | mac_address | fa:16:3e:24:7d:c6 | | name | PORT4 | | network_id | 1f47a1f3-b629-40b5-9c02-ce7c6dc1fca7 | | port_security_enabled | True | | project_id | b8792843b2654d2ca2db014e3af65c2a | | revision_number | 6 | | security_groups | 121984ad-1929-47dd-b7ce-15e5ae2995ae | | status | DOWN | | tenant_id | b8792843b2654d2ca2db014e3af65c2a | | updated_at | 2017-10-19T11:38:02Z | +-----------------------+----------------------------------------------------------------------------------+ [stack@controller-deray ~]> openstack server create --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic port-id=31549393-2d0a-4e58-9473-dc6595596eee --security-group X VM4 +--------------------------------------+----------------------------------------------------------------+ | Field | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | D5DsqKavc7gW | | config_drive | | | created | 2017-10-19T11:38:22Z | | flavor | m1.tiny (1) | | hostId | | | id | b8737ea4-b3f5-4f5c-baa6-146bbcac001a | | image | cirros-0.3.4-x86_64-uec (313ec3b9-a95e-49b8-989d-c971e0a4fa11) | | key_name | None | | name | VM4 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | project_id | b8792843b2654d2ca2db014e3af65c2a | | properties | | | security_groups | [{u'name': u'X'}] | | status | BUILD | | updated | 2017-10-19T11:38:22Z | | user_id | af70412b89f34f63ba46042c55626063 | +--------------------------------------+----------------------------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9, 2001:db8:0:2:f816:3eff:fe7c:9949 | | aab3214b-907c-4f19-8b99-dc47a3a569c8 | VM3 | ACTIVE | - | Running | N1=15.0.0.14, 2001:db8:0:2:f816:3eff:fec0:cd00 | | b8737ea4-b3f5-4f5c-baa6-146bbcac001a | VM4 | ACTIVE | - | Running | N1=15.0.0.4, 2001:db8:0:2:f816:3eff:fe24:7dc6 | +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ [stack@controller-deray ~]> nova list +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ | ef825b8a-228a-42fc-9b64-40160b044be4 | VM1 | ACTIVE | - | Running | N1=15.0.0.7, 2001:db8:0:2:f816:3eff:fe95:cb15 | | eac305df-6057-4071-93ae-4523f87ebdcc | VM2 | ACTIVE | - | Running | N1=15.0.0.9, 2001:db8:0:2:f816:3eff:fe7c:9949 | | aab3214b-907c-4f19-8b99-dc47a3a569c8 | VM3 | ACTIVE | - | Running | N1=15.0.0.14, 2001:db8:0:2:f816:3eff:fec0:cd00 | | b8737ea4-b3f5-4f5c-baa6-146bbcac001a | VM4 | ACTIVE | - | Running | N1=15.0.0.4, 2001:db8:0:2:f816:3eff:fe24:7dc6 | +--------------------------------------+------+--------+------------+-------------+------------------------------------------------+ [stack@controller-deray ~]> neutron router-interface-add router1 V4N1 Added interface 9ca41c75-5142-4be9-a63d-45f96645f1aa to router router1. [stack@controller-deray ~]> [stack@controller-deray ~]> [stack@controller-deray ~]> neutron router-interface-delete router1 V4N1 Removed interface from router router1. [stack@controller-deray ~]>