ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Openvswitch手册(7): Interfaces

2019-08-23 19:03:35  阅读:320  来源: 互联网

标签:certificate tunnel Interfaces Openvswitch 手册 authentication key peer options


 

 

我们来看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

标签:certificate,tunnel,Interfaces,Openvswitch,手册,authentication,key,peer,options
来源: https://www.cnblogs.com/liuhongru/p/11402060.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有