CNI Reference Plugins

A collection of reference and example networking plugins maintained by the containernetworking team that implement the CNI specification. Includes main plugins such as bridge, ipvlan, macvlan, ptp, host-device, and loopback, as well as meta plugins such as portmap, bandwidth, firewall, sbr, and tuning for additional networking functionality.

API entry from apis.yml

apis.yml Raw ↑
aid: cni:cni-plugins
name: CNI Reference Plugins
description: A collection of reference and example networking plugins maintained by the containernetworking
  team that implement the CNI specification. Includes main plugins such as bridge, ipvlan, macvlan, ptp,
  host-device, and loopback, as well as meta plugins such as portmap, bandwidth, firewall, sbr, and tuning
  for additional networking functionality.
humanURL: https://www.cni.dev/plugins/current/
properties:
- type: Documentation
  url: https://www.cni.dev/plugins/current/
- type: GitHubRepository
  url: https://github.com/containernetworking/plugins
- type: NaftikoCapabilities
  url: capabilities/cni-spec-capabilities.yml
tags:
- Containers
- Kubernetes
- Linux
- Network Plugins
- Networking
x-features:
- name: bridge
  description: Linux-bridge plugin attaching container veth pairs to a bridge.
- name: ipvlan
  description: IPVLAN plugin for L2/L3 IPVLAN attachments.
- name: macvlan
  description: MACVLAN plugin for MACVLAN attachments.
- name: host-device
  description: Plugin that moves an existing host device into a container netns.
- name: ptp
  description: Point-to-point veth-pair plugin.
- name: loopback
  description: Loopback interface configuration.
- name: portmap
  description: Meta-plugin that publishes container ports to the host via NAT.
- name: bandwidth
  description: Meta-plugin that applies ingress/egress traffic shaping with tc.
- name: firewall
  description: Meta-plugin that applies iptables/nftables rules for a container.
- name: sbr
  description: Source-based routing meta-plugin.
x-useCases:
- name: Kubernetes Pod Networking
  description: Use bridge + portmap as a minimal Kubernetes pod networking stack.
- name: Multi-Network Pods
  description: Combine reference plugins via Multus or chains for multi-NIC pods.