From: Jochen Hebbrecht <jochenhebbrecht@gmail.com>
To: "Nicolas de Pesloüan" <nicolas.2p.debian@free.fr>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Ubuntu: network bridging between wireless and wired connection fails
Date: Mon, 04 May 2009 21:28:04 +0200 [thread overview]
Message-ID: <49FF41C4.4090404@gmail.com> (raw)
In-Reply-To: <49FDD890.1090302@free.fr>
Nicolas de Pesloüan schreef:
> Ok, now we understand what you are trying to do. In particular, I
> assume the DHCP server is on the subnet of location B (or behind a
> router connected on this subnet), so the expected DHCP offer will come
> from the wire interface (eth0) and definitely not from the wireless
> interface (eth1).
>
Maybe my picture isn't very clear, but my WAN access is on location A.
There's a router which receives an ip from the ISP. On the other side,
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
> 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
(in location A)
>
> 2/ Try to setup a bridge with only eth0 (wire interface) and ensure
> 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
interfaces...
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
[ OK ]
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
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
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
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=2 Destination Host Unreachable
From 192.168.1.111 icmp_seq=3 Destination Host Unreachable
From 192.168.1.111 icmp_seq=5 Destination Host Unreachable
From 192.168.1.111 icmp_seq=6 Destination Host Unreachable
So here it goes wrong. I didn't execute any other steps as step 2 fails
:-( ...
next prev parent reply other threads:[~2009-05-04 19:28 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 21:13 [Bridge] Ubuntu: network bridging between wireless and wired connection fails Jochen Hebbrecht
2009-04-27 21:36 ` richardvoigt
2009-04-28 6:44 ` Jochen Hebbrecht
2009-04-28 12:40 ` Ross Vandegrift
2009-04-28 12:52 ` Jochen Hebbrecht
2009-04-28 13:37 ` Ross Vandegrift
2009-04-28 17:36 ` Jochen Hebbrecht
2009-04-28 19:00 ` richardvoigt
2009-04-28 21:16 ` Jochen Hebbrecht
2009-04-28 23:00 ` richardvoigt
2009-04-29 16:16 ` Jochen Hebbrecht
2009-04-29 16:26 ` Ross Vandegrift
2009-04-29 16:40 ` Jochen Hebbrecht
2009-04-29 16:53 ` Ross Vandegrift
2009-04-29 21:21 ` Jochen Hebbrecht
2009-04-30 4:18 ` richardvoigt
2009-04-30 6:30 ` Jochen Hebbrecht
2009-04-30 21:54 ` Nicolas de Pesloüan
2009-05-02 13:15 ` Jochen Hebbrecht
2009-05-03 17:46 ` Nicolas de Pesloüan
2009-05-04 3:59 ` richardvoigt
2009-05-04 19:29 ` Jochen Hebbrecht
2009-05-04 19:28 ` Jochen Hebbrecht [this message]
2009-05-04 19:34 ` Nicolas de Pesloüan
2009-05-04 19:42 ` Jochen Hebbrecht
2009-05-04 20:07 ` Nicolas de Pesloüan
2009-05-04 21:06 ` Jochen Hebbrecht
2009-05-04 23:33 ` richardvoigt
2009-05-05 5:49 ` Nicolas de Pesloüan
2009-05-05 16:59 ` Jochen Hebbrecht
2009-05-05 6:20 ` Nicolas de Pesloüan
2009-05-05 17:01 ` Jochen Hebbrecht
2009-05-05 18:08 ` richardvoigt
2009-05-05 19:19 ` Jochen Hebbrecht
2009-05-05 19:53 ` Jonathan Thibault
2009-05-05 20:52 ` Jochen Hebbrecht
2009-05-05 21:44 ` Nicolas de Pesloüan
2009-05-06 6:57 ` Jochen Hebbrecht
2009-05-06 15:37 ` Jochen Hebbrecht
2009-05-06 16:55 ` Jonathan Thibault
2009-05-09 11:15 ` Jochen Hebbrecht
2009-05-06 16:47 ` Jochen Hebbrecht
2009-05-06 20:07 ` Nicolas de Pesloüan
2009-05-09 11:17 ` Jochen Hebbrecht
2009-05-09 23:30 ` richardvoigt
2009-05-10 15:39 ` Nicolas de Pesloüan
2009-04-29 16:41 ` Jochen Hebbrecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49FF41C4.4090404@gmail.com \
--to=jochenhebbrecht@gmail.com \
--cc=bridge@lists.linux-foundation.org \
--cc=nicolas.2p.debian@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.