View Single Post
  #5   (View Single Post)  
Old 19th January 2012
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

As ocicat alluded to, there are at least 2 ways to starts a network connection
1) From rc.conf
2) From an ifconfig.if file in /etc
If you are looking to automate your connection, once you get them sorted out, there are several options. If your are using wpa_supplicant for your wireless you can set priorities and bring up wired, open-wireless, wep-wireless and wpa(2)-wireless. For example if the wired interface has the highest priority and the cable is plugged in and active it will associate with the wired nic and stop. Search for priority and wpa_supplicant and read the wpa_supplicant man page for more info. Another option is to # the unneeded connection in rc.conf. I think a wireless network manager has also has been ported to NetBSD that will handle wired connections.

Last edited by shep; 19th January 2012 at 01:52 AM. Reason: spelling and punctuation
Reply With Quote