Hello,
I'm having strange problem with routing between bridged network interfaces.
Host2 (192.168.0.2) and Host3 (192.168.0.3) cannot communicate between them, but can connect to Host1.
Bridge is assembled from wifi(wlan0) and ethernet(bge0) cards and has several IPs (used for jails):
Extract from /etc/rc.conf:
Firewall is disabled and allows any traffic (just to simplify things at the moment).
Routing tables (X.Y.Z is public IP address):
Am I missing something? Any help is welcome
I'm having strange problem with routing between bridged network interfaces.
Code:
/internet/
| ae0
+---------+ +--------+
| |---wlan0 - - - - - - - - - - - - | Host2 |
| Host1 | +--------+ +--------+
| |---bge0 - - - - | Host3 |
+---------+ +--------+
Bridge is assembled from wifi(wlan0) and ethernet(bge0) cards and has several IPs (used for jails):
Code:
>ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:2c:67:a8:27:00
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.0.18 netmask 0xffffffff broadcast 192.168.0.18
inet 192.168.0.16 netmask 0xffffffff broadcast 192.168.0.16
inet 192.168.0.15 netmask 0xffffffff broadcast 192.168.0.15
inet 192.168.0.14 netmask 0xffffffff broadcast 192.168.0.14
inet 192.168.0.17 netmask 0xffffffff broadcast 192.168.0.17
id 00:10:18:5a:7b:d6 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:10:18:5a:7b:d6 priority 32768 ifcost 0 port 0
member: bge0 flags=1e7<LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,PTP,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000 proto rstp
role designated state forwarding
member: wlan0 flags=167<LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 370370 proto rstp
role designated state forwarding
groups: bridge
Code:
routed_enable="YES"
gateway_enable="YES"
ifconfig_bge0="mtu 1500 link0 up"
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="up ssid Erley_WiFi mode 11g mtu 1500 txpower 50"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm wlan0 addm bge0 up"
ifconfig_bridge0_alias0="inet 192.168.0.1 netmask 255.255.255.0"
ifconfig_bridge0_alias1="inet 192.168.0.14 netmask 255.255.255.255"
ifconfig_bridge0_alias1="inet 192.168.0.15 netmask 255.255.255.255"
ifconfig_bridge0_alias2="inet 192.168.0.16 netmask 255.255.255.255"
ifconfig_bridge0_alias3="inet 192.168.0.17 netmask 255.255.255.255"
ifconfig_bridge0_alias4="inet 192.168.0.18 netmask 255.255.255.255"
Routing tables (X.Y.Z is public IP address):
Code:
>sudo netstat -rn4
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default X.Y.Z.254 UGS ae0
X.Y.Z.0/24 link#2 U ae0
X.Y.Z.67 link#2 UHS lo0
127.0.0.1 link#3 UH lo0
192.168.0.0/24 192.168.0.1 U bridge0
192.168.0.1 link#5 UHS lo0
192.168.0.14 192.168.0.14 UH lo0
192.168.0.14/32 link#5 U bridge0
192.168.0.15 192.168.0.15 UH lo0
192.168.0.15/32 link#5 U bridge0
192.168.0.16 192.168.0.16 UH lo0
192.168.0.16/32 link#5 U bridge0
192.168.0.17 link#5 UHS lo0
192.168.0.17/32 link#5 U bridge0
192.168.0.18 192.168.0.18 UH lo0
192.168.0.18/32 link#5 U bridge0