how to configuration tenant use vlan mode with linux briage on liberty

asked 2016-08-23 00:46:10 -0600

alaludan gravatar image

Dear Expert: Who has been configuration tenant use vlan mode with linux briage on liberty? I follow official install guide to install liberty with centos7.1 and the network i use the Self-service networks model. Now i can create network and boot instance but the instance can not get id from dhcp. I don't know how to check this issue.As below is my config: controller nova.conf: [DEFAULT] rpc_backend = rabbit auth_strategy = keystone my_ip = 192.168.0.254 network_api_class = nova.network.neutronv2.api.API security_group_api = neutron linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver firewall_driver = nova.virt.firewall.NoopFirewallDriver enabled_apis = osapi_compute,metadata verbose = True state_path = /home/nova

[database] connection = mysql://nova:123456@192.168.0.254/nova

[vnc] vncserver_listen = 192.168.0.254 vncserver_proxyclient_address = 192.168.0.254

[oslo_concurrency] lock_path = /var/lib/nova/tmp

[oslo_messaging_rabbit] rabbit_host = 192.168.0.254 rabbit_userid = openstack rabbit_password = 123456

[keystone_authtoken] auth_uri = http://192.168.0.254:5000/ auth_url = http://192.168.0.254:35357/ auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = nova password = 123456

[glance] host = 192.168.0.254

[neutron] url = http://192.168.0.254:9696/ auth_url = http://192.168.0.254:35357/

admin_auth_url=http://192.168.0.254:35357/v2.0

auth_plugin = password project_domain_id = default user_domain_id = default region_name = RegionOne project_name = service username = neutron password = 123456 service_metadata_proxy = True metadata_proxy_shared_secret = 123456

controller neutron.conf [DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = True rpc_backend = rabbit auth_strategy = keystone notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://192.168.0.254:8774/v2 verbose = True

[database] connection = mysql://neutron:123456@192.168.0.254/neutron

[oslo_messaging_rabbit] rabbit_host = 192.168.0.254 rabbit_userid = openstack rabbit_password = 123456

[keystone_authtoken] auth_uri = http://192.168.0.254:5000 auth_url = http://192.168.0.254:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = neutron password = 123456

[nova] auth_url = http://192.168.0.254:35357 auth_plugin = password project_domain_id = default user_domain_id = default region_name = RegionOne project_name = service username = nova password = 123456

[oslo_concurrency] lock_path = /var/lib/neutron/tmp

controller ml2_conf.ini [ml2] type_drivers = flat,vlan,vxlan tenant_network_types = vlan mechanism_drivers = linuxbridge,l2population extension_drivers = port_security

[ml2_type_vlan] network_vlan_ranges = physnet:98:98

[securitygroup] enable_ipset = True

controller linuxbridge_agent.ini [linux_bridge] physical_interface_mappings = physnet:eth1

[vxlan] enable_vxlan = False

[agent] prevent_arp_spoofing = True

[securitygroup] enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

i use as below command to create net,subnet and boot instance.

neutron subnet-create --allocation-pool start=192.168.1.2,end=192.168.1.250 --name MCAS-SUBNET NET98 192.168.1.0/24 --enable-dhcp

neutron net-create NET98 --provider:network_type vlan --provider:physical_network physnet --provider:segmentation_id 98 --shared

nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=c737a174-c6b6-4ff7-a1aa-4708c321114b --security-group default --key-name admin-key test

neutron net-list

+--------------------------------------+-------+-----------------------------------------------------+ | id | name | subnets | +--------------------------------------+-------+-----------------------------------------------------+ | c737a174-c6b6-4ff7-a1aa-4708c321114b | NET98 | 513993ed-dec8-48f4-a59b-a07ead75bbac 192.168.1.0/24 | +--------------------------------------+-------+-----------------------------------------------------+

nova list

+--------------------------------------+------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------------+ | 7efcee57-ab65-4f0d-af12-0da7ad7788ae | test | ACTIVE | - | Running | NET98=192.168.1.3 | +--------------------------------------+------+--------+------------+-------------+-------------------+

edit retag flag offensive close merge delete