Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@amrwobl222:~# cat /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
- [DATABASE]
- # This line MUST be changed to actually run the plugin.
- # Example:
- # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
- # Replace 127.0.0.1 above with the IP address of the database used by the
- # main quantum server. (Leave it as is if the database runs on this host.)
- sql_connection = mysql://quantum:quantum_pass@127.0.0.1/quantum?charset=utf8
- # Database reconnection retry times - in event connectivity is lost
- # set to -1 implies an infinite retry count
- # sql_max_retries = 10
- sql_max_retries = 10
- # Database reconnection interval in seconds - if the initial connection to the
- # database fails
- reconnect_interval = 2
- # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
- # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
- # sql_dbpool_enable = False
- # Minimum number of SQL connections to keep open in a pool
- # sql_min_pool_size = 1
- # Maximum number of SQL connections to keep open in a pool
- # sql_max_pool_size = 5
- # Timeout in seconds before idle sql connections are reaped
- # sql_idle_timeout = 3600
- sql_idle_timeout = 3600
- [OVS]
- # (StrOpt) Type of network to allocate for tenant networks. The
- # default value 'local' is useful only for single-box testing and
- # provides no connectivity between hosts. You MUST either change this
- # to 'vlan' and configure network_vlan_ranges below or change this to
- # 'gre' and configure tunnel_id_ranges below in order for tenant
- # networks to provide connectivity between hosts. Set to 'none' to
- # disable creation of tenant networks.
- #
- # Default: tenant_network_type = local
- # Example: tenant_network_type = gre
- # (ListOpt) Comma-separated list of
- # <physical_network>[:<vlan_min>:<vlan_max>] tuples enumerating ranges
- # of VLAN IDs on named physical networks that are available for
- # allocation. All physical networks listed are available for flat and
- # VLAN provider network creation. Specified ranges of VLAN IDs are
- # available for tenant network allocation if tenant_network_type is
- # 'vlan'. If empty, only gre and local networks may be created.
- #
- # Default: network_vlan_ranges =
- # Example: network_vlan_ranges = physnet1:1000:2999
- # (BoolOpt) Set to True in the server and the agents to enable support
- # for GRE networks. Requires kernel support for OVS patch ports and
- # GRE tunneling.
- #
- # Default: enable_tunneling = False
- # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples
- # enumerating ranges of GRE tunnel IDs that are available for tenant
- # network allocation if tenant_network_type is 'gre'.
- #
- # Default: tunnel_id_ranges =
- # Example: tunnel_id_ranges = 1:1000
- # Do not change this parameter unless you have a good reason to.
- # This is the name of the OVS integration bridge. There is one per hypervisor.
- # The integration bridge acts as a virtual "patch bay". All VM VIFs are
- # attached to this bridge and then "patched" according to their network
- # connectivity.
- #
- # Default: integration_bridge = br-int
- # Only used for the agent if tunnel_id_ranges (above) is not empty for
- # the server. In most cases, the default value should be fine.
- #
- # Default: tunnel_bridge = br-tun
- # Peer patch port in integration bridge for tunnel bridge
- # int_peer_patch_port = patch-tun
- # Peer patch port in tunnel bridge for integration bridge
- # tun_peer_patch_port = patch-int
- # Uncomment this line for the agent if tunnel_id_ranges (above) is not
- # empty for the server. Set local-ip to be the local IP address of
- # this hypervisor.
- #
- # Default: local_ip =
- # (ListOpt) Comma-separated list of <physical_network>:<bridge> tuples
- # mapping physical network names to the agent's node-specific OVS
- # bridge names to be used for flat and VLAN networks. The length of
- # bridge names should be no more than 11. Each bridge must
- # exist, and should have a physical network interface configured as a
- # port. All physical networks listed in network_vlan_ranges on the
- # server should have mappings to appropriate bridges on each agent.
- #
- # Default: bridge_mappings =
- # Example: bridge_mappings = physnet1:br-eth1
- integration_bridge=br-int
- tunnel_id_ranges=1:1000
- enable_tunneling=True
- bridge_mappings=default:br-ex
- tunnel_bridge=br-tun
- tenant_network_type=gre
- local_ip=192.168.1.222
- [AGENT]
- # Agent's polling interval in seconds
- polling_interval = 2
- [SECURITYGROUP]
- # Firewall driver for realizing quantum security group function
- # firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- #-----------------------------------------------------------------------------
- # Sample Configurations.
- #-----------------------------------------------------------------------------
- #
- # 1. With VLANs on eth1.
- # [DATABASE]
- # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
- # [OVS]
- # network_vlan_ranges = default:2000:3999
- # tunnel_id_ranges =
- # integration_bridge = br-int
- # bridge_mappings = default:br-eth1
- # [AGENT]
- # Add the following setting, if you want to log to a file
- #
- # 2. With tunneling.
- # [DATABASE]
- # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
- # [OVS]
- # network_vlan_ranges =
- # tunnel_id_ranges = 1:1000
- # integration_bridge = br-int
- # tunnel_bridge = br-tun
- # local_ip = 10.0.0.3
- root@amrwobl222:~# ifconfig
- br-ex Link encap:Ethernet HWaddr 00:e0:81:db:0a:cd
- inet addr:192.168.1.222 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::2e0:81ff:fedb:acd/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:2651 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2107 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:397770 (397.7 KB) TX bytes:387434 (387.4 KB)
- eth0 Link encap:Ethernet HWaddr 00:e0:81:db:0a:cd
- inet6 addr: fe80::2e0:81ff:fedb:acd/64 Scope:Link
- UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
- RX packets:2743 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2136 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:462301 (462.3 KB) TX bytes:401281 (401.2 KB)
- Interrupt:16 Memory:fbee0000-fbf00000
- eth1 Link encap:Ethernet HWaddr 00:e0:81:db:0a:ce
- inet addr:10.0.19.1 Bcast:10.0.19.255 Mask:255.255.255.0
- inet6 addr: fe80::2e0:81ff:fedb:ace/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:19 errors:0 dropped:0 overruns:0 frame:0
- TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:7052 (7.0 KB) TX bytes:4056 (4.0 KB)
- Interrupt:17 Memory:fbde0000-fbe00000
- int-br-ex Link encap:Ethernet HWaddr 8a:29:ac:1d:bd:48
- inet6 addr: fe80::8829:acff:fe1d:bd48/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:6 errors:0 dropped:0 overruns:0 frame:0
- TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:468 (468.0 B) TX bytes:2854 (2.8 KB)
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:18444 errors:0 dropped:0 overruns:0 frame:0
- TX packets:18444 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:31429610 (31.4 MB) TX bytes:31429610 (31.4 MB)
- phy-br-ex Link encap:Ethernet HWaddr 6e:e1:79:c9:33:99
- inet6 addr: fe80::6ce1:79ff:fec9:3399/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:31 errors:0 dropped:0 overruns:0 frame:0
- TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:2854 (2.8 KB) TX bytes:468 (468.0 B)
- root@amrwobl222:~# cat /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet manual
- up ifconfig $IFACE 0.0.0.0 up
- up ifconfig $IFACE promisc
- auto br-ex
- iface br-ex inet static
- # USE THE FOLLOWING IF CONVERTING VM TO RUN ON BACKBONE
- address 192.168.1.222
- netmask 255.255.255.0
- gateway 192.168.1.1
- bridge_ports eth0
- dns-nameservers 192.168.1.223 192.168.1.247 8.8.8.8
- auto eth1
- iface eth1 inet static
- address 10.0.19.1
- netmask 255.255.255.0
- root@amrwobl222:~#
- root@amrwobl222:~# ovs-vsctl show
- 49205f35-b23d-4f18-a34c-ffc9784954c5
- Bridge br-ex
- Port "qg-ec77ff86-23"
- Interface "qg-ec77ff86-23"
- type: internal
- Port "qg-c7f426fe-ae"
- Interface "qg-c7f426fe-ae"
- type: internal
- Port "eth0"
- Interface "eth0"
- Port phy-br-ex
- Interface phy-br-ex
- Port br-ex
- Interface br-ex
- type: internal
- Port "br100"
- Interface "br100"
- Port "qg-36b45515-cb"
- Interface "qg-36b45515-cb"
- type: internal
- Bridge br-tun
- Port "gre-1"
- Interface "gre-1"
- type: gre
- options: {in_key=flow, out_key=flow, remote_ip="eth0"}
- Port "gre-2"
- Interface "gre-2"
- type: gre
- options: {in_key=flow, out_key=flow, remote_ip="10.10.19.2"}
- Port patch-int
- Interface patch-int
- type: patch
- options: {peer=patch-tun}
- Port br-tun
- Interface br-tun
- type: internal
- Port "gre-3"
- Interface "gre-3"
- type: gre
- options: {in_key=flow, out_key=flow, remote_ip="192.168.1.221"}
- Bridge br-int
- Port "tap5734b2ce-8a"
- tag: 1
- Interface "tap5734b2ce-8a"
- type: internal
- Port "tapcd2823fb-2e"
- tag: 4095
- Interface "tapcd2823fb-2e"
- type: internal
- Port "tap204031ea-bb"
- tag: 2
- Interface "tap204031ea-bb"
- type: internal
- Port patch-tun
- Interface patch-tun
- type: patch
- options: {peer=patch-int}
- Port int-br-ex
- Interface int-br-ex
- Port "qr-89385bc6-86"
- tag: 4095
- Interface "qr-89385bc6-86"
- type: internal
- Port br-int
- Interface br-int
- type: internal
- Port "qr-959a1cb9-78"
- tag: 1
- Interface "qr-959a1cb9-78"
- type: internal
- ovs_version: "1.4.0+build0"
- root@amrwobl222:~# brctl show
- bridge name bridge id STP enabled interfaces
- br-ex 8000.00e081db0acd no eth0
- br-int 0000.72df9898b643 no int-br-ex
- qr-89385bc6-86
- qr-959a1cb9-78
- tap204031ea-bb
- tap5734b2ce-8a
- tapcd2823fb-2e
- br-tun 0000.d6a41c8c0a4e no
- root@amrwobl222:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement