menu
small_header_rootserver.svg

netcup wiki

Server

Establishing an Internet Connection with OpenBSD

Learn how to set up your internet connection on OpenBSD.

Background

OpenBSD uses dhcpleased by default. However, it is not compatible with our infrastructure. As an alternative, you can use isc-dhcp-client.

Procedure for Manual Network Configuration

An automatic connection via the OpenBSD installer is not possible. Follow these steps to set up a network connection manually:

  1. Boot from the DVD and install OpenBSD without configuring the network interfaces ("none").

  2. Log in with the VNC console and configure the network manually:

    ifconfig vio0 <IPAddress> netmask <IPNetmask>

    echo "nameserver 46.38.252.230\nnameserver 46.38.225.230" >> /etc/resolv.conf

    route add default <GatewayIP>

  3. To set the network configuration permanently, create the file /etc/hostname.vio0 with the following content:

inet <IPAddress> <IPNetmask>

!route add default <GatewayIP>

  1. Then, run sh /etc/netstart to configure the network interface.

Frequently Asked Questions (FAQ):

Why does netcup not offer a preconfigured OpenBSD image?

We use cloud images configured with cloud-init for preconfigured images. However, official cloud images are not offered by OpenBSD itself (as of August 2025).

Last update: 03/09/2025