Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@study-controller ~]# neutron net-list
- +--------------------------------------+----------+------------------------------------------------------+
- | id | name | subnets |
- +--------------------------------------+----------+------------------------------------------------------+
- | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 | ext-net | ff69d52d-7b03-45da-b433-33271f2575c6 10.2.57.0/24 |
- | 5ab9bd17-8ee5-4c48-a190-682b4a46e615 | demo-net | 04f62cc4-ce25-4e2b-84c0-10788ad5d808 192.168.16.0/24 |
- +--------------------------------------+----------+------------------------------------------------------+
- [root@study-controller ~]# neutron net-show 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763
- +---------------------------+--------------------------------------+
- | Field | Value |
- +---------------------------+--------------------------------------+
- | admin_state_up | True |
- | id | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 |
- | name | ext-net |
- | provider:network_type | flat |
- | provider:physical_network | external |
- | provider:segmentation_id | |
- | router:external | True |
- | shared | False |
- | status | ACTIVE |
- | subnets | ff69d52d-7b03-45da-b433-33271f2575c6 |
- | tenant_id | d7555ade73fb43f2a51754d647a5697f |
- +---------------------------+--------------------------------------+
- [root@study-controller ~]# neutron subnet-show 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763
- Unable to find subnet with name '6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763'
- [root@study-controller ~]# neutron subnet-show ff69d52d-7b03-45da-b433-33271f2575c6
- +-------------------+----------------------------------------------+
- | Field | Value |
- +-------------------+----------------------------------------------+
- | allocation_pools | {"start": "10.2.57.60", "end": "10.2.57.80"} |
- | cidr | 10.2.57.0/24 |
- | dns_nameservers | |
- | enable_dhcp | False |
- | gateway_ip | 10.2.57.1 |
- | host_routes | |
- | id | ff69d52d-7b03-45da-b433-33271f2575c6 |
- | ip_version | 4 |
- | ipv6_address_mode | |
- | ipv6_ra_mode | |
- | name | ext-subnet |
- | network_id | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 |
- | tenant_id | d7555ade73fb43f2a51754d647a5697f |
- +-------------------+----------------------------------------------+
- [root@study-controller ~]#
- ========================= ml2_conf.ini controller ===
- [ml2]
- # (ListOpt) List of network type driver entrypoints to be loaded from
- # the neutron.ml2.type_drivers namespace.
- #
- # type_drivers = local,flat,vlan,gre,vxlan
- # Example: type_drivers = flat,vlan,gre,vxlan
- # (ListOpt) Ordered list of network_types to allocate as tenant
- # networks. The default value 'local' is useful for single-box testing
- # but provides no connectivity between hosts.
- #
- # tenant_network_types = local
- # Example: tenant_network_types = vlan,gre,vxlan
- # (ListOpt) Ordered list of networking mechanism driver entrypoints
- # to be loaded from the neutron.ml2.mechanism_drivers namespace.
- # mechanism_drivers =
- # Example: mechanism_drivers = openvswitch,mlnx
- # Example: mechanism_drivers = arista
- # Example: mechanism_drivers = cisco,logger
- # Example: mechanism_drivers = openvswitch,brocade
- # Example: mechanism_drivers = linuxbridge,brocade
- # (ListOpt) Ordered list of extension driver entrypoints
- # to be loaded from the neutron.ml2.extension_drivers namespace.
- # extension_drivers =
- # Example: extension_drivers = anewextensiondriver
- type_drivers = flat,vlan,gre
- tenant_network_types = vlan
- mechanism_drivers = openvswitch,l2population
- [ml2_type_flat]
- # (ListOpt) List of physical_network names with which flat networks
- # can be created. Use * to allow flat networks with arbitrary
- # physical_network names.
- #
- # flat_networks =
- # Example:flat_networks = physnet1,physnet2
- # Example:flat_networks = *
- flat_networks = external
- [ml2_type_vlan]
- # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
- # specifying physical_network names usable for VLAN provider and
- # tenant networks, as well as ranges of VLAN tags on each
- # physical_network available for allocation as tenant networks.
- #
- # network_vlan_ranges =
- # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
- network_vlan_ranges = vlan:2001:2001
- [ml2_type_gre]
- # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
- # tunnel_id_ranges =
- #tunnel_id_ranges = 1:1000
- [ml2_type_vxlan]
- # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
- # ranges of VXLAN VNI IDs that are available for tenant network allocation.
- #
- # vni_ranges =
- # (StrOpt) Multicast group for the VXLAN interface. When configured, will
- # enable sending all broadcast traffic to this multicast group. When left
- # unconfigured, will disable multicast VXLAN mode.
- #
- # vxlan_group =
- # Example: vxlan_group = 239.1.1.1
- [securitygroup]
- # Controls if neutron security group is enabled or not.
- # It should be false when you use nova security group.
- # enable_security_group = True
- enable_security_group = True
- enable_ipset = True
- firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- # Use ipset to speed-up the iptables security groups. Enabling ipset support
- # requires that ipset is installed on L2 agent node.
- # enable_ipset = True
- #
- [ovs]
- local_ip = <%= ins_tun_iface %>
- enable_tunneling = True
- bridge_mappings = external:br-ex
- [agent]
- tunnel_types = gre
- ==============ml2_conf.ini nethost ====
- [ml2]
- # (ListOpt) List of network type driver entrypoints to be loaded from
- # the neutron.ml2.type_drivers namespace.
- #
- # type_drivers = local,flat,vlan,gre,vxlan
- # Example: type_drivers = flat,vlan,gre,vxlan
- # (ListOpt) Ordered list of network_types to allocate as tenant
- # networks. The default value 'local' is useful for single-box testing
- # but provides no connectivity between hosts.
- #
- # tenant_network_types = local
- # Example: tenant_network_types = vlan,gre,vxlan
- # (ListOpt) Ordered list of networking mechanism driver entrypoints
- # to be loaded from the neutron.ml2.mechanism_drivers namespace.
- # mechanism_drivers =
- # Example: mechanism_drivers = openvswitch,mlnx
- # Example: mechanism_drivers = arista
- # Example: mechanism_drivers = cisco,logger
- # Example: mechanism_drivers = openvswitch,brocade
- # Example: mechanism_drivers = linuxbridge,brocade
- # (ListOpt) Ordered list of extension driver entrypoints
- # to be loaded from the neutron.ml2.extension_drivers namespace.
- # extension_drivers =
- # Example: extension_drivers = anewextensiondriver
- type_drivers = flat,vlan,gre
- tenant_network_types = vlan
- mechanism_drivers = openvswitch,l2population
- [ml2_type_flat]
- # (ListOpt) List of physical_network names with which flat networks
- # can be created. Use * to allow flat networks with arbitrary
- # physical_network names.
- #
- # flat_networks =
- # Example:flat_networks = physnet1,physnet2
- # Example:flat_networks = *
- flat_networks = external
- [ml2_type_vlan]
- # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
- # specifying physical_network names usable for VLAN provider and
- # tenant networks, as well as ranges of VLAN tags on each
- # physical_network available for allocation as tenant networks.
- #
- # network_vlan_ranges =
- # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
- network_vlan_ranges = vlan:2001:2001
- [ml2_type_gre]
- # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
- # tunnel_id_ranges =
- tunnel_id_ranges = 1:1000
- [ml2_type_vxlan]
- # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
- # ranges of VXLAN VNI IDs that are available for tenant network allocation.
- #
- # vni_ranges =
- # (StrOpt) Multicast group for the VXLAN interface. When configured, will
- # enable sending all broadcast traffic to this multicast group. When left
- # unconfigured, will disable multicast VXLAN mode.
- #
- # vxlan_group =
- # Example: vxlan_group = 239.1.1.1
- [securitygroup]
- # Controls if neutron security group is enabled or not.
- # It should be false when you use nova security group.
- # enable_security_group = True
- enable_security_group = True
- enable_ipset = True
- firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- # Use ipset to speed-up the iptables security groups. Enabling ipset support
- # requires that ipset is installed on L2 agent node.
- # enable_ipset = True
- #
- [ovs]
- local_ip = <%= iniface %>
- enable_tunneling = True
- bridge_mappings = vlan:br-int,external:br-ex
- [agent]
- l2population = True
- tunnel_types = gre
- ============================ ml2_conf.ini compute node ===
- [ml2]
- # (ListOpt) List of network type driver entrypoints to be loaded from
- # the neutron.ml2.type_drivers namespace.
- #
- # type_drivers = local,flat,vlan,gre,vxlan
- # Example: type_drivers = flat,vlan,gre,vxlan
- # (ListOpt) Ordered list of network_types to allocate as tenant
- # networks. The default value 'local' is useful for single-box testing
- # but provides no connectivity between hosts.
- #
- # tenant_network_types = local
- # Example: tenant_network_types = vlan,gre,vxlan
- # (ListOpt) Ordered list of networking mechanism driver entrypoints
- # to be loaded from the neutron.ml2.mechanism_drivers namespace.
- # mechanism_drivers =
- # Example: mechanism_drivers = openvswitch,mlnx
- # Example: mechanism_drivers = arista
- # Example: mechanism_drivers = cisco,logger
- # Example: mechanism_drivers = openvswitch,brocade
- # Example: mechanism_drivers = linuxbridge,brocade
- # (ListOpt) Ordered list of extension driver entrypoints
- # to be loaded from the neutron.ml2.extension_drivers namespace.
- # extension_drivers =
- # Example: extension_drivers = anewextensiondriver
- type_drivers = flat,vlan
- tenant_network_types = vlan
- mechanism_drivers = openvswitch,l2population
- [ml2_type_flat]
- # (ListOpt) List of physical_network names with which flat networks
- # can be created. Use * to allow flat networks with arbitrary
- # physical_network names.
- #
- # flat_networks =
- # Example:flat_networks = physnet1,physnet2
- # Example:flat_networks = *
- flat_networks = external
- [ml2_type_vlan]
- # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
- # specifying physical_network names usable for VLAN provider and
- # tenant networks, as well as ranges of VLAN tags on each
- # physical_network available for allocation as tenant networks.
- #
- # network_vlan_ranges =
- # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
- network_vlan_ranges = vlan:2001:2001
- [ml2_type_gre]
- # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
- # tunnel_id_ranges =
- tunnel_id_ranges = 1:1000
- [ml2_type_vxlan]
- # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
- # ranges of VXLAN VNI IDs that are available for tenant network allocation.
- #
- # vni_ranges =
- # (StrOpt) Multicast group for the VXLAN interface. When configured, will
- # enable sending all broadcast traffic to this multicast group. When left
- # unconfigured, will disable multicast VXLAN mode.
- #
- # vxlan_group =
- # Example: vxlan_group = 239.1.1.1
- [securitygroup]
- enable_security_group = True
- enable_ipset = True
- firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- # Controls if neutron security group is enabled or not.
- # It should be false when you use nova security group.
- # enable_security_group = True
- [ovs]
- local_ip = 10.0.0.31
- enable_tunneling = True
- bridge_mappings = vlan:br-int,external:br-ex
- [agent]
- l2population = True
- tunnel_types = gre
- # Use ipset to speed-up the iptables security groups. Enabling ipset support
- # requires that ipset is installed on L2 agent node.
- # enable_ipset = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement