nova-network xenserver vlan

asked 2014-09-21 09:43:54 -0500

Qiang gravatar image

I am trying to configure nova-network VLAN works with Xenserver 6.2, here's the configuration:

    /etc/nova/nova.conf
    network_manager=nova.network.manager.VlanManager
    xenapi_vif_driver=nova.virt.xenapi.vif.XenAPIOpenVswitchDriver
    #xenapi_vif_driver=nova.virt.xenapi.vif.XenAPIBridgeDriver
    flat_interface=eth1
    vlan_interface=eth1
    public_interface=eth0
    gateway=172.16.150.1
    #flat_network_bridge = xenbr1
    multi_host=True
    force_dhcp_release=True
    send_arp_for_ha=True
    flat_injected=False
    xenapi_ovs_integration_bridge=xenbr1

compute_driver = xenapi.XenAPIDriverxenapi_connection_url = http://10.11.21.35
xenapi_connection_username = root
xenapi_connection_password = xxxxxxxx

nova net-list:

root@compute-xen:~# nova net-list
+--------------------------------------+-----------------+-----------------+
| ID                                   | Label           | CIDR            |
+--------------------------------------+-----------------+-----------------+
| 0125ea7e-9b7c-41e1-b808-f6e80b6f8339 | vmware-net      | 10.11.4.0/24    |
| d7fa6c25-7200-4a31-a743-8236cae2eb35 | xen-vlan150-net | 172.16.150.0/24 |
| 2641fe38-881a-4b6e-89f9-a9f96e7f2f7f | xen-vlan200-net | 172.16.200.0/24 |
+--------------------------------------+-----------------+-----------------+
root@compute-xen:~# nova network-show xen-vlan150-net
+---------------------+--------------------------------------+
| Property            | Value                                |
+---------------------+--------------------------------------+
| bridge              | xapi14                               |
| bridge_interface    | eth1                                 |
| broadcast           | 172.16.150.255                       |
| cidr                | 172.16.150.0/24                      |
| cidr_v6             | -                                    |
| created_at          | 2014-09-20T14:33:02.000000           |
| deleted             | 0                                    |
| deleted_at          | -                                    |
| dhcp_start          | 172.16.150.3                         |
| dns1                | 8.8.4.4                              |
| dns2                | -                                    |
| gateway             | 172.16.150.254                       |
| gateway_v6          | -                                    |
| host                | -                                    |
| id                  | d7fa6c25-7200-4a31-a743-8236cae2eb35 |
| injected            | False                                |
| label               | xen-vlan150-net                      |
| multi_host          | True                                 |
| netmask             | 255.255.255.0                        |
| netmask_v6          | -                                    |
| priority            | -                                    |
| project_id          | 5f42cedeae954d658501b591252be8bc     |
| rxtx_base           | -                                    |
| updated_at          | 2014-09-20T14:43:54.000000           |
| vlan                | 150                                  |
| vpn_private_address | 172.16.150.2                         |
| vpn_public_address  | 10.11.21.37                          |
| vpn_public_port     | 1001                                 |
+---------------------+--------------------------------------+
root@compute-xen:~#

root@compute-xen:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br100           8000.3a208d52e612       no              eth1
virbr0          8000.000000000000       yes
vlan150         8000.000000000000       no
xapi14          8000.3a208d52e612       no              eth1.150
xapi15          8000.fa163e1968b5       no              vlan200
root@compute-xen:~# ifconfig -a
br100     Link encap:Ethernet  HWaddr 3a:20:8d:52:e6:12
          inet addr:10.11.4.4  Bcast:10.11.4.255  Mask:255.255.255.0
          inet6 addr: fe80::d093:4fff:fe15:45ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:73730 (73.7 KB)  TX bytes:774 (774.0 B)

eth0      Link encap:Ethernet  HWaddr 16:cd:71:4a:e8:92
          inet addr:10.11.21.37  Bcast:10.11.21.255  Mask:255.255.255.0
          inet6 addr: fe80::14cd:71ff:fe4a:e892/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:281868 errors:0 dropped:23 overruns:0 frame:0
          TX packets:175687 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:78058746 (78.0 MB)  TX bytes:45979281 (45.9 MB)

eth1      Link encap:Ethernet  HWaddr 3a:20:8d:52:e6:12
          inet6 addr: fe80::3820:8dff:fe52:e612/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:179 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9197 (9.1 KB)  TX bytes:3592 (3.5 KB)

eth2      Link encap:Ethernet  HWaddr 0a:28:e0:dd:a0:ef
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier ...
(more)
edit retag flag offensive close merge delete