Hello,
I configured my Soekris net5501 as a switch and access point. I briged
all four vr(4) devices and ral0. vr0 (10.0.0.1) is connected to the
router. ral0 is configured as an access point.
This is the configuration I want. An access point with no IP address.
$ cat /etc/hostname.ral0
mediaopt hostap nwid [ssid] wpa wpaprotos wpa2 wpaakms psk wpakey [key]
up
However, I cannot ping to 10.0.0.1 from another computer (10.0.0.37)
attached to ral0 . Wireshark on 10.0.0.37 shows both a echo request and
reply, but the reply packet has an IP header checksum of 0x0000 and the
packet is dropped. This is probably because of checksum offloading done
by vr(4) .
How to handle this?
Pieter Verberne
The following configuration does work. For some reason, nfs (sunrpc) is
only listening on 10.0.0.80 and not on 10.0.0.1 .
$ cat /etc/hostname.vr0
inet 10.0.0.1 255.255.0.0
up
$ cat /etc/hostname.vr1
up
$ cat /etc/hostname.vr2
up
$ cat /etc/hostname.vr3
up
$ cat /etc/hostname.ral0
inet 10.0.0.80 255.255.0.0 NONE mediaopt hostap nwid [ssid] wpa
wpaprotos wpa2 wpaakms psk wpakey [key]
up
$ cat /etc/hostname.bridge0
add vr0
add vr1
add vr2
add vr3
add ral0
up
pf.conf is unmodified/default.
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
inet 127.0.0.1 netmask 0xff000000
vr0:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:00:24:cd:7d:f8
priority: 0
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 10.0.0.1 netmask 0xffff0000 broadcast 10.0.255.255
inet6 fe80::200:24ff:fecd:7df8%vr0 prefixlen 64 scopeid 0x1
vr1:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:00:24:cd:7d:f9
priority: 0
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::200:24ff:fecd:7df9%vr1 prefixlen 64 scopeid 0x2
vr2:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:00:24:cd:7d:fa
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[0/64]
inet6 fe80::200:24ff:fecd:7dfa%vr2 prefixlen 64 scopeid 0x3
vr3:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:00:24:cd:7d:fb
priority: 0
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::200:24ff:fecd:7dfb%vr3 prefixlen 64 scopeid 0x4
enc0: flags=0<>
priority: 0
groups: enc
status: active
ral0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:12:0e:61:48:98
priority: 4
groups: wlan
media: IEEE802.11 autoselect hostap
status: active
ieee80211: nwid [ssid] chan 1 bssid 00:12:0e:61:48:98 wpakey
<not displayed> wpaprotos wpa2 wpaakms psk wpaciphers
tkip,ccmp wpagroupcipher tkip 100dBm
inet 10.0.0.80 netmask 0xffff0000 broadcast 10.0.255.255
inet6 fe80::212:eff:fe61:4898%ral0 prefixlen 64 scopeid 0x7
bridge0: flags=41<UP,RUNNING>
groups: bridge
priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6
proto rstp
ral0 flags=3<LEARNING,DISCOVER>
port 7 ifpriority 0 ifcost 0
vr3 flags=3<LEARNING,DISCOVER>
port 4 ifpriority 0 ifcost 0
vr2 flags=3<LEARNING,DISCOVER>
port 3 ifpriority 0 ifcost 0
vr1 flags=3<LEARNING,DISCOVER>
port 2 ifpriority 0 ifcost 0
vr0 flags=3<LEARNING,DISCOVER>
port 1 ifpriority 0 ifcost 0
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
priority: 0
groups: pflog
$ netstat -a -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address
(state)
tcp 0 0 10.0.0.1.ssh 10.0.0.37.33082
ESTABLISHED
tcp 0 0 *.time *.*
LISTEN
tcp 0 0 *.daytime *.*
LISTEN
tcp 0 0 *.auth *.*
LISTEN
tcp 0 0 *.www *.*
LISTEN
tcp 0 0 localhost.submissi *.*
LISTEN
tcp 0 0 localhost.smtp *.*
LISTEN
tcp 0 0 *.ssh *.*
LISTEN
tcp 0 0 *.819[mountd] *.*
LISTEN
tcp 0 0 localhost.sunrpc *.*
LISTEN
tcp 0 0 *.sunrpc *.*
LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address
(state)
udp 0 0 localhost.biff *.*
udp 0 0 *.nfsd *.*
udp 0 0 *.854[mountd] *.*
udp 0 0 localhost.sunrpc *.*
udp 0 0 *.sunrpc *.*
udp 0 0 10.0.0.1.24772 91.198.174.204.ntp
udp 0 0 10.0.0.1.4434 194.109.64.200.ntp
udp 0 0 10.0.0.1.38952 72.251.251.11.ntp
udp 0 0 *.syslog *.*
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem = 536408064 (511MB)
avail mem = 517582848 (493MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/70/03, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
io address conflict 0x6100/0x100
io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:00:24:cd:7d:f8
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
address 00:00:24:cd:7d:f9
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
address 00:00:24:cd:7d:fa
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
address 00:00:24:cd:7d:fb
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
ral0 at pci0 dev 17 function 0 "Ralink RT2561S" rev 0x00: irq 15,
address 00:12:0e:61:48:98
ral0: MAC/BBP RT2561C, RF RT5225
glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 1: <WDC WD5000BPVT-24HXZT3>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
mtrr: K6-family MTRR support (2 registers)
umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to
ATA/ATAPI Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SAMSUNG, HM320II, 01C4> SCSI2 0/direct
fixed serial.152d233831844D33B002
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (3816f9d79a94aadf.a) swap on wd0b dump on wd0b