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:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 05/8/08



{ 0 comments… add one now }