Devuan GNU+Linux is a free software operating system for your computer. Free software means you are free to use, copy and distribute, study, change the software, and share your modifications with the community.

Network configuration

Sometimes you will want to manually configure networking. This has the advantage that it does not depend on D-Bus and does not require a network manager. If you are migrating from Debian Stretch this is a requirement or you WILL lose access to the remote host upon reboot. The reason for this is that /etc/network/interfaces is deprecated in Debian as of Stretch. Create the /etc/network/interfaces file before attempting the upgrade.

Stretch migration

Create the network configuration file in /etc/network

root@debian:~# touch /etc/network/interfaces

Wired connections

Wired connections can be managed by configuring them in the interfaces configuration file.

root@debian:~# editor /etc/network/interfaces

Automatic network configuration

This will configure the network automatically whenever a link is detected. Adjust this according to your interface name if necessary.

allow-hotplug eth0
iface eth0 inet dhcp

Static network configuration

If you need static network configuration, adjust this to suit your interface name and network.

auto eth0
iface eth0 inet static

Wireless connections

This is similar to wired networks except you will need to provided authentication details. If you need automatic network configuration, you should use the wicd network manager.

Edit the interfaces file to setup the wireless network.

root@debian:~# editor /etc/network/interfaces

Adjust the interfaces file to suit your interface and network configuration.

allow-hotplug wlan0
iface wlan0 inet dhcp
        wpa-ssid myssid
        wpa-psk mypassphrase

This work is released under the Creative Commons Attribution-ShareAlike 4.0 International [CC BY-SA 4.0] license. All trademarks are the property of their respective owners. This work is provided “AS IS” and comes with absolutely NO warranty.

This site is a cookie-free zone