User's Manual
Wifx L1 User manual revision 1.0
EN
18
Additional configuration
Additional DHCP configuration is often not required but if you need to modify parameters or add route for
example, you can either use the web interface (Network → Ethernet → Settings) or consult nmcli’s
documentation
1
if you prefer the terminal access (USB or SSH).
7.1.3 STATIC
Following connection display described at 7.1.1.3 Connection information, you can modify connection parameters
like setting the method to manual and the IP address, netmask, etc.
7.1.3.1 DEFINE A STATIC IPV4 ADDRESS WITH CUSTOM DNS
The following commands will define a fixe IPv4 address, the gateway and DNS addresses and finally set the method
to manual (use auto to come back to DHCP):
$ nmcli connection modify backhaul ipv4.address 192.168.1.11/24
$ nmcli connection modify backhaul ipv4.gateway 192.168.1.1
$ nmcli connection modify backhaul ipv4.dns 8.8.8.8
$ nmcli connection modify backhaul ipv4.method manual
Apply the new parameters with the following command:
$ nmcli connection up backhaul
The nmcli show connection command returns now the following:
$ nmcli connection show backhaul
[…]
ipv4.method: manual
ipv4.dns: 8.8.8.8
[…]
ipv4.addresses: 192.168.1.11/24
ipv4.gateway: 192.168.1.1
[…]
IP4.ADDRESS[1]: 192.168.1.11/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 100
IP4.DNS[1]: 8.8.8.8
[…]
From the web interface, you can observe the graphical equivalent:
1
nmcli — command-line tool for controlling NetworkManager
https://developer.gnome.org/NetworkManager/stable/nmcli.html