Openvswitch手册(7): Interfaces

概述      我们来看Interfaces ofport: OpenFlow port number for this interface. type: system: An ordinary network device, e.g. eth0 on Linux. internal: A simulated network device that sends and receives traffic    

 

我们来看Interfaces

ofport: OpenFlow port number for this interface.

type:

system: An ordinary network device,e.g. eth0 on linux. internal: A simulated network device that sends and receives traffic. tap: A TUN/TAP device managed by Open vSwitch. gre: An Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4 tunnel. options : local_ip: The destination IP that received packets must match. Default is to match all addresses. options : remote_ip: The tunnel endpoint. options : in_key: The key that received packets must contain,one of: options : out_key: The key to be set on outgoing packets,one of: 0. The tunnel receives packets with no key or with a key of 0. This is equivalent to specifying no options:in_key at all. A positive 32-bit (for GRE) or 64-bit (for CAPWAP) number. The tunnel receives only packets with the specifIEd key. The word flow. The tunnel accepts packets with any key. The key will be placed in the tun_ID fIEld for matching in the flow table. ipsec_gre: An Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4 IPsec tunnel. options : peer_cert: required for certificate authentication. A string containing the peer’s certificate in PEM format. options : certificate: required for certificate authentication. The name of a PEM file containing a certificate that will be presented to the peer during authentication. options : private_key: Optional for certificate authentication. The name of a PEM file containing the private key associated with certificate. options : psk: required for pre-shared key authentication. SpecifIEs a pre-shared key for authentication that must be IDentical on both sIDes of the tunnel. patch : A pair of virtual devices that act as a patch cable. options : peer: The name of the Interface for the other sIDe of the patch. The named Interface’s own peer option must specify this Interface’s name. That is,the two patch interfaces must have reversed name and peer values.

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

总结

以上是内存溢出为你收集整理的Openvswitch手册(7): Interfaces全部内容,希望文章能够帮你解决Openvswitch手册(7): Interfaces所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1022362.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存