OpenBSD Restart Networking Service

by Vivek Gite on April 8, 2008 · 0 comments

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

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">




Previous post:

Next post: