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
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- OpenBSD Install Ports Collection
- OpenBSD Change / Set IP Address For Network Interface
- OpenBSD Change Hostname
- Openbsd list open tcp or udp ports
- If sshd is restart will any connections be disconnected
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /etc/netstart, ifconfig command, openbsd start network, openbsd stop network, openbsd update network



Recent Comments
Yesterday ~ 7 Comments
Yesterday ~ 33 Comments
Yesterday ~ 2 Comments
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments