Configure Open vSwitch Tunnels

转自:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/Installation_and_Configuration_Guide/Configuring_Open_vSwitch_tunnels.html

13.4.4. Configure Open vSwitch Tunnels

Tunneling with Open vSwitch allows you to encapsulate network traffic between physical Networking hosts. This enables VLANs to span multiple physical hosts and consequently permits instances to communicate as if they‘re on the same layer 2 network. Open vSwitch supports tunneling with the VXLAN and GRE encapsulation protocols.

GRE configuration example

?

Figure 13.2. Example GRE Tunnel

This diagram represents two instances running on two separate hosts connected by a GRE tunnel. Also illustrated are the required supporting physical and virtual components. This example steps through the creation of a GRE or VXLAN tunnel between two OVS running on separate Networking hosts.

?

Procedure 13.9. Tunnel configuration steps

  1. Each host participating in the network will required a virtual bridge named br-int; created using the ovs-ctlcommand on each host:

    ovs-vsctl add-br OVS-BR0
  2. With each bridge created, you are now able to create the tunnel, and create links between the two OVS-BR0 virtual bridges created above.

    Run the ovs-vsctl command on HOST1 to create the tunnel and link it to the bridge on HOST2

    GRE tunnel command:

    ovs-vsctl add-port ovsbr0 gre1 -- set Interface gre1 type=gre options:remote_ip=192.168.1.11

    For a VXLAN tunnel:

    ovs-vsctl add-port ovsbr0 vxlan1 -- set Interface vxlan1 type=vxlan options:remote_ip=192.168.1.11
  3. Run the ovs-vsctl command on HOST1 to create the tunnel and link it to the bridge on HOST2

    GRE tunnel command:

    ovs-vsctl add-port ovsbr0 gre1 -- set Interface gre1 type=gre options:remote_ip=192.168.1.10

    VXLAN tunnel command:

    ovs-vsctl add-port ovsbr0 vxlan1 -- set Interface vxlan1 type=vxlan options:remote_ip=192.168.1.10

Successful completion of these steps results in the two instances sharing a layer-2 network between separate hosts.

时间: 2024-10-13 16:21:53

Configure Open vSwitch Tunnels的相关文章

安装配置openstack 中的 Open vSwitch (OVS) service

?          # yum install openstack-neutronopenstack-neutron-ml2 openstack-neutron- openvswitch Edit the/etc/neutron/plugins/ml2/ml2_conf.ini file and complete the fol-lowing actions: a. In the [ml2] section,enable the flat and generic routingencapsul

[转]Configuring Open vSwitch

  (image from Anatomy of an open source cloud) A cloud data center consists of large numbers of physical servers, each running a hypervisor with one or more virtual switches connecting the physical network to virtual machines (see Anatomy of an open

[转]Examining Open vSwitch Traffic Patterns

In this post, I want to provide some additional insight on how the use of Open vSwitch (OVS) affects-or doesn't affect, in some cases-how a Linux host directs traffic through physical interfaces, OVS internal interfaces, and OVS bridges. This is some

[转]Comparing sFlow and NetFlow in a vSwitch

As virtualization shifts the network edge from top of rack switches to software virtual switches running on the hypervisors; visibility in the virtual switching layer is essential in order to provide network, server and storage management teams with

[转]Network flow monitoring with Open vSwitch

With network virtualization, the software switches (such as Open vSwitch) on the servers act like the edge switches. So, to gain insights into the network flow behavior, it becomes important to have some sort of flow monitoring technique to analyze t

Neutron 理解 (3): Open vSwitch + GRE/VxLAN 组网 [Netruon Open vSwitch + GRE/VxLAN Virutal Network]

学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GRE/VxLAN 虚拟网络 (4)Neutron L3 agent (5)TBD 目前,OpenStack Neutron 支持使用两种隧道网络技术 通用路由封装(GRE) 和 VxLAN 来实现虚拟的二层网络.这两种技术大致看起来非常相似,都是需要使用 OpenStack 在计算和网络节点上建立隧道

[转]Open vSwitch 安装及配置

Open vSwitch安装及配置 一. Open vSwitch简介 1.1概述 Open vSwitch是一个高质量的.多层虚拟交换机,使用开源Apache 2.0许可协议,由Nicira Networks开发,主要实现代码为可移植的C代码. 它的目的是让大规模网络自动化可以通过编程扩展,同时仍然支持标准的管理接口和协议(例如NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag).此外,它被设计位支持跨越多个物理服务器的分布式环境,类似于VMware

Install Open vSwitch on CentOS

转载:http://cloud-mate.org/2015/06/installing-open-vswitch-centos-cloudstack/ June 5, 2015  Stuart Nelson  CloudStack, Openstack Installing Open vSwitch on CentOS 6.6 I would like to use Open vSwitch on my KVM nodes in my CloudStack deployment. I will

Link Aggregation and LACP with Open vSwitch

http://blog.scottlowe.org/2012/10/19/link-aggregation-and-lacp-with-open-vswitch/ In this post, I'm going to show you how to use link aggregation (via the Link Aggregation Control Protocol, or LACP) with Open vSwitch (OVS). First, though, let's cover