Date: Wed, 16 Nov 2005 21:07:19 -0800 From: r0ach <r0ach@dreamisle.ca> To: freebsd-questions@freebsd.org Subject: problems with hostap/bridge Message-ID: <437C1007.8050909@dreamisle.ca>
next in thread | raw e-mail | index | archive | help
after reading the wireless section in the fbsd handbook and sam/loaders wireless article (http://www.freebsdmall.com/~loader/en_US.ISO8859-1/articles/wireless/article.html), ive still been unable to get a working access point network: {Internet} | ------------- | DSL Modem | ------------- | ---------- | fw/ | | router | ---------- | 10.0.0.1 ---------- <..............> | Switch | ----- xl0 . FreeBSD . ---------- .251. Access Point . | <..............> ----------- ath0 (g520) ^ ^ ^ ^ pc1 pc2 pc3 ^^^^ .10 .11 .12 ^ .45 <....^.....> . windows . . wifi . . client . <..........> i followed the handbook and setup a bridge between ath0 and xl0 and im able to connect to the access point (10.0.0.251), but unable to obtain an ip from my router (10.0.0.1), or connect to any other ips on the lan # ifconfig ath0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS ERP 00:13:46:48:65:87 1 11 54M 59 120 73 2640 ES 0 if i enable bridge.debug, i can see client macaddr trying to hit router mac any ideas why packets arent returning from the bridge? 00.13.46.48.65.87 -- windows client 0.01.03.e6.8d.2e -- router Nov 16 16:58:26 backup kernel: bridge_in: new addr 00.13.46.48.65.87 at 975 for ath0 Nov 16 16:58:26 backup kernel: bridge_in: 00.13.46.48.65.87 ->00.01.03.e6.8d.2e ty 0x0800 dst BDG_UNKNOWN Nov 16 16:58:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0800 dst BDG_BCAST Nov 16 16:58:32 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0800 dst BDG_BCAST Nov 16 16:58:36 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0800 dst BDG_BCAST Nov 16 16:58:43 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0800 dst BDG_BCAST Nov 16 16:58:58 backup kernel: bridge_in: new addr 00.13.46.48.65.87 at 975 for ath0 Nov 16 16:58:58 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0800 dst BDG_BCAST Nov 16 16:59:30 backup kernel: bridge_in: new addr 00.13.46.48.65.87 at 975 for ath0 Nov 16 16:59:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0806 dst BDG_BCAST Nov 16 16:59:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->00.01.03.e6.8d.2e ty 0x0800 dst BDG_UNKNOWN Nov 16 16:59:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->00.01.03.e6.8d.2e ty 0x0806 dst xl0 Nov 16 16:59:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0806 dst BDG_BCAST Nov 16 16:59:30 backup kernel: bridge_in: 00.13.46.48.65.87 ->00.01.03.e6.8d.2e ty 0x0800 dst xl0 Nov 16 16:59:31 backup kernel: bridge_in: 00.13.46.48.65.87 ->ff.ff.ff.ff.ff.ff ty 0x0806 dst BDG_BCAST Nov 16 16:59:31 backup kernel: bridge_in: 00.13.46.48.65.87 ->00.01.03.e6.8d.2e ty 0x0800 dst xl0 # kldstat Id Refs Address Size Name 1 7 0xc0400000 63070c kernel 2 1 0xc0a31000 80b0 bridge.ko 3 1 0xc0a3a000 10840 if_ath.ko 4 2 0xc0a4b000 26b60 ath_hal.ko 5 2 0xc0a72000 2c7c ath_rate.ko 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 inet 10.0.0.252 netmask 0xff000000 broadcast 10.255.255.255 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 # sysctl -a | grep "ether.bridge" net.link.ether.bridge_cfg: ath0 xl0 net.link.ether.bridge_ipfw: 0 net.link.ether.bridge_ipf: 0 net.link.ether.bridge.config: ath0 xl0 net.link.ether.bridge.enable: 1 net.link.ether.bridge.predict: 0 net.link.ether.bridge.dropped: 0 net.link.ether.bridge.packets: 809 # 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 266444540 Hz quality 800 Timecounters tick every 1.000 msec 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 xl0: promiscuous mode enabled ath0: promiscuous mode enabled
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437C1007.8050909>