Hello, all.
I've installed FreeBSD 11.4-RELEASE on my laptop just yesterday and got my wired network up and running. However, I also need to create an access point so I can connect my phone to the Internet (my modem doesn't have wireless capabilities). I've tried following the instructions in the handbook regarding APs and I can see the ssid on my phone, but I get the error "Failed to obtain IP address" if I try to connect to it.
My laptop has an Atheros wired (alc0) and wireless (ath0) device. Here is the output of
Here's my /etc/rc.conf:
and /boot/loader.conf:
Output of
Just as a sidenote: I have zero prior experience with FreeBSD and very limited experience with Linux. I hope you can excuse any mistakes I've made in configuring the OS and can be patient with me. Thanks in advance to all
I've installed FreeBSD 11.4-RELEASE on my laptop just yesterday and got my wired network up and running. However, I also need to create an access point so I can connect my phone to the Internet (my modem doesn't have wireless capabilities). I've tried following the instructions in the handbook regarding APs and I can see the ssid on my phone, but I get the error "Failed to obtain IP address" if I try to connect to it.
My laptop has an Atheros wired (alc0) and wireless (ath0) device. Here is the output of
ifconfig
:
Code:
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
ether 04:7d:7b:9c:a6:d5
hwaddr 04:7d:7b:9c:a6:d5
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 9c:b7:0d:c8:c8:62
hwaddr 9c:b7:0d:c8:c8:62
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid freebsdap channel 1 (2412 MHz 11g) bssid 9c:b7:0d:c8:c8:62
regdomain 101 indoor ecm authmode OPEN privacy OFF txpower 20
scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
groups: wlan
Here's my /etc/rc.conf:
Code:
ifconfig_alc0="DHCP"
ifconfig_wlan0="DHCP"
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1"
local_unbound_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="/boot/modules/i915kms.ko"
and /boot/loader.conf:
Code:
if_ath_load="YES"
Output of
pciconf -lv ath0
and alc0
:
Code:
ath0@pci0:7:0:0: class=0x028000 card=0x660311ad chip=0x002e168c rev=0x01 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'AR9287 Wireless Network Adapter (PCI-Express)'
class = network
alc0@pci0:3:0:0: class=0x020000 card=0x05741025 chip=0x10831969 rev=0xc0 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'AR8151 v2.0 Gigabit Ethernet'
class = network
subclass = ethernet
Just as a sidenote: I have zero prior experience with FreeBSD and very limited experience with Linux. I hope you can excuse any mistakes I've made in configuring the OS and can be patient with me. Thanks in advance to all