找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: tiny***

[N1盒子] 【骨头版代码分享】小狮子N1学习个人笔记(7月1日置顶4楼更新N1做纯AP)

 火... [复制链接]
发表于 2019-6-28 19:55 来自手机 | 显示全部楼层
进来学习学习。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-29 01:18 | 显示全部楼层
看看,学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-29 01:40 来自手机 | 显示全部楼层
学习       看看 赞一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-29 13:58 | 显示全部楼层
xiaoshizia小柿子棒棒的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-29 16:20 | 显示全部楼层
过来学习学习。谢谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-6-29 18:16 | 显示全部楼层
观摩一下。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 12:19 | 显示全部楼层
学些一下!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 14:03 | 显示全部楼层
学习一下  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-1 16:17 | 显示全部楼层
本帖最后由 tinylion 于 2019-7-1 21:22 编辑

N1做纯AP(小狮子想实现AP和主路由或旁路由同网段)

主要参考几位大神的帖子
http://www.manongjc.com/detail/6-cahueeaayragwvv.html
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=385337&ordertype=1
https://injoy.work/archives/858db735.html

1. apt-get install hostapd rng-tools

2. nano /etc/default/hostapd
去掉前面#,改 DAEMON_CONF="/etc/hostapd.conf" 为 DAEMON_CONF="/etc/hostapd/hostapd.conf"
3. nano /etc/hostapd/hostapd.conf
贴入如下代码
  1. #
  2. # armbian hostapd configuration example
  3. #
  4. # nl80211 mode
  5. #

  6. interface=wlan0
  7. hw_mode=g
  8. channel=44
  9. bridge=br0
  10. driver=nl80211

  11. logger_syslog=0
  12. logger_syslog_level=0
  13. wmm_enabled=1
  14. wpa=2
  15. preamble=1

  16. wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
  17. wpa_passphrase=12345678
  18. wpa_key_mgmt=WPA-PSK
  19. wpa_pairwise=TKIP
  20. rsn_pairwise=CCMP
  21. auth_algs=1
  22. macaddr_acl=0

  23. noscan=1

  24. ## IEEE 802.11n
  25. ieee80211n=1
  26. ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-40]
  27. country_code=CN
  28. ieee80211d=1
  29. ## IEEE 802.11n

  30. ## IEEE 802.11a
  31. hw_mode=a
  32. ## IEEE 802.11a

  33. ### IEEE 802.11ac
  34. ieee80211ac=1
  35. vht_capab=[MAX-MPDU-3895][SHORT-GI-80][SU-BEAMFORMEE]
  36. vht_oper_chwidth=1
  37. vht_oper_centr_freq_seg0_idx=42
  38. basic_rates=60 90 120 180 240 360 480 540
  39. disassoc_low_ack=0
  40. ssid=N1
  41. ### IEEE 802.11ac

  42. # controlling enabled
  43. ctrl_interface=/var/run/hostapd
  44. ctrl_interface_group=0
复制代码


4. nano /etc/network/interface贴入如下代码:
  1. source /etc/network/interfaces.d/*

  2. auto lo br0
  3. iface lo inet loopback   # wireless wlan0
  4. allow-hotplug wlan0
  5. iface wlan0 inet manual   # eth0 connected to the ISP router
  6. allow-hotplug eth0
  7. iface eth0 inet manual   # Setup bridge  
  8. iface br0 inet static
  9.     bridge_ports wlan0 eth0
  10.     address 192.168.2.99
  11.     netmask 255.255.255.0
  12.     network 192.168.2.0
  13.     ## isp router ip, 192.168.2.2 also runs DHCPD ##
  14.     gateway 192.168.2.2
  15.     dns-nameservers 192.168.2.2
复制代码

DHCP服务器,IP地址为192.168.2.2提供(改为自己主路由或旁路提供DHCP的路由器地址就好,比如K2P,K3的地址)
本台AP的地址是192.168.2.99,参照代码自己改。

5. reboot    然后会看到WIFI名称为N1,输入密码12345678,连接成功,顺利上网。



我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 18:04 | 显示全部楼层
thanks very much
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 18:46 | 显示全部楼层
看看,谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 18:57 | 显示全部楼层
tinylion 发表于 2019-7-1 16:17
N1做纯AP(小狮子想实现AP和主路由或旁路由同网段)

主要参考几位大神的帖子

不错不错,学习了!

兄弟能在N1上搞定v2火箭的透明代理吗?看个官方和非官方的教程,搞了好几天了,还是不太稳定

点评

哈,之前也搞不定,用的一键脚本, 后面只好用酸酸乳了, 等以后闲下来我再研究一下  详情 回复 发表于 2019-7-1 21:18
这个简单 参考www.zfl9.com/ss-redir.html 相当顺利,armbian版本越新越好,就是没有ipv6 不过作者说最近要开工ipv6了  详情 回复 发表于 2019-7-1 20:30
补充一句,没有用docker,也没有装op,只是纯粹的armbian-debian,里边各种协议和规则令人头大  详情 回复 发表于 2019-7-1 18:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 18:59 | 显示全部楼层
jdpnews 发表于 2019-7-1 18:57
不错不错,学习了!

兄弟能在N1上搞定v2火箭的透明代理吗?看个官方和非官方的教程,搞了好几天了,还 ...

补充一句,没有用docker,也没有装op,只是纯粹的armbian-debian,里边各种协议和规则令人头大
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 19:27 | 显示全部楼层
ganxiefenxiangziyuan
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-1 20:01 | 显示全部楼层
N1跑nextcloud流畅度如何 配合app会不会卡 能不能增量备份?

点评

只能说我自己用着还行,我要求一向不高 挂移动硬盘就好,数据都在移动硬盘里的  详情 回复 发表于 2019-7-1 21:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 08:03

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表