Solved

Wirless bridge?

Posted on 2004-04-17
5
7,513 Views
Last Modified: 2012-06-21
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
Comment
Question by:ajcocker
  • 2
5 Comments
 
LVL 5

Expert Comment

by:willy134
ID: 10872845
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
 

Author Comment

by:ajcocker
ID: 10875855
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
 
LVL 5

Accepted Solution

by:
willy134 earned 450 total points
ID: 10879471
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now