-
Network configuration - Static vs dynamic IP
The LAN interface on the MinION Mk1C can operate in either DHCP (dynamic) mode or static mode. When in DHCP mode, the settings are acquired from the network’s DHCP server. Some networks do not have a DHCP server or you may wish to override the settings it provides. In such circumstances, the static mode can be used.
The static mode comes pre-configured with the following settings:
IP Address/Subnet Mask: 192.168.0.1/24
Default Gateway: 192.168.0.1
DNS Servers: 9.9.9.9, 8.8.8.8
-
To configure static IP addressing on the Ethernet port:
Here is an example of possible static settings that may be provided by your IT department:
IP Address: 10.20.30.40
Subnet Mask: 255.255.255.128
Default Gateway: 10.20.30.1
DNS Servers: 10.0.0.53, 10.0.1.53
To change the static profile to match these settings:- Log in to your MinION Mk1C using SSH via the WiFi connection.
- If you are given the subnet mask in the form
xxx.xxx.xxx.xxx
, convert this to CIDR format, which is a number between 1 and 32 (common values are 16, 24 and 25). You can use the following website to convert fromxxx.xxx.xxx.xxx
to a CIDR value: https://docs.netgate.com/pfsense/en/latest/network/cidr.html - Look up the
xxx.xxx.xxx.xxx
value in the first column and find the corresponding CIDR value in the second column. In the example above,255.255.255.128
corresponds to a CIDR value of/25
. - Once you have this value, open a terminal window and enter the following commands:
sudo nmcli con down dhcp
sudo nmcli con down static
sudo nmcli con mod static ipv4.method manual ipv4.address 10.20.30.40/25 ipv4.gateway 10.20.30.1 ipv4.dns 10.0.0.53,10.0.1.53 ipv4.routes "" connection.autoconnect yes
sudo nmcli con up static
In some instances, these commands may give an error message, however this is not a problem and the error should be ignored.
The addresses specified in the third command line are the values that need to be changed to match particular settings. Note that there is no space between the DNS server addresses.Use the following command to verify that your settings are correctly applied:
sudo nmcli dev show eth0
-
To configure dynamic IP addressing on the Ethernet port:
Open a terminal window and enter the following commands:
sudo nmcli con down static
sudo nmcli con up dhcp