About Linux FAQ

Browse More FAQs:

OpenBSD Restart Networking Service

Posted by Vivek Gite [Last updated: May 8, 2008]

This FAQ is part 4 of 5 in the series OpenBSD Networking

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

Navigation for OpenBSD Networking«OpenBSD Change / Set IP Address For Network InterfaceOpenbsd change, add or display default gateway»

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:

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!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.