Documentation
¶
Overview ¶
Package networking deals with enabling and managing networking inside firecracker virtual machines.
NuNet uses 172.20.0.0-172.20.255.255. Please note that 3rd octet is for particular application. If an application is using more than 1 VM, 4th octet will be used for assigning multiple VM in that network. For simplicity, following will be the mapping between tap devices on host and subnet range: tap0 -> 172.20.0.x tap1 -> 172.20.1.x tap2 -> 172.20.2.x tap3 -> 172.20.3.x And so on...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureTapByName ¶
ConfigureTapByName takes in a tap device name, and configures subnet range and makes some changes to iptables tables and chains.
func NextTapDevice ¶
func NextTapDevice() string
NextTapDevice queries the host machine for a tap devices name in a sequencial manner, if it does not exist, then it is returned to the caller. Example: tap0, tap1, tap2 etc. The first available is returned.
Types ¶
This section is empty.