Set static IP
To configure a static IP address on a BliKVM image, you can follow these steps:
v1 v2 v3 versions - Debian
-
SSH into the BliKVM, If it is a read-only system, please use the
rwcommand to make the system writable. -
Edit the network interfaces configuration file using the following command:
sudo vim /etc/NetworkManager/NetworkManager.conf
# make sure ifupdown if false
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no -
For example, configure the "MyWiFi" network to use a static IP address.
sudo chmod 777 -R /etc/NetworkManager/system-connections
systemctl restart NetworkManager
sudo nmcli connection modify "MyWiFi" ipv4.addresses 192.168.1.100/24
sudo nmcli connection modify "MyWiFi" ipv4.gateway 192.168.1.1
sudo nmcli connection modify "MyWiFi" ipv4.dns "8.8.8.8"
sudo nmcli connection modify "MyWiFi" ipv4.method manual
sudo nmcli connection up "MyWiFi"Adjust these values according to your network configuration.
-
Reboot BliKVM and check if the settings persist after reboot.
v4 version - armbian
-
SSH into the BliKVM, If it is a read-only system, please use the
rwcommand to make the system writable. -
Edit the network interfaces configuration file using the following command:
sudo vim /etc/network/interfaces -
Within the file, locate the section that starts with
# Example static IP configuration. -
Uncomment the lines below that section and modify them to set your desired static IP address, gateway, DNS servers, and other network settings.
For example:
source /etc/network/interfaces.d/*
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1Adjust the values according to your network configuration.
-
Save the changes.
-
Restart the NetworkManager for the changes to take effect:
sudo systemctl restart NetworkManager
After the reboot, your BliKVM will use the configured static IP address instead of obtaining one dynamically from a DHCP server. Make sure the static IP address you choose is not already assigned to another device on the network and is within the same subnet.