Network configuration

Sometimes you will want to manually configure networking. This has the advantage of being network-manager and dbus independent.

For those migrating from Stretch remotely, you must use these instructions or you will lose access to the remote host.

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.

iface eth0 inet static 
address 192.168.1.2 
netmask 255.255.255.0
gateway 192.168.1.1

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