Paul Schenkeveld wrote:
Hi,
I'm trying to bridge a wlan interface to a gif tunnel on 8.0-BETA2.
Running tcpdump on wlan0 I see DHCP packets coming in as IP packets,
on gif0 however tcpdump shows ethernet headers prepended. Needless
to say things do not work as expected.
What I try to accomplish is the following:
+------+ +--------------+ +-------+
| | .... |ath0 bge0|-----|Router | Gateway
| | |wlan0 gif0| +-------+ +----------+
| | | \ / | | | gif0 |
| | | bridge0 | Internet | \ |
| | | | | | bridge0 |
+------+ +--------------+ +-------+ | \ |
Wifi Access point |Router |----|fxp0 fxp1|---- LAN X
client 8.0-BETA2 +-------+ +----------+
nice diagram....
you can't bridge gif as it doesn't have a MAC header
if yo want to bridge the wifi net and LAN X then tha tis another
matter and you can probably do that., but you are goin gto have to use
a different way to do it..
Might I suggest a netgraph bridge, where the tunnel is implemented as
a tcp or UDP socket layer (optionally with ipsec).
use a netgraph bridge node on each side, and connect them
using ksocket nodes which are linked to each other.
you might also find that you can use mpd as a good link between them.
I've done this in the past but do not have working examples in
front of me.
- The Wifi client must be part of LAN X and receive a DHCP address from
a DHCP server (not shown) on LAN X
- On the access point wlan0 and gif0 are bridged together
- On the gateway fxp1 and gif0 are bridged together
- Gif0 on the access point and gif0 on the gateway communicate correctly
when given IP addresses
Regards,
Paul Schenkeveld
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"