50 lines
639 B
TOML
50 lines
639 B
TOML
![]() |
# Net configuration: includes the base configuration and adds files required
|
||
|
# for networking
|
||
|
|
||
|
include = ["base.toml"]
|
||
|
|
||
|
## Network packages
|
||
|
[packages]
|
||
|
netstack = {}
|
||
|
netutils = {}
|
||
|
|
||
|
## Network init
|
||
|
[[files]]
|
||
|
path = "/etc/init.d/10_net"
|
||
|
data = """
|
||
|
smolnetd
|
||
|
dnsd
|
||
|
dhcpd -b
|
||
|
"""
|
||
|
|
||
|
## Default net configuration (optimized for QEMU)
|
||
|
[[files]]
|
||
|
path = "/etc/net/dns"
|
||
|
data = """
|
||
|
208.67.222.222
|
||
|
"""
|
||
|
|
||
|
[[files]]
|
||
|
path = "/etc/net/ip"
|
||
|
data = """
|
||
|
10.0.2.15
|
||
|
"""
|
||
|
|
||
|
[[files]]
|
||
|
path = "/etc/net/ip_router"
|
||
|
data = """
|
||
|
10.0.2.2
|
||
|
"""
|
||
|
|
||
|
[[files]]
|
||
|
path = "/etc/net/ip_subnet"
|
||
|
data = """
|
||
|
255.255.255.0
|
||
|
"""
|
||
|
|
||
|
[[files]]
|
||
|
path = "/etc/net/mac"
|
||
|
data = """
|
||
|
54-52-00-ab-cd-ef
|
||
|
"""
|