码迷,mamicode.com
首页 > 其他好文 > 详细

Configure Open vSwitch Tunnels

时间:2015-05-11 23:50:43      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:

转自:

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.

Configure Open vSwitch Tunnels

标签:

原文地址:http://www.cnblogs.com/xinglongcui/p/4496004.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!