From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49FF41C4.4090404@gmail.com> Date: Mon, 04 May 2009 21:28:04 +0200 From: Jochen Hebbrecht MIME-Version: 1.0 References: <20090428124009.GA26387@kallisti.us> <2e59e6970904281200u44e3ebbfga0f074dfaa78c1ab@mail.gmail.com> <49F77248.1050800@gmail.com> <2e59e6970904281600u42142392vb8e0eb45c4ede15c@mail.gmail.com> <49F87D4E.4060705@gmail.com> <20090429162651.GA9455@kallisti.us> <49F882F9.4010100@gmail.com> <20090429165329.GA9893@kallisti.us> <49F8C4C3.9020504@gmail.com> <2e59e6970904292118u71ff441ft19448f753c1b6dd9@mail.gmail.com> <49FA1E28.5020604@free.fr> <49FC4764.3030707@gmail.com> <49FDD890.1090302@free.fr> In-Reply-To: <49FDD890.1090302@free.fr> Content-Type: text/plain; charset="iso-8859-1"; format="flowed" Content-Transfer-Encoding: quoted-printable Subject: Re: [Bridge] Ubuntu: network bridging between wireless and wired connection fails List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Nicolas_de_Peslo=FCan?= Cc: bridge@lists.linux-foundation.org Nicolas de Peslo=FCan schreef: > Ok, now we understand what you are trying to do. In particular, I=20 > assume the DHCP server is on the subnet of location B (or behind a=20 > router connected on this subnet), so the expected DHCP offer will come=20 > from the wire interface (eth0) and definitely not from the wireless=20 > interface (eth1). > Maybe my picture isn't very clear, but my WAN access is on location A.=20 There's a router which receives an ip from the ISP. On the other side,=20 I'm having a 192.168.1.0/24 network > Let's try a step-by-step bridge configuration : > > 1/ Try to setup a non-bridge configuration and ensure you successfully=20 > get a DHCP answer using eth0. > > auto eth0 > iface eth0 inet dhcp > > #auto eth1 > #iface eth1 inet dhcp > #wpa-driver wext > #wpa-ssid ##SSID## > #wpa-ap-scan 1 > #wpa-proto RSN > #wpa-pairwise CCMP > #wpa-group CCMP > #wpa-key-mgmt WPA-PSK > #wpa-psk ##PSK KEY## > > #auto br0 > #iface br0 inet dhcp > #bridge_ports eth0 eth1 I tried this: $ cat /etc/network/interfaces auto lo iface lo inet loopback auto eth1 iface eth1 inet dhcp wpa-driver wext wpa-ssid ##SSID## wpa-ap-scan 1 wpa-proto RSN wpa-pairwise CCMP wpa-group CCMP wpa-key-mgmt WPA-PSK wpa-psk ##PSK KEY## This configuration works fine. I'm receiving a DHCP offer from my router=20 (in location A) > > 2/ Try to setup a bridge with only eth0 (wire interface) and ensure=20 > this work well, using a static IP address. > > #auto eth0 > iface eth0 inet manual > > #auto eth1 > iface eth1 inet manual > > auto br0 > iface br0 inet static > bridge_ports eth0 > address 192.168.1.111 > netmask 255.255.255.0 $ cat /etc/network/interfaces auto lo iface lo inet loopback auto eth1 iface eth1 inet manual wpa-driver wext wpa-ssid ##SSID## wpa-ap-scan 1 wpa-proto RSN wpa-pairwise CCMP wpa-group CCMP wpa-key-mgmt WPA-PSK wpa-psk ##PSK KEY## auto br0 iface br0 inet static bridge_ports eth1 address 192.168.1.111 netmask 255.255.255.0 gateway 192.168.1.1 $ sudo /etc/init.d/networking restart * Reconfiguring network=20 interfaces... =20 Waiting for br0 to get ready (MAXWAIT is 32 seconds). =20 [ OK ] $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use=20 Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 br0 0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 br0 $ sudo brctl show br0 bridge name bridge id STP enabled interfaces br0 8000.0015001f20a6 no eth1 $ ifconfig eth1 eth1 Link encap:Ethernet HWaddr 00:15:00:1f:20:a6=20 inet6 addr: fe80::215:ff:fe1f:20a6/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:7 errors:82 dropped:84 overruns:0 frame:0 TX packets:1 errors:0 dropped:19 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1056452 (1.0 MB) TX bytes:149964 (146.4 KB) Interrupt:21 Base address:0xa000 Memory:c8006000-c8006fff $ ifconfig br0 br0 Link encap:Ethernet HWaddr 00:15:00:1f:20:a6=20 inet addr:192.168.1.111 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::215:ff:fe1f:20a6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:27 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:1350 (1.3 KB) $ ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.111 icmp_seq=3D2 Destination Host Unreachable From 192.168.1.111 icmp_seq=3D3 Destination Host Unreachable From 192.168.1.111 icmp_seq=3D5 Destination Host Unreachable From 192.168.1.111 icmp_seq=3D6 Destination Host Unreachable So here it goes wrong. I didn't execute any other steps as step 2 fails=20 :-( ...