≡ Menu

OpenBSD Restart Networking Service

Q. How do I restart networking service under OpenBSD operating system from a shell prompt? How do I start / stop interface?

A.You need to use /etc/netstart command scripts for network startup. It s the command script that is invoked by rc during an automatic reboot and after single user mode is exited; it performs network initialization.

If you made changes to interface called pnc0 by editing /etc/hostname.pnc0, type the following command to restart / reset / update TCP/IP configuration including routing table and set up the default routes:
# sh /etc/netstart pnc0
Mark an interface down i.e. stop networking service and transmission via interface called pnc0:
# ifconfig pnc0 down
To bring back interface, type:
# ifconfig pnc0 up

Share this tutorial on:

{ 0 comments… add one }

Leave a Comment

   Tagged with: , , , ,