Configure network interfaces in Firecracker
mainFirecracker only supports Linux tap devices. The SDK provides two ways to manage networking:
- Static network interface: Attach a pre-created tap device, optionally with static IP configuration.
- CNI-configured network interface: Create a tap device via CNI plugins, which the SDK then attaches to the VM automatically.
Note: Using CNI-configured network interfaces requires the SDK to run with CAP_SYS_ADMIN and CAP_NET_ADMIN Linux capabilities to manage network namespaces.