Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bridge zwischen - wlan0 -> ippp0 klappt nicht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
rogge
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2006
Posts: 137
Location: Erfurt

PostPosted: Tue Feb 20, 2007 2:46 pm    Post subject: Bridge zwischen - wlan0 -> ippp0 klappt nicht Reply with quote

Hallo,

ich versuche gerade eine Bridge zw. meinem Wlan- und dem ISDN-Interface herzustellen.
Was ja eigentlich kein Problem sein dürfte. Interface ist Interface, oder?!
Die Module der Bridge, des WLan und vom ISDN sind ordentlich geladen und laufen.

Ich hab einen Symlink von /etc/init.d/net.lo auf /etc/init.d/net.br0 angelegt um
die Bridge zu starten.
Die Configs unter /etc/conf.d/* sehen wie folgt aus:

Code:

bridge_br0="wlan0 ippp0"
iface_br0="10.10.10.1 broadcast 10.10.10.255 netmask 255.255.255.0"


Code:

modules=( "iwconfig" "!wpa_supplicant" )
config_wlan0=( "0.0.0.0" )
iface_wlan0="WLAN"

essid_wlan0="WLAN"
bssid_wlan0="XX.XX.XX.XX"
mode_wlan0="Master"
channel_wlan0="6"
associate_timeout_wlan0="5"
scan_mode_wlan0="Ad-Hoc"


Code:

config_ippp0=( "0.0.0.0" )


Wenn Versuch sie Bridge zu starten bricht er beim anbinden ans ippp0-Interface ab.

Code:

starting br0
 *   Creating bridge br0 ...                                                                                                         [ ok ]
  *   Adding ports to br0
   *     wlan0 ...                                                                                                                     [ ok ]
   *     ippp0 ...
    can't add ippp0 to bridge br0: Invalid argument                                                                                      [ !! ]


In den logs sieht das dann so aus: (Die Nachrichten wiederhohlen sich alle paar Sekunden)

Code:

Feb 19 18:56:35 wotan br0: port 1(wlan0) entering learning state
Feb 19 18:56:35 wotan br0: port 1(wlan0) entering disabled state
Feb 19 18:56:35 wotan device wlan0 left promiscuous mode
Feb 19 18:56:35 wotan audit(1171911395.752:145): dev=wlan0 prom=0 old_prom=256 auid=4294967295
Feb 19 18:56:35 wotan br0: port 1(wlan0) entering disabled state
Feb 19 18:56:35 wotan device wlan0 entered promiscuous mode
Feb 19 18:56:35 wotan audit(1171911395.790:146): dev=wlan0 prom=256 old_prom=0 auid=4294967295
Feb 19 18:56:35 wotan device ippp0 entered promiscuous mode
Feb 19 18:56:35 wotan audit(1171911395.798:147): dev=ippp0 prom=256 old_prom=0 auid=4294967295
Feb 19 18:56:35 wotan device ippp0 left promiscuous mode
Feb 19 18:56:35 wotan audit(1171911395.806:148): dev=ippp0 prom=0 old_prom=256 auid=4294967295


Und die Ausgabe von ifconfig -a

Code:

br0     Link encap:Ethernet  HWaddr XX:XX:XX:XX 
          BROADCAST 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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ippp0     Link encap:Point-to-Point Protocol 
             UP POINTOPOINT RUNNING NOARP  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:30
             RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr XX:XX:XX:XX
             UP BROADCAST RUNNING PROMISC 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:0
             RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Für mich ist nicht ersichtlich warum er das ippp0-Interface nicht anbinden will.
Vielleicht steh ich da noch irgendwo auf dem Schlauch...

Hat vielleicht jemand eine Idee?
Google und Foren-Suche schweigen zu diesem Thema (zu wlan -> eth0 gibts allerdings genug).

MfG rogge
Back to top
View user's profile Send private message
treor
Apprentice
Apprentice


Joined: 03 May 2005
Posts: 174
Location: germany

PostPosted: Tue Feb 20, 2007 3:47 pm    Post subject: Reply with quote

ich würd dir empfehlen nicht ne bridge zu nehmen sondern zu routen...
du versuchst 2 nicht homogene netze zu verbinden -> router

homogene netze -> bridge/hub/switch
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 614
Location: Munich, Germany

PostPosted: Tue Feb 20, 2007 5:46 pm    Post subject: Re: Bridge zwischen - wlan0 -> ippp0 klappt nicht Reply with quote

rogge wrote:
Interface ist Interface, oder?!


Ne ;)

Eine Bridge ist IEEE 802.1d. Damit kannst du nur Sachen bridgen, die auch IEEE 802.* sind, z.b. normales Ethernet-Netzerwerk(IEEE 802.3) oder WLAN(IEEE 802.11).

ISDN ist gar kein IEEE und somit was ganz anderes.

Zusammengefasst heißt das:
Eine Bridge arbeitet auf OSI-Layer 2 mit Mac-Adressen und ISDN hat keine MAC-Adresse. Ergo keine Bridge möglich.
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
Pegasus87
Guru
Guru


Joined: 09 Sep 2004
Posts: 373

PostPosted: Tue Feb 20, 2007 8:01 pm    Post subject: Reply with quote

Genau....
Also das Routing im Kernel aktivieren und dann mit iptables als NAT routen.
Back to top
View user's profile Send private message
rogge
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2006
Posts: 137
Location: Erfurt

PostPosted: Fri Feb 23, 2007 10:25 am    Post subject: Reply with quote

Dank Internetausfall kann ich leider erst jetzt antworten.

Also hat es sich mit der Bridge erledigt.

@Pegasus87

Du meinst doch nicht die "advanced Router"-Option, oder?
Das sollte doch eigentlich ohne den gehen. NAT ist aktiviert.

MfG rogge
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum