Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2005 16:38:21 -0800
From:      r0ach <r0ach@dreamisle.ca>
To:        freebsd-net@freebsd.org
Subject:   bridge not receiving packets?
Message-ID:  <437D227D.1030906@dreamisle.ca>

next in thread | raw e-mail | index | archive | help
im trying to setup a wireless access point using 6.0-release. i can 
associate with ath0, but packets sent out over the bridge arent 
returned. any ideas on whats causing packets to go astray?

network:

                {Internet}
                    |
               -------------
               | DSL Modem |
               -------------
                    |
                ----------
                |  fw/   |
                | router |
                ----------
                    | 10.0.0.1
                ----------            <..............>
                | Switch | -----  xl0 .   FreeBSD    .
                ----------        .251. Access Point .
                    |                 <..............>
               -----------                   ath0 (g520)
               ^    ^    ^                  ^
               pc1 pc2  pc3             ^^^^
               .10 .11  .12            ^
                                     .20
                                 <....^.....>
                                 . windows  .
                                 .   wifi   .
                                 .  client  .
                                 <..........>

using tcpdump i watched for dhcp requests from the windows wireless 
client on my router, and then also watched for return packets on fbsd 
from the router, heres what i saw

-------------- router, sniffing for wireless mac --------------------

$ sudo tcpdump -ttt -vv -n -i xl0 ether host 00:13:46:48:65:87
tcpdump: listening on xl0, link-type EN10MB
Nov 17 16:05:55.885661 arp who-has 10.0.0.1 tell 10.0.0.20
Nov 17 16:05:55.885699 arp reply 10.0.0.1 is-at 0:1:3:e6:8d:2e
Nov 17 16:05:56.077521 0.0.0.0.68 > 255.255.255.255.67:  xid:0xcf5ec32c 
flags:0x8000 [|bootp] (ttl 128, id 11092, len 328)
Nov 17 16:05:56.084988 0.0.0.0.68 > 255.255.255.255.67:  xid:0xcf5ec32c 
flags:0x8000 [|bootp] (ttl 128, id 11094, len 334)
Nov 17 16:05:56.298105 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:05:56.362580 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:05:56.885508 arp who-has 10.0.0.1 tell 10.0.0.20
Nov 17 16:05:56.885543 arp reply 10.0.0.1 is-at 0:1:3:e6:8d:2e
Nov 17 16:05:57.362950 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:05:57.885822 arp who-has 10.0.0.1 tell 10.0.0.20
Nov 17 16:05:57.885852 arp reply 10.0.0.1 is-at 0:1:3:e6:8d:2e
Nov 17 16:05:58.450359 0.0.0.0.68 > 255.255.255.255.67:  xid:0xbcafa65b 
[|bootp] (ttl 128, id 11102, len 328)
Nov 17 16:05:58.451643 10.0.0.1.67 > 10.0.0.20.68:  xid:0xbcafa65b 
Y:10.0.0.20 [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
Nov 17 16:06:02.504384 0.0.0.0.68 > 255.255.255.255.67:  xid:0xbcafa65b 
secs:1024 [|bootp] (ttl 128, id 11385, len 328)
Nov 17 16:06:02.505653 10.0.0.1.67 > 10.0.0.20.68:  xid:0xbcafa65b 
secs:1024 Y:10.0.0.20 [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
Nov 17 16:06:09.446029 0.0.0.0.68 > 255.255.255.255.67:  xid:0xbcafa65b 
secs:2816 [|bootp] (ttl 128, id 11386, len 328)
Nov 17 16:06:09.447343 10.0.0.1.67 > 10.0.0.20.68:  xid:0xbcafa65b 
secs:2816 Y:10.0.0.20 [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
Nov 17 16:06:26.381724 0.0.0.0.68 > 255.255.255.255.67:  xid:0xbcafa65b 
secs:7168 [|bootp] (ttl 128, id 11391, len 328)
Nov 17 16:06:26.383041 10.0.0.1.67 > 10.0.0.20.68:  xid:0xbcafa65b 
secs:7168 Y:10.0.0.20 [|bootp] [tos 0x10] (ttl 16, id 0, len 328)
Nov 17 16:06:59.394232 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:07:00.292830 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:07:01.293211 arp who-has 10.0.0.20 tell 10.0.0.20
Nov 17 16:07:02.359144 10.0.0.20.1638 > 239.255.255.250.1900:  udp 133 
[ttl 1] (id 11407, len 161)
Nov 17 16:07:02.371328 10.0.0.20.137 > 10.255.255.255.137:  udp 68 (ttl 
128, id 11409, len 96)
Nov 17 16:07:02.392301 10.0.0.20 > 224.0.0.22: igmp-2 [v2] [ttl 1] (id 
11410, len 40, optlen=4 IPOPT-148{4})
Nov 17 16:07:02.425039 10.0.0.20.1642 > 239.255.255.250.1900:  udp 133 
[ttl 1] (id 11411, len 161)
Nov 17 16:07:02.943800 10.0.0.20 > 224.0.0.22: igmp-2 [v2] [ttl 1] (id 
11413, len 40, optlen=4 IPOPT-148{4})
Nov 17 16:07:03.121578 10.0.0.20.137 > 10.255.255.255.137:  udp 68 (ttl 
128, id 11414, len 96)
Nov 17 16:07:03.871996 10.0.0.20.137 > 10.255.255.255.137:  udp 68 (ttl 
128, id 11415, len 96)

------------ fbsd6.0-release sniffing for router mac -----------------

# tcpdump -tttt -vv -n -i xl0 ether host 0:1:3:e6:8d:2e
tcpdump: listening on xl0, link-type EN10MB (Ethernet), capture size 96 
bytes
2005-11-17 16:05:40.481359 IP (tos 0x10, ttl  16, id 0, offset 0, flags 
[none], proto: UDP (17), length: 328) 10.0.0.1.67 > 255.255.255.255.68: 
BOOTP/DHCP, Reply, length: 300, xid:0xcf5ec32c, flags: [Broadcast] (0x8000)
           Your IP: 10.0.0.20
           Client Ethernet Address: 00:13:46:48:65:87 [|bootp]
2005-11-17 16:05:40.633816 IP (tos 0x10, ttl  16, id 0, offset 0, flags 
[none], proto: UDP (17), length: 347) 10.0.0.1.67 > 255.255.255.255.68: 
BOOTP/DHCP, Reply, length: 319, xid:0xcf5ec32c, flags: [Broadcast] (0x8000)
           Your IP: 10.0.0.20
           Client Ethernet Address: 00:13:46:48:65:87 [|bootp]


from windows client, if i tried to ping router id see this in routers 
tcpdump...

Nov 17 16:08:49.436712 arp who-has 10.0.0.1 tell 10.0.0.20
Nov 17 16:08:49.436753 arp reply 10.0.0.1 is-at 0:1:3:e6:8d:2e
Nov 17 16:08:54.602269 arp who-has 10.0.0.1 tell 10.0.0.20
Nov 17 16:08:54.602304 arp reply 10.0.0.1 is-at 0:1:3:e6:8d:2e

but nothing on fbsd, here is some more system info

# kldstat
Id Refs Address    Size     Name
  1   10 0xc0400000 63070c   kernel
  2    1 0xc0a31000 d828     ipfw.ko
  3    1 0xc0a3f000 80b0     bridge.ko
  4    1 0xc0a48000 10840    if_ath.ko
  5    2 0xc0a59000 26b60    ath_hal.ko
  6    2 0xc0a80000 2c7c     ath_rate.ko

# ipfw show
00100 28069 9436537 allow ip from any to any
65535     8    1598 deny ip from any to any


# sysctl -a | grep "ether.bridge"
net.link.ether.bridge_cfg: ath0:1,xl0:1
net.link.ether.bridge_ipfw: 1
net.link.ether.bridge_ipf: 0
net.link.ether.bridge.config: ath0:1,xl0:1
net.link.ether.bridge.enable: 1
net.link.ether.bridge.predict: 4818
net.link.ether.bridge.dropped: 0
net.link.ether.bridge.packets: 27839
net.link.ether.bridge.ipfw_collisions: 0
net.link.ether.bridge.ipfw_drop: 0
net.link.ether.bridge.copy: 0
net.link.ether.bridge.ipfw: 1
net.link.ether.bridge.ipf: 0
net.link.ether.bridge.debug: 0
net.link.ether.bridge.version: 031224


# arp -a
router.dreamisle.ca (10.0.0.1) at 00:01:03:e6:8d:2e on xl0 [ethernet]
lappy.dreamisle.ca (10.0.0.20) at 00:13:46:48:65:87 on xl0 [ethernet]


# ifconfig -a
xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         options=9<RXCSUM,VLAN_MTU>
         inet6 fe80::201:2ff:fee8:8346%xl0 prefixlen 64 scopeid 0x1
         inet 10.0.0.251 netmask 0xff000000 broadcast 10.255.255.255
         ether 00:01:02:e8:83:46
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
ath0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::211:95ff:fee4:c861%ath0 prefixlen 64 scopeid 0x2
         ether 00:11:95:e4:c8:61
         media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g <hostap>
         status: associated
         ssid amishg channel 11 bssid 00:11:95:e4:c8:61
         authmode OPEN privacy OFF txpowmax 29 protmode OFF dtimperiod 1
         bintval 100

# dmesg
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (266.44-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x634  Stepping = 4
 
Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX
 >
real memory  = 167772160 (160 MB)
avail memory = 154660864 (147 MB)
ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 5 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 
0x44000000-0x47ffffff at d
evice 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x2000-0x207f mem 
0x42000000-0x4200
007f irq 11 at device 13.0 on pci0
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:01:02:e8:83:46
ath0: <Atheros 5212> mem 0x42100000-0x4210ffff irq 11 at device 15.0 on pci0
ath0: Ethernet address: 00:11:95:e4:c8:61
ath0: mac 7.9 phy 4.5 radio 5.6
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x37
6,0x20a0-0x20af at device 20.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2080-0x209f irq 
11 at de
vice 20.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 20.3 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe0000-0xe7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 
on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
Timecounter "TSC" frequency 266444180 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding 
disabled, defa
ult to deny, logging disabled
ad0: 3077MB <Seagate ST33232A 0.43> at ata0-master UDMA33
acd0: CDROM <LG CD-ROM CRD-8521B/1.02> at ata1-master PIO4
Trying to mount root from ufs:/dev/ad0s1a
bridge_off: n_clusters 0
parse_bdg_cfg: found ath0:1 next c 44
parse_bdg_cfg: found xl0:1 next c 0
xl0: promiscuous mode enabled
bridge_on: xl0 promisc ON if_flags 0x8903 bdg_flags 0x5
ath0: promiscuous mode enabled
bridge_on: ath0 promisc ON if_flags 0x8903 bdg_flags 0x5
bridge_in: new addr 00.13.46.48.65.87 at 975 for ath0






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437D227D.1030906>