Hi all,
I would like to set up a network bridge on my notebook running SuSE 9.2
to solve the following problem:
- My notebook has a wlan card and access to a wireless network (which
works).
- My friend needs access to the same network but does not have a wlan
card (but an ethernet port).
- Since I have an unused ethernet device and a patch cable, I would
like to connect both notebooks with the patch cable and set up a bridge
linking this network to the wlan on my notebook. The setup should be as
follows:
notebook 1 notebook 2
+----------------+ +---------------+
WLAN ------|-ath0 | | |
| | | | |
| bridge---eth0-|--------|-eth0 |
+----------------+ +---------------+
Communication between the notebooks works (tested with ping's).
The WLAN network is 192.168.0.X (obtained by DHCP from notebook 1)
The commands I use to set up the bridge are as follows:
ifconfig eth0 inet 0.0.0.0 promisc up
brctl addbr mybr
brctl setfd mybr 0
brctl sethello mybr 0
brctl stp mybr off
brctl addif mybr ath0
brctl addif mybr eth0
ifconfig mybr 192.168.10.1 netmask 255.255.255.0 up
Now, as already mentioned, pinging between the notebooks works, but I
am not sure how the bridge needs to be set up. Does it have to be on
another subnet? Is it possible for notebook 2 to get an IP address by
DHCP via bridge from the WLAN access point? And if these are two
different subnets, do I need to add some routes to the routing table?
Thanks very much for your help
Pascal
|