Quantcast
Channel: 钻戒 and 仁豆米
Viewing all articles
Browse latest Browse all 290

多台机器如何通过Open vSwitch的GRE相连

$
0
0

之前已经说过两台机器如何通过GRE互相联通。现在的场景是有3台机器,那么,该如何联通呢?拓扑图如下:

简单描述下:

  • HostA, ip是 10.1.1.1
  • HostB, ip是 10.1.1.2
  • HostC, ip是 10.1.1.3

那么:

  • HostA需要两个GRE tunnel 分别连接到 HostB 和 HostC
  • HostB需要两个GRE tunnel 分别连接到 HostA 和 HostC
  • HostC需要两个GRE tunnel 分别连接到 HostA 和 HostB

HostA上面需要执行gre的命令:

ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre options:remote_ip=10.1.1.2  
ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre options:remote_ip=10.1.1.3  

HostB和HostC可以依样画葫芦,那么如果机器多了,会达到一个疯狂的网状结构。


Viewing all articles
Browse latest Browse all 290

Trending Articles