Wlan + Lan Bridge?

fabrizio432

Vu+ User
Is it possible setting vuplus to bridge wlan between lan, so the wireless network is on the same as lan network?

At the moment I can enable only one network at a time:

screenshotv.jpg
 

angelofsky1980

BlackHole Driver Specialist
Maybe you can suggest to me where to find a bridge-utils.ipk for enigma2?

Uhm... via GUI I think it's impossible to do that you request.
You can use the wireless dongle on your box to act as Access Point using the corresponding plugin called "Wireless Access Point" into Plugin menu BUT I'm pretty sure that you don't have WLAN and LAN in the same network.
 

fabrizio432

Vu+ User
I have latest BH 2 and brctl is already there.

I use BH 1.7.9 at the moment, because I'm still waiting for a solution about the issues that affect media player in BH 2.
I'll see later if Bridge-utils it's available in my version.
Thank you.
 

fabrizio432

Vu+ User
Bridge-utils is available in bh 1.7.9 also.

I'm not sure how to proceed.

If I type these commands, I can't connect to vusolo anymore:

Code:
addbr br0
addif br0 eth0 ra0
ifconfig br0 192.168.1.97 netmask 255.255.255.0 up
 

fabrizio432

Vu+ User
I used this script:

Code:
#!/bin/bash
brctl addbr mybridge
brctl addif mybridge eth0 ra0
ifconfig eth0 0.0.0.0
ifconfig ra0 0.0.0.0
ifconfig mybridge 192.168.1.97 netmask 255.255.255.0 up

but it won't work
 

komodo

Vu+ User
What exactly does not work ?

I don't have two interfaces, because i don't have wlan, but i tested with one and it's working.

Code:
#!/bin/bash
 
brctl addbr mybridge
brctl addif mybridge eth0
ifconfig eth0 0.0.0.0
ifconfig mybridge 192.168.2.200 netmask 255.255.255.0 up

and ifconfig output looks like this

Code:
root@vusolo2:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:EC:04:8F:FF 
          inet6 addr: fe80::21d:ecff:fe04:8fff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2236 errors:0 dropped:121 overruns:0 frame:0
          TX packets:2110 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:185094 (180.7 KiB)  TX bytes:415318 (405.5 KiB)
 
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7036 (6.8 KiB)  TX bytes:7036 (6.8 KiB)
 
mybridge  Link encap:Ethernet  HWaddr 00:1D:EC:04:8F:FF 
          inet addr:192.168.2.200  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:ecff:fe04:8fff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8786 (8.5 KiB)  TX bytes:11658 (11.3 KiB)
 

komodo

Vu+ User
Maybe there is some bug in the bridge-utils or in the kernel.
Try it with new BH2 ane you will see if the problem is in the image or somewhere else.
 

fabrizio432

Vu+ User
Strange.

Could you please post output of ifconfig and script that you have ?

This is the script:
Code:
#!/bin/bash
brctl addbr mybridge
brctl addif mybridge eth0 wlan0
ifconfig eth0 0.0.0.0
ifconfig wlan0 0.0.0.0
ifconfig mybridge 192.168.1.99 netmask 255.255.255.0 up

This is ifconfig result:
Code:
BlackHole 2.0.2 vusolo
 
vusolo login: root
root@vusolo:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:EC:01:86:EB 
          inet addr:192.168.1.93  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::21d:ecff:fe01:86eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:4951 (4.8 KiB)
          Interrupt:16
 
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:677 errors:0 dropped:0 overruns:0 frame:0
          TX packets:677 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:43034 (42.0 KiB)  TX bytes:43034 (42.0 KiB)
 
wlan0    Link encap:Ethernet  HWaddr 98:FC:11:CC:6B:03 
          inet addr:192.168.1.95  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::9afc:11ff:fecc:6b03/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:37 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1531947 (1.4 MiB)  TX bytes:27784 (27.1 KiB)
 
root@vusolo:~#
 

komodo

Vu+ User
As i say, i have not wlan iface, so i am not able to try exactly what you do.

What is dmesg last 10 rows, and lsmod output after you run this script ?

For me it's

dmesg

Code:
device eth0 entered promiscuous mode
mybridge: port 1(eth0) entered forwarding state
mybridge: port 1(eth0) entered forwarding state
mybridge: no IPv6 routers present

and you can see that bridge kernel module is loaded after this

lsmod

Code:
Module                  Size  Used by    Tainted: P
bridge                69070  0
stp                    1568  1 bridge
llc                    3729  2 bridge,stp

Maybe i can borrow some usb wifi at work and try it, but i don't know if there is some.
 

fabrizio432

Vu+ User
Maybe I do some error on launching script.
Telnetting "brctl addbr mybridge" it works
And also works "brctl addif mybridge eth0" and "ifconfig eth0 0,0,0,0", as you can see:

Code:
BlackHole 2.0.2 vusolo
 
vusolo login: root
root@vusolo:~# brctl addbr mybridge
root@vusolo:~# brctl addif mybridge eth0
root@vusolo:~# ifconfig eth0 0.0.0.0
root@vusolo:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:EC:01:86:EB  
          inet6 addr: fe80::21d:ecff:fe01:86eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:8783 (8.5 KiB)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1048 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1048 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:67766 (66.1 KiB)  TX bytes:67766 (66.1 KiB)

mybridge  Link encap:Ethernet  HWaddr 00:1D:EC:01:86:EB  
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:ecff:fe01:86eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:3432 (3.3 KiB)

wlan0     Link encap:Ethernet  HWaddr 98:FC:11:CC:6B:03  
          inet addr:192.168.1.95  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::9afc:11ff:fecc:6b03/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:30 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1964420 (1.8 MiB)  TX bytes:54864 (53.5 KiB)

root@vusolo:~#

Of course as soon as I send "brctl addif mybridge wlan0" I loose connection.

To launch script I FTP "bridge.sh" in /tmp and then I send these commands:
Code:
cd /tmp
sh bridge.sh

What's wrong?
 

komodo

Vu+ User
So if you run this script you have error, but from command line and brctl there is no error ?

Do you run script via telnet ?
 

komodo

Vu+ User
Ok, what error ?

If you run script you have error add bridge failed: invalid argument, but from command line it's ok ?

Btw, you loose connection because your IP is changed, so better way is to resolve problem with your script, because via command line you are not able to do all this without loosing connection.
 
Top