Network management¶
This command allows to configure and check network related settings except firewall and ovpn.
This command has following subcommands:
show
shows network configuration
status
shows current network status
turn_on_cellular
turns on cellular modem
turn_off_cellular
turns off cellular modem
configure_cellular adds configuration on the device for cellular modem
static_ip
sets static ip for network interface
dhcp
sets dhcp on network interface
ignore_default_route
enable/disable deafult route from DHCP
set_config
sets network configuration from a json file
get_config
saves network configuration in ./network_config.json
static_routing
Configure static routing
Examples:
To configure cellular1 interface
nm configure_cellular 1 --apn internet --pin 1234
show¶
Prints network related configurable values of EG to console. In case of configuration which may result in dynamically changing values it also shows them at the moment when command is executed. Commands show, get_config and status are related to checking network configuration.
The difference is on the their focus. show focuses on showing currently configured values to human. get_config focuses on whole configuration backup. status focues on current actual values used by system and includes also things that are not configurable (like loopback interface).
status¶
Same as executing classic Linux commands ‘ifconfig’ and ‘route’. Commands show, get_config and status are related to checking network configuration. The difference is on the their focus. show focuses on showing currently configured values to human. get_config focuses on whole configuration backup. status focues on current actual values used by system and includes also things that are not configurable (like loopback interface).