efe_ertugrul

apple developer

home tech_notes app_store github stackoverflow devto

NetBSD network configuration


Summary

In this part i’ll show you how to enable NetBSD dhcp daemon for internet connection. Most of the time there is already a dhcp service in your network (your router, virtualbox). So there is no need for manual ip configuration.

If you need to set manual ip configuration for your network or enabling dhcp daemon did not work for you, please visit this website for more information: Setting up TCP/IP on NetBSD in practice


Instructions

1- Start and login to your system.

003-netbsd-network-configuration-001

2- Switch to root user with su command.

003-netbsd-network-configuration-002

3-Open /etc/rc.conf configuration file with vi program.

003-netbsd-network-configuration-003

4- At the end of the file, add dhcpcd=YES configuration and save the file.

003-netbsd-network-configuration-004

5- Restart your system with shutdown -r now command.

003-netbsd-network-configuration-005

003-netbsd-network-configuration-006

6- When your system starts again login and try to ping google with command ping google.com . If you are getting any response, you’re connected to internet.

003-netbsd-network-configuration-007


download this page as .md

download this page as .pdf

back to NetBSD Guides