Network interface configurator for GRiSP systems.
- Wired Ethernet, IPv4 DHCP
- Wired Ethernet, IPv4 static IP
- CAN bus
- M-DNS
grisp_netman appplication configuration needs to be specified in the config file of your release.
This is the minimal configuration to bring up the ethernet interface called eth0.
This uses the dhcp client deamon to set the interface addresses.
{grisp_netman, [
{interfaces, [
{"eth0", [
{type, grisp_netman_ethernet},
{ipv4, [
{method, dhcp}
]}
]}
]}
]}You need to specify at least IP and network mask length. Gateway and nameservers are optional.
{grisp_netman, [
{interfaces, [
{"eth0", [
{type, grisp_netman_ethernet},
{ipv4, [
{method, static},
{address, "192.168.2.100"}, % required
{netmask, 24}, % required
{gateway, "192.168.2.1"}, % optional
{nameservers, ["1.1.1.1"]} % optional
]}
]}
]}
]}You can optionally specify the bitrate, 500000 is the default.
{grisp_netman, [
{interfaces, [
{"can0", [
{type, grisp_netman_can},
{bitrate, 500000}
]}
]}
]}