1 1
TarasBY

Armbian buster on BananaPi M2U Access Point

Recommended Posts

(edited)

I can not raise the Access Point. Already my head is spinning on the number of tried recipes from the Internet. Service information here. Help me please.

Configuration files:
/etc/hostapd.conf
 

ssid=BananaPI-WiFi
interface=wlan0
hw_mode=g
channel=5
bridge=br0
driver=nl80211
logger_syslog=1
logger_syslog_level=2
wmm_enabled=1
wpa=2
preamble=1
wpa_psk=c86e997b3dceff9bd7ffaf3f7353099a301c2**********d10a892c33cafcb5db
wpa_passphrase=10********IV
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=1
noscan=0
### IEEE 802.11n
#ieee80211n=1
#ht_capab=
#country_code=US
#ieee80211d=1
### IEEE 802.11n
### IEEE 802.11a
#hw_mode=a
### IEEE 802.11a
### IEEE 802.11ac
#ieee80211ac=1
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3]
#vht_oper_chwidth=1
#vht_oper_centr_freq_seg0_idx=42
### IEEE 802.11ac
# controlling enabled
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

/etc/dnsmasq.conf

interface=wlan0                                 # Use interface wlan0
listen-address=192.168.42.1                     # Explicitly specify the address to listen on
bind-interfaces                                 # Bind  to the interface to make sure we aren't sending things elsewhere
server=8.8.8.8;192.168.1.101;                   # Forward DNS requests to Google DNS
domain-needed                                   # Don't forward short names
bogus-priv                                      # Never forward addresses in the non-routed address spaces
dhcp-range=192.168.42.10,192.168.42.100,24h     # Assign IP addresses  between 172.24.1.50 and 172.24.1.150 with a 12 hour lease time

/etc/resolv.conf

nameserver 127.0.0.1

/etc/dhcp/dhcpd.conf

ddns-update-style none;
authoritative;
subnet 192.168.42.1 netmask 255.255.255.0 {
    range 192.168.42.10 192.168.42.100;
    option broadcast-address 192.168.42.255;
    option routers 192.168.42.1;
    default-lease-time 600;
    max-lease-time 7200;
    option domain-name "local";
    option domain-name-servers 8.8.8.8, 8.8.4.4;
}

/etc/default/isc-dhcp-server

INTERFACESv4="wlan0"
INTERFACESv6="wlan0"

/etc/network/interfaces

source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback
#auto eth0
# iface eth0 inet dhcp
allow-hotplug eth0
iface eth0 inet static
  #alow-hotplug eth0
  address 192.168.1.102
  netmask 255.255.255.0
  gateway 192.168.1.101
  dns-nameservers 192.168.1.101
#auto wlan0
#iface wlan0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
  address 192.168.42.1
  netmask 255.255.255.0
auto wlx000da31d4105
iface wlx000da31d4105 inet dhcp
wpa_ssid STP_NET
wpa_psk 10********63
#wpa-conf /etc/network/wpa_supp.conf
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

/etc/network/interfaces.d/armbian.ap.nat

allow-hotplug wlan0
iface wlan0 inet static
        address 192.168.42.1
        netmask 255.255.255.0
        network 192.168.42.0
        broadcast 192.168.42.255

/etc/network/wpa_supp.conf

network={
    #proto=WPA2
    #pairwise=CCMP TKIP
    key_mgmt=WPA-PSK
    #priority=5
    scan_ssid=1
    ssid="STP_NET"
    #bssid=30:0c:23:bf:8c:1a
    #psk=97dbbf104f1f1e4e4ec61ab84b2adc40af*************e3161a6fa4b56da911
    psk=10********63
}

/etc/wpa_supplicant/wpa_supplicant.conf

#network={
#        ssid="STP_NET"
#        psk="***********"
#        psk=97dbbf104f1f1e4e4ec61ab*******************38ae3161a6fa4b56da911
#}

/etc/NetworkManager/system-connections/Armbian ethernet.nmconnection

[connection]
id=Armbian ethernet
uuid=722668d8-a507-423c-9d76-3a009a652da2
type=ethernet
interface-name=eth0
permissions=
timestamp=1589196940
[ethernet]
mac-address-blacklist=
[ipv4]
address1=192.168.1.102/24,192.168.1.101
dns=8.8.8.8;192.168.1.101;
dns-search=
method=manual
route-metric=78
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

/etc/NetworkManager/conf.d/armbian-default-metric.conf

[connection-ethernet-gateway]
match-device=interface-name:eth0
ipv4.route-metric=50
[connection-wifi-other]
match-device=type:wifi
# add row
match-device=interface-name:wlan0
ipv4.route-metric=88
[connection-ethernet-other]
match-device=type:ethernet
ipv4.route-metric=77

 

Edited by TarasBY

Share this post


Link to post
Share on other sites

Thank you very much, gentlemen, for helping! And so quickly! I’m still tormented by the question: "Why did I buy Banana Pi?"

Share this post


Link to post
Share on other sites
21 hours ago, TarasBY said:

Thank you very much, gentlemen, for helping! And so quickly!

 

By downloading free software you didn't get free premium support or any rights to complain about. This is best effort support forum: https://github.com/armbian/build#support Ask, if no answer, research more -> if you need a solution, pay for help / DIY.


Technical questions can't be solved without focusing into it. For that someone needs to be up to date and have to find time to pick up "clients" problem.

There are about 1000x more people that seek help, then give. Have you used search before to help making this ratio more pleasant for those who give help? There are many similar ideas on this forum. I am sure you could get some clues if not a solution.

 

Since we don't (pay for) support this hardware, there is a great chance nobody is listening ... sorry. You should be aware of that.

 

21 hours ago, TarasBY said:

I’m still tormented by the question: "Why did I buy Banana Pi?"


Rather support software development which is the only way you will get some rights to complain - cheap hardware without is a paperweight. Currently you - users - are not covering download costs, which means demanding help - 100% on our expense - is at least rude if nothing worse. Demanding free 1000 USD valued help is ... no words for that. Doing something for the project or community first, then asking for help .... can perhaps change things.
 

Share this post


Link to post
Share on other sites
3 hours ago, Igor said:

My sincere sympathy for you - you did not have to spend so many useless words.
I rarely ask for help - only as a last resort. I’ve been working with a computer for 30 years, but in this case, after an almost week-long battle with this board, I had to ask for outside help. But as always - saving a drowning man is the problem of the drowning man himself. No problems!

 

Share this post


Link to post
Share on other sites
7 minutes ago, TarasBY said:

saving a drowning man is the problem of the drowning man himself


... as we are drowning in the flow of (mainly unrelated to our work) questions that are coming up every day.
 

12 minutes ago, TarasBY said:

after an almost week-long battle with this board

 

Welcome to the battleground :thumbup:

 

If you would asked before whether is it worth fighting it, I would save you a week ... I have that kind of experiences which I am glad to share with you. This know-how is manifested in our labels: "WIP", "COMMUNITY SUPPORT", "SUPPORT", "EOS". For your own good, you don't want to ignore them, but do ignore sales messages, "review" sites, users hype fueled by impressions and marketing, ...

 

30 minutes ago, TarasBY said:

I’ve been working with a computer for 30 years

 

Use supported hardware. Even that is not a guarantee, but it's a much more solid ground. A place where one person (with 20-30 years of general computer / Linux experience) can do something useful. In this case, its useless since lower level support is fragile, immature and unstable. If you want all this to work, you have to fix many things - if you have seniority in this field and you will need to find some friends. Alone is always hard. You have to lead and be a developer. On our forum you can find useful clues which will save you time ...

 

26 minutes ago, TarasBY said:

so many useless words

 

Perhaps they are useless for your battle, but it might save somebody else's week.

Share this post


Link to post
Share on other sites
(edited)
9 hours ago, Igor said:

Тёзка, я не понимаю: "Зачем тратить время (своё и других людей) на безполезную переписку?" Вы меня хотите в чём-то убедить? За 30 лет в среде Windows мне приходилось и сервера администрировать на чуть более, чем начальном уровне. А вот с Linux я пока дело не имел. Решил попробовать - ОС поставил, OpeHub поставил, MQTT сервер поставил, а вот точку доступа настроить не удалось, хотя теоретически сложного особо ничего и нет. Но не работает, причём, на этапе аутентификации. Профессионалу такие вещи сразу видны, поэтому и обратился за помощью. Поверьте, нет помощи - значит, нет. Терпенье и труд всё перетрут. :)

 

Edited by TarasBY
edit

Share this post


Link to post
Share on other sites
2 hours ago, Tido said:

Maybe it helps to go back to the begin. Create a plan and leave away what is not needed right away, just to see if it works. Like I did here  https://forum.armbian.com/topic/3476-bpi-r1-with-new-b53-switch-driver-dsa/?do=findComment&comment=26470

 

To be honest, I do not understand the meaning of your actions. I plan to clear all the configuration data and create the AP using software tools (without my participation).
But thanks anyway!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1