possibly bridge related problem
Ganbold
ganbold at micom.mng.net
Tue Aug 19 10:47:19 UTC 2008
pluknet wrote:
> 2008/8/19 Ganbold <ganbold at micom.mng.net>:
>
>> Hi,
>>
>> I have strange network problem on my laptop.
>> I can't make connection to my desktop(192.168.0.18) from my laptop.
>> However I can ping to other addresses from my laptop.
>> I can't ping and make connection to my laptop from my desktop either.
>>
>> On the laptop I have bridge created at boot time.
>> When I destroy bridge0 I can ping and make connection to my desktop.
>> Is this known problem? If not where should I look for the problem?
>> Or am I doing something wrong?
>>
>> ...
>> devil# uname -an FreeBSD devil.micom.mng.net 7.0-STABLE FreeBSD 7.0-STABLE
>> #8: Tue Aug 19 15:29:26 ULAT 2008
>> tsgan at devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386
>> devil# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes
>> 64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=0.920 ms
>> 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.788 ms
>> 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=1.130 ms
>> ^C
>> --- 192.168.0.1 ping statistics ---
>> 3 packets transmitted, 3 packets received, 0.0% packet loss
>> round-trip min/avg/max/stddev = 0.920/1.279/1.788/0.370 ms
>>
>> devil# ping 192.168.0.18 PING 192.168.0.18 (192.168.0.18): 56 data bytes
>> ^C
>> --- 192.168.0.18 ping statistics ---
>> 4 packets transmitted, 0 packets received, 100.0% packet loss
>>
>> devil# ifconfig -a bge0:
>> flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
>> options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
>> ether 00:14:22:fb:32:a6
>> inet 192.168.0.35 netmask 0xffffff00 broadcast 192.168.0.255
>> media: Ethernet autoselect (1000baseTX <full-duplex>)
>> status: active
>> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>> inet 127.0.0.1 netmask 0xff000000 bridge0:
>> flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>> ether 00:14:22:fb:32:a6
>> 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: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
>> ifmaxaddr 0 port 4 priority 128 path cost 2000000
>> member: bge0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
>> ifmaxaddr 0 port 1 priority 128 path cost 20000
>> tap0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
>> ether 00:bd:4b:1b:00:00
>> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
>> inet 192.168.10.34 --> 192.168.10.33 netmask 0xffffffff Opened by PID
>> 802
>>
>> devil# kldstat Id Refs Address Size Name
>> 1 22 0xc0400000 701a64 kernel
>> 2 1 0xc0b02000 5844 if_tap.ko
>> 3 1 0xc0b08000 15524 snd_hda.ko
>> 4 2 0xc0b1e000 52a08 sound.ko
>> 5 2 0xc0b71000 10ebc drm.ko
>> 6 1 0xc0b82000 71c4 i915.ko
>> 7 1 0xc0b8a000 1fe68 kqemu.ko
>> 8 1 0xc0baa000 b8c8 aio.ko
>> 9 1 0xc0bb6000 6b3d0 acpi.ko
>> 10 1 0xc433b000 9000 if_bridge.ko
>> 11 1 0xc4344000 6000 bridgestp.ko
>> 12 2 0xc44c2000 d000 ipfw.ko
>> 13 1 0xc44fb000 4000 ipdivert.ko
>> 14 1 0xc452a000 22000 linux.ko
>> 15 1 0xc45a6000 e000 fuse.ko
>>
>> devil# more /etc/rc.conf
>> cloned_interfaces="bridge0 tap0"
>> firewall_enable="YES"
>> firewall_quiet="NO"
>> firewall_script="/etc/rc.firewall"
>> firewall_type="open"
>> gateway_enable="YES"
>> hostname="devil.micom.mng.net"
>>
>> ifconfig_bge0="DHCP"
>> ifconfig_bridge0="addm bge0 addm tap0 up"
>> inetd_enable="YES"
>>
>> natd_enable="YES" # Enable natd (if firewall_enable == YES).
>> natd_interface="bge0" # Public interface or IPaddress to use.
>> openvpn_enable="YES"
>> openvpn_if="tun"
>>
>>
>> devil# ipfw show 00050 224 19723 divert 8668 ip4 from any to any via bge0
>> 00100 4 200 allow ip from any to any via lo0
>> 00200 0 0 deny ip from any to 127.0.0.0/8
>> 00300 0 0 deny ip from 127.0.0.0/8 to any
>> 65000 383 33187 allow ip from any to any
>> 65535 0 0 deny ip from any to any
>>
>> devil# netstat -rn Routing tables
>>
>> Internet:
>> Destination Gateway Flags Refs Use Netif Expire
>> default 192.168.0.1 UGS 0 205 bge0
>> 127.0.0.1 127.0.0.1 UH 0 2 lo0
>> 192.168.0.0/24 link#1 UC 0 0 bge0
>> 192.168.0.1 00:e0:29:3b:5a:b0 UHLW 2 10 bge0 1099
>> 192.168.10.0/24 192.168.10.33 UGS 0 0 tun0
>> 192.168.10.33 192.168.10.34 UH 1 0 tun0
>>
>>
>
> Hi,
>
> I guess you got that buggy window in 7-stable between [1] and the fix,
> that would come [2] in 7-stable in a few days.
>
> [1] http://svn.freebsd.org/viewvc/base?view=revision&revision=180364
> [2] http://svn.freebsd.org/viewvc/base?view=revision&revision=181824
>
Thanks a lot. After applying the patch it seems it is working OK now :)
Ganbold
> wbr,
> pluknet
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
>
>
>
--
The Pig, if I am not mistaken, Gives us ham and pork and Bacon. Let
others think his heart is big, I think it stupid of the Pig. -- Ogden Nash
More information about the freebsd-net
mailing list