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
分类:
neutron
, Openvswitch
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现