[Voyage-linux] eth0
Edwin Whitelaw
(spam-protected)
Thu Dec 21 22:52:20 HKT 2006
Jeff,
You can't bridge by assigning two interfaces addresses in the same subnet. You'll need to check out the bridging FAQs.
Here's a working bridge interfaces file from one of my systems. It's running Voyage 0.2 but you should get the idea.
------------------------
# hostap WDS Bridge
auto br0
iface br0 inet static
address 172.16.8.4
netmask 255.255.255.0
broadcast 172.16.8.255
gateway 172.16.8.1
bridge_ports eth0 wlan0
# bridge_ports eth0 wlan0 wlan0wds0
pre-up iwconfig wlan0 mode Master essid wetherburn channel 11
---------------------
Note that ifconfig will show both eth0 and wlan0 (the AP in my case) as up but without IP addresses. The IP address is actually assigned to br0.
HTH,
Edwin
--------------------
auto eth0
iface eth0 inet static
address 192.168.1.14
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1 254
auto ath0
iface ath0 inet static
address 192.168.1.15
netmask 255.255.255.0
broadcast 192.168.1.255
madwifi-base wifi0
wireless-mode Master
# wireless-mode Adhoc
# wireless-mode Managed
up iwpriv ath0 mode 3
up iwconfig ath0 mode Master
up iwconfig ath0 freq 2.412G
up iwconfig ath0 essid "voyage"
up iwconfig ath0 txpower 20 dBm
up iwconfig ath0 enc off
up iwconfig ath0 rate 54M
up nat.sh ath0 eth0 "192.168.1.14/24"
As you can see I added the gateway line for eth0 but, no change. It's the same with that commented.
Thanks,
Jeff
jeffery at martcoinc.com wrote:
> Hello,
>
>
> For some reason I can not get my nic set up. I changed the default
> ip to what I need but, it will not even reply to a ping. I just want
> to create a simple yet powerful AP using ath0 and eth0. Any help would
> be appreciated.
>
>
>
>
> Thanks,
> Jeff Rager
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
--
<=+=+=+==+=+=+==+=+=+=+=+=+=+=+=>
Edwin Whitelaw, P.E.
New River Valley Unwired, LLC
2200 Lonesome Dove Dr
Christiansburg, VA 24073
540-239-0318
More information about the Voyage-linux
mailing list