| 1 | --- |
| 2 | title: dummy plugin |
| 3 | description: "plugins/main/dummy/README.md" |
| 4 | date: 2022-05-12 |
| 5 | toc: true |
| 6 | draft: true |
| 7 | weight: 200 |
| 8 | --- |
| 9 | |
| 10 | ## Overview |
| 11 | |
| 12 | dummy is a useful feature for routing packets through the Linux kernel without transmitting. |
| 13 | |
| 14 | Like loopback, it is a purely virtual interface that allows packets to be routed to a designated IP address. Unlike loopback, the IP address can be arbitrary and is not restricted to the `127.0.0.0/8` range. |
| 15 | |
| 16 | ## Example configuration |
| 17 | |
| 18 | ```json |
| 19 | { |
| 20 | "name": "mynet", |
| 21 | "type": "dummy", |
| 22 | "ipam": { |
| 23 | "type": "host-local", |
| 24 | "subnet": "10.1.2.0/24" |
| 25 | } |
| 26 | } |
| 27 | ``` |
| 28 | |
| 29 | ## Network configuration reference |
| 30 | |
| 31 | * `name` (string, required): the name of the network. |
| 32 | * `type` (string, required): "dummy". |
| 33 | * `ipam` (dictionary, required): IPAM configuration to be used for this network. |
| 34 | |
| 35 | ## Notes |
| 36 | |
| 37 | * `dummy` does not transmit packets. |
| 38 | Therefore the container will not be able to reach any external network. |
| 39 | This solution is designed to be used in conjunction with other CNI plugins (e.g., `bridge`) to provide an internal non-loopback address for applications to use. |