Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 29

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2021
    Posts
    5

    PiCorePlayer and wifi Access Point in Bridge mode

    Hello all!

    I use with success pcp for my audio multiroom since 4 years now. All works fine.

    One of my player is hoste on a Rpi3 (with embedded wifi chip), so I want this player do more things like sharing LAN access.

    I activate WAP mode, go to wap mode page and fill in fields. After reboot access point is OK; I can connect to it with all my devices. But in this mode, there is another dhcp server on the Rpi giving devices connected an IP adress. I want use the bridge mode as connected devices will have IP from my primary DHCP server.
    This mode doesn't work because of brctl command can't operate the bridgingbetween eth0 and wlan0:

    Code:
    tc@pCP:~$ brctl
    Usage: brctl [commands]
    commands:
            addbr           <bridge>                add bridge
            delbr           <bridge>                delete bridge
            addif           <bridge> <device>       add interface to bridge
            delif           <bridge> <device>       delete interface from bridge
            hairpin         <bridge> <port> {on|off}        turn hairpin on/off
            setageing       <bridge> <time>         set ageing time
            setbridgeprio   <bridge> <prio>         set bridge priority
            setfd           <bridge> <time>         set bridge forward delay
            sethello        <bridge> <time>         set hello time
            setmaxage       <bridge> <time>         set max message age
            setpathcost     <bridge> <port> <cost>  set path cost
            setportprio     <bridge> <port> <prio>  set port priority
            show            [ <bridge> ]            show a list of bridges
            showmacs        <bridge>                show a list of mac addrs
            showstp         <bridge>                show bridge stp info
            stp             <bridge> {on|off}       turn stp on/off
    tc@pCP:~$ brctl addbr br0
    add bridge failed: Package not installed
    After many web search, it appears that the kernel of piCorePlayer is compiled with the option "CONFIG_BRIDGE=m" ...

    There is a way to make brctl command working without compiling a new kernel ?

    Thanks

    Olivier

  2. #2
    Junior Member
    Join Date
    Apr 2021
    Posts
    5
    Hello all!

    Nobody has an idea?

  3. #3
    Senior Member
    Join Date
    Apr 2008
    Location
    France
    Posts
    2,272
    brctl is certainly not a requirement otherwise it would be part of the kernel.
    Perhaps you can try using "ip": https://baturin.org/docs/iproute2/#ip-link-add-bridge

    This being said I guess you'll have to bridge ethernet early enough so that it'll get IP configured at boot, and not eth0. Hope that's ok.
    2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone + iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa • Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,407
    The bridging kernel modules should have been installed when you installed WAP mode. What version are you using?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #5
    Junior Member
    Join Date
    Apr 2021
    Posts
    5
    Hello Epoch and Paul,

    Thanks for tour answers.

    Epoch, eth0 has IP at boot by my primary dhcp (fixed). But problem is not here. I cant actually add a bridge as a new interface. I hope i understood your sentence...

    I use the last version of piCore player or not far... (piCorePlayer v7.0.1 | www v00016 | linux 5.4.83-pcpCore-v7 | piCore v12.0pCP | Squeezelite v1.9.9-1364-pCP)

    WAP mode has an option to use bridge mode, and when i check sh, i can see it calls brctl command. brctl and all package and dependancy are ok.

    In WAP mode when I Check bridge mode, apmode restart but because of brctl command doesnt work, I cant access pi by eth or wlan interfaces. In fact I check basics, so it is why I try to make a bridge with cli
    Last edited by oliverbg1; 2021-04-19 at 03:36.

  6. #6
    Senior Member
    Join Date
    Apr 2008
    Location
    France
    Posts
    2,272
    Well, well.
    I wasn't aware bridged AP mode was a thing in piCore. I have one player running pCP v7 that I installed recently. So I went about and clicked my way through setting up AP mode (downloads went well apparently), bridged mode (doesn't seem to get concerned with the IP address field just above it).

    And then I pressed the start button (or something like that, I don't have the GUI in front of me anymore, now
    I thought that would start an AP bridged with eth0 and clients would be part of the main LAN.
    Last thing I saw was a trace mentioning IP address 10.10.10.1, which is useless on my network, and possibly in this scenario, too.

    Alas, the headless machine has now sailed away. It's not in a 10.10.10.0/24 network, either on wifi or ethernet. It doesn't have an mDNS published address. Perhaps it has a zeroconf address but I didn't scan long enough to find it.
    In other words, it feels a little bit like a brick.

    I will get myself out of trouble, no worries.
    But either there is somehow room for improvement for the unsuspecting user merrily clicking through the GUI, or there is a bug in that feature in v7.
    2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone + iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa • Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •