Hello,
I'm trying to set up a bridge between two LANs using two freebsd7.0 boxes w/ipv4 gif.
logical setup: lan1 <-> bridge1 <-> ISP <-> bridge2 <-> lan2
interface setup: rl0 <-> bridge0 <-> gif0 <-> gif0 <-> bridge0 <-> em1
I've found some weird behaviour.
The firewall (pf) reports no rejected packets (all rejections logged; relevant interfaces have full access).
Have I done something wrong? Thoughts and ideas?
I'm trying to set up a bridge between two LANs using two freebsd7.0 boxes w/ipv4 gif.
logical setup: lan1 <-> bridge1 <-> ISP <-> bridge2 <-> lan2
interface setup: rl0 <-> bridge0 <-> gif0 <-> gif0 <-> bridge0 <-> em1
I've found some weird behaviour.
- ping from bridge1 to bridge2 doesn't work
- ping from bridge1 to lan2 doesn't work
- ping from lan2 to bridge1 doesn't work
- dhcp from bridge1 to lan2 works
- ping from lan1 to lan2 works
- ...
The firewall (pf) reports no rejected packets (all rejections logged; relevant interfaces have full access).
Code:
cloned_interfaces="gif0 bridge0"
ifconfig_gif0="tunnel x.x.x.142 x.x.x.162 up"
ifconfig_bridge0="addm gif0 addm em1 up 192.168.1.2 netmask 255.255.255.0"
Code:
cloned_interfaces="gif0 bridge0"
ifconfig_gif0="tunnel x.x.x.162 x.x.x.142 up"
ifconfig_bridge0="addm rl0 addm gif0 up 192.168.1.1 netmask 255.255.255.0"
Code:
# ifconfig gif0
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
tunnel inet x.x.x.142 --> x.x.x.162
# ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether be:ef:ea:58:df:7b
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: em1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
member: gif0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
# ifconfig em1
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:1b:21:18:69:a0
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
Code:
# sysctl net.link.bridge
net.link.bridge.ipfw: 0
net.link.bridge.log_stp: 0
net.link.bridge.pfil_local_phys: 0
net.link.bridge.pfil_member: 1
net.link.bridge.pfil_bridge: 1
net.link.bridge.ipfw_arp: 0
net.link.bridge.pfil_onlyip: 1
Have I done something wrong? Thoughts and ideas?