![]() |
|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
I can't auto config my wireless network interface so I tried to configure it by myself, I really don't know what I'm doing wrong, but I have no network. As device type or anything it was I selected auto, as IP address 192.168.1.2, mask 255.255.255.0, gateway 192.168.0.1, dns domain local.domain and dns1 1.1.1.1.
|
|
||||
![]()
Why not? What have you tried and how does it fail, exactly? Have you read hostname.if(5)?
Quote:
You can use Linux to check workable values, here's my system as an example: Code:
$ ip r default via 192.168.0.1 dev wlan0 proto static metric 304 192.168.0.0/24 dev wlan0 proto static scope link src 192.168.0.11 $ |
|
|||
![]()
Well, i cant auto detect it due to some errors. I forgot to connect to a wifi ndtwork,how can i do it at network configuration in the sysinst?
Last edited by J65nko; 30th November 2021 at 03:08 AM. Reason: Removed full quote ...... |
|
|||
![]()
I'm sorry for that, I just wrote the message using a phone with alphanumeric keypad, it's so annoying.
Also, by sysinst i mean the NetBSD installer. I've copied the /etc/hostname.if from my OpenBSD root to the NetBSD root, rebooted but didn't worked. |
|
|||
![]() Quote:
OpenBSD manages it's own encryption and networking and the default does not use wpa_supplicant. NetBSD uses wpa_supplicant exclusively. NetBSD, as does FreeBSD, recommends you setup wireless in /etc/rc.conf: 24.2.1. Connecting using IEEE 802.11 (Wi-Fi) You are all over this forum hopping from FreeBSD <-> OpenBSD <-> NetBSD. Each of these projects has documentation on how to accomplish different tasks. FreeBSD Handbook OpenBSD FAQ The NetBSD Guide If you would have utilized these resources, you would have had copy/paste setup guides. There is one helpful suggestion that is in the Arch wiki on appending a network to /etc/wpa_supplicant.conf. The command wpa_passphrase(8) takes your SSID followed by the WPA key and outputs the necessary information for /etc/wpa_supplicant.conf. You can redirect the output from the terminal to the file /etc/wpa_supplicant.conf with ">" or ">>". ">" overwrites the file while ">>" appends the output to the file. For NetBSD do not us ">" as it already contains Code:
# Allow wpa_cli(8) to configure wpa_supplicant ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel update_config=1 wpa_passphrase discord passphrase >> /etc/wpa_supplicant.conf which will result in Code:
# Allow wpa_cli(8) to configure wpa_supplicant ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel update_config=1 # Automatically connect to the protected network "discord" using the password "passphrase". network={ ssid="discord" #psk=passphrase psk="******************************************" } ArchLinux Wiki wpa_supplicant Last edited by shep; 5th December 2021 at 04:44 PM. Reason: clarity |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Network configuration for a USB broadband device | PapaParrot | OpenBSD General | 50 | 16th April 2018 08:28 PM |
Plan 9 network configuration | gpatrick | Other OS | 1 | 27th January 2015 02:06 AM |
KVM Virtual Machine network configuration | J65nko | Other BSD and UNIX/UNIX-like | 3 | 2nd December 2014 06:00 AM |
Network Card Configuration | Freeco | FreeBSD Installation and Upgrading | 6 | 8th May 2010 11:11 AM |
Network configuration issue (gateway(s)) | amorphousone | OpenBSD General | 3 | 25th November 2009 04:53 AM |