-
Notifications
You must be signed in to change notification settings - Fork 0
Basic configuration using rc.conf.
CargOS uses /etc/rc.conf
to determine what will be executed when the system boots. Understanding this file is important.
The /etc/defaults/rc.conf
file contains the default values for most settings. To override a default value, the new value must be put into /etc/rc.conf
. The definitions there override the ones in /etc/defaults/rc.conf
(which you should leave unchanged).
If you have a standalone machine you can use any name (for example, vigor3.your.domain
). If your machine is connected to a network, you should supply the correct name. (e.g. hostname=vigor3.your.domain
).
By default CargOS uses your MAC address of the configured network interface.
If your are connected to a local network or the Internet through a router, set the defaultroute variable to the IP address of your router (sometimes called a default gateway). For example, defaultroute=192.168.1.1
.
Network interface configuration also happens in /etc/rc.conf
. For example to configure the interface called ens3 to use dhcp, one would need to add ifconfig_ens3=dhcp
to /etc/rc.conf
.
If a static configuration is preferred, one would use ifconfig_ens3="inet 192.168.0.1 netmask 255.255.255.0"
.