Linux 14.981 Themen, 106.341 Beiträge

Zwei Netze "bridgen" ...

PingOfDeath / 7 Antworten / Flachansicht Nickles

Hallo,

ich habe einen Linux-PC (Kubuntu) der sich per WLAN an eine Fritz!Box anmeldet. In der Nähe dieses PCs stehen noch weitere Systeme - diese sollen jetzt über den Linux-PC an die Fritz!Box weitergeleitet werden.
Bis jetzt wurde das über einen fli4l-Router "gelöst" - aber ich möchte einen Server in den Ruhestand schicken ;-)

Ich möchte also eine Netzwerkbrücke zwischen den zwei Netzwerkkarten erstellen.

1.) wie mache ich das am schnellsten?
2.) ist dann das Gateway der Linux-PC oder die Fritz!Box?

Der Linux-PC sollte also für die 5 Win-/Linux- Clients "tansparent" sein.

Hat jemand ein paar Tipps für mich :-) ?

bei Antwort benachrichtigen
Yves3 the_mic „Relativ simpel, braucht auch keine Kompiliererei, ein einfaches modprobe bridge...“
Optionen

Ich habe das gerade mit meinem T42 probiert, weil der Router spinnt und nur noch Wireless-LAN funktioniert.
Folgende Config:

PC
ip: 192.168.1.3
default gateway: 192.168.1.2
route: 192.168.123.254 (router) über eth0

Notebook (Gateway)
eth0:
ip: 192.168.1.2
ath0
ip: 192.168.123.156 (DHCP)
default gateway: 192.168.123.254

So weit kann ich wie erwartet vom PC aus das Notebook pingen und vom Notebook aus den Router und das Internet.

Wenn ich jetzt aber den Bridge einrichte, dann geht gar nichts mehr.

# brctl addbr mybridge
# brctl addif mybridge eth0
# brctl addif mybridge ath0


Ich habe jetzt folgendes gefunden:


It doesn't work with my Wireless card!

This is a known problem, and it is not caused by the bridge code. Many wireless cards don't allow spoofing of the source address. It is a firmware restriction with some chipsets. You might find some information in the bridge mailing list archives to help. Has anyone found a way to get around Wavelan not allowing anything but its own MAC address? (answer by Michael Renzmann (mrenzmann at compulan.de))

Well, for 99% of computer users there will never be a way to get rid of this. For this function a special firmware is needed. This firmware can be loaded into the RAM of any WaveLAN card, so it could do its job with bridging. But there is no documentation on the interface available to the public. The only way to achieve this is to have a full version of the hcf library which controls every function of the card and also allows accessing the card's RAM. To get this full version Lucent wants to know that it will be a financial win for them, also you have to sign an NDA. So be sure that you won't most probably get access to this peace of software until Lucent does not change its mind in this (which I doubt never will happen).

If you urgently need to have a wireless LAN card which is able to bridge, you should use one of those having the prism chipset onboard (manufactured by Harris Intersil). There are drivers for those cards available at www.linux-wlan.com (which is the website from Absoval), and I found a mail that says that there is the necessary firmware and an upload tool available for Linux to the public. If you need additional features of an access point you should also talk to Absoval.

Quelle: http://linux-net.osdl.org/index.php/Bridge


Meint ihr, dass es daran liegt und ich es vergessen kann, oder habe ich noch irgendwo einen Fehler bei der Konfiguration gemacht?

PS: Dieser Thread ist schon ein bisschen alt... vielleicht mach ich einen neuen auf, wenn das hier niemand mehr findet ;)

bei Antwort benachrichtigen