[Openstack] can I enbale gre and vxlan at the same time?

Li, Chen chen.li at intel.com
Wed Jan 8 05:06:02 UTC 2014


Hi list,

Can I create two networks, while one is using GRE and another is using vxlan ?

I'm asking this because:


1.       In /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini , there is a line:

# Example: tunnel_types = vxlan, gre

Looks like they can work together



2.       I have a setup, while I only enable gre, everything works fine.

While I only enable vxlan, everything works fine too.


But, when I try to enable vxlan and gre at the same time, vxlan still works file, but instances booted with gre network can't get IP from DHCP, and on the network node's physical NIC port, using tcpdump command, I can get:

        10:11:11.416293 IP 192.101.11.101 > 192.101.11.201: GREv0, key=0x1, length 350: IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:06:49:b1 (oui Unknown), length 300
        10:11:11.416347 IP 192.101.11.201 > 192.101.11.101: ICMP host 192.101.11.201 unreachable - admin prohibited, length 378

Thanks.
-chen

Here is my network information:

/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ovs]
tenant_network_type = vxlan,gre
network_vlan_ranges =
enable_tunneling = True
tunnel_type = vxlan,gre
tunnel_id_ranges = 1:10
integration_bridge = br-int
tunnel_bridge = br-tun
int_peer_patch_port = patch-tun
tun_peer_patch_port = patch-int
local_ip = 192.101.11.201
bridge_mappings =
[agent]
tunnel_types = vxlan,gre
vxlan_udp_port = 8472
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

/etc/neutron/dhcp_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
ovs_use_veth = True
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True

neutron net-list
+--------------------------------------+---------+----------------------------------------------------+
| id                                   | name    | subnets                                            |
+--------------------------------------+---------+----------------------------------------------------+
| 1314f7bb-9b52-4db8-a677-a751e52aad0e | gre-1   | c0774200-7aff-44bd-b122-4264368947da 20.1.100.0/24 |
| fcd5c1a8-34ab-4e0c-9e4d-d99d168aa300 | vxlan-3 | 534558b0-c0a4-4c7e-add5-1f0abcb91cc3 40.1.100.0/24 |
+--------------------------------------+---------+----------------------------------------------------+

neutron net-show gre-1
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 1314f7bb-9b52-4db8-a677-a751e52aad0e |
| name                      | gre-1                                |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | c0774200-7aff-44bd-b122-4264368947da |
| tenant_id                 | 45c69667e2a64c889719ef8d8e0dd098     |
+---------------------------+--------------------------------------+

neutron net-show vxlan-3
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | fcd5c1a8-34ab-4e0c-9e4d-d99d168aa300 |
| name                      | vxlan-3                              |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 3                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 534558b0-c0a4-4c7e-add5-1f0abcb91cc3 |
| tenant_id                 | 45c69667e2a64c889719ef8d8e0dd098     |
+---------------------------+--------------------------------------+


neutron agent-list
+--------------------------------------+--------------------+-------------+-------+----------------+
| id                                   | agent_type         | host        | alive | admin_state_up |
+--------------------------------------+--------------------+-------------+-------+----------------+
| 928495d3-fac0-4fbf-b958-36c3627d9b18 | Open vSwitch agent | b-compute01 | :-)   | True           |
| 934c721b-8c7d-4605-8e03-400676665afc | Open vSwitch agent | b-network01 | :-)   | True           |
| bd491c90-3597-45ea-b4a0-f37610f2ed9b | DHCP agent         | b-network01 | :-)   | True           |
| e07c8133-a3f6-4864-adb2-318f2233fe63 | Linux bridge agent | b-compute02 | xxx   | True           |
| e1070c1e-fcb6-43fc-b2a0-a81e688b814a | Open vSwitch agent | b-compute02 | :-)   | True           |
+--------------------------------------+--------------------+-------------+-------+----------------+

neutron net-list-on-dhcp-agent bd491c90-3597-45ea-b4a0-f37610f2ed9b
+--------------------------------------+---------+----------------------------------------------------+
| id                                   | name    | subnets                                            |
+--------------------------------------+---------+----------------------------------------------------+
| 1314f7bb-9b52-4db8-a677-a751e52aad0e | gre-1   | c0774200-7aff-44bd-b122-4264368947da 20.1.100.0/24 |
| fcd5c1a8-34ab-4e0c-9e4d-d99d168aa300 | vxlan-3 | 534558b0-c0a4-4c7e-add5-1f0abcb91cc3 40.1.100.0/24 |
+--------------------------------------+---------+----------------------------------------------------+



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140108/4c5a8a84/attachment.html>


More information about the Openstack mailing list