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.
  • 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

popsuper1982

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值