• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7653
  • Last Modified:

Wirless bridge?

Hi
I need help setting up a wireless bridge on my Fedora Core 1 server. This Linux server provides file, print, ADSL etc services to a home network of Windows XP PCs.  I want to extend this network wirelessly to my Dell Centrino portable.

I reconfigured the kernel with wireless and bridge support and installed a generic 8180 wireless card using ndiswrapper.  I have configured it so:
iwconfig wlan0 channel 1
iwconfig wlan0 mode Ad-Hoc
iwconfig wlan0 essid any
ifconfig wlan0 192.168.1.10 broadcast 192.168.1.255 netmask 255.255.255.0.  I have copied the output from ifconfig and  iwconfig below.  The portable now detects its presence.

I think I want a simple bridge which just sends/receives packets from eth0 to wlan0, no fancy tricks.  But if I create a bridge like this:
Brctl addbr br0
Brctl addif br0 etho
Brctl addif br0 wla0

then it doesn’t work and the network stops.  What do I need to do?

IFCONFIG

eth0      Link encap:Ethernet  HWaddr 00:04:E2:0E:02:8A  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3388 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3009 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:480517 (469.2 Kb)  TX bytes:956396 (933.9 Kb)
          Interrupt:12 Base address:0xd000

eth1      Link encap:Ethernet  HWaddr 00:40:F4:5F:04:1A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:547 errors:0 dropped:0 overruns:0 frame:0
          TX packets:577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:226238 (220.9 Kb)  TX bytes:67785 (66.1 Kb)
          Interrupt:3 Base address:0x5000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:61.9.184.2  P-t-P:61.9.128.251  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:483 errors:0 dropped:0 overruns:0 frame:0
          TX packets:514 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:211688 (206.7 Kb)  TX bytes:54418 (53.1 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:40:F4:5E:62:D2  
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Memory:ea000000-ea0000ff

IWCONFIG

wlan0     IEEE 802.11b  ESSID:"any"  Nickname:"wire"
          Mode:Ad-Hoc  Frequency:2.412GHz  Cell: 02:E0:8E:7D:9C:80  
          Bit Rate=11Mb/s   Tx-Power:20 dBm   Sensitivity=0/3  
          RTS thr=2432 B   Fragment thr=2432 B  
          Encryption key:off
          Power Management:off
          Link Quality:100/100  Signal level:-95 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


0
ajcocker
Asked:
ajcocker
  • 2
1 Solution
 
willy134Commented:
so basically you are trying to share internet access from the linux machine to the centrino???

if so check out this info
http://fedoranews.org/ghenry/gateway/

0
 
ajcockerAuthor Commented:
No not really. I am already sharing internet access.  The linux server is the internet gateway for my network. I use iptables and masquerading.  I just want the portable to be linked to the network in the same way as if it was connected to an access point.

It should be possible.  There is an article at www-106.ibm.com/developerworks/linux/library/l-wap.html which describes something very similar which builds wireless access point running linux on an embedded system.
0
 
willy134Commented:
from what I understand about bridges (which may be limited) a bridge will make it look like your centrino is connected directly to the network as if it were the linux box.  However, when you do this the linux box is no longer connected because of the bridge ( that linux box ip now is the ip of the laptop and all packets route to the laptop).

When you set up the connection sharing with NAT it will route the wlan0 packets it recieves to the eth0 without disabling the rest of your eth0 stuff.  However this limits the wireless notebook from being a server (because nat is not nice with port mapping)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now