openbsd and ethernet tap (port replication)

2009-08-25 Thread FRLinux
Hello,

I am trying to replicate some traffic from a Cisco 6500 onto an
OpenBSD 4.5 vanilla machine. I have two NICs, rl0 which is the
administration interface and em0 which I hope to use for the ethernet
tap. So far, my cisco replicates traffic happily, i can see the packet
count in/egress increasing but nothing seems to reach em0.

I have no PF running, the box is inside the network with a cable
connected straight from em0 to a cisco port on the 6500. The cisco
router reports the link live (so does OpenBSD) but no traffic seems to
be flowing.

I realize that has to be something stupid but if anyone could send me
a pointer, that would be most welcome.

em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr xx:xx:xx:xx:xx
priority: 0
media: Ethernet autoselect (1000baseT full-duplex,rxpause)
status: active

OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel 686-class) 3.22 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 1073246208 (1023MB)
avail mem = 1029500928 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/19/04, BIOS32 rev. 0 @
0xfb1a0, SMBIOS rev. 2.3 @ 0xf0120 (49 entries)
bios0: vendor Award Software International, Inc. version F5 date 01/19/2004
bios0: NEC Computers International 000
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) AMR0(S4) UAR1(S4)
UAR2(S4) PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 14, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0x8000 0xc8000/0x8000! 0xd/0x1800 0xd2000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 SiS 648 PCI rev 0x51
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xe000, size 0x800
ppb0 at pci0 dev 1 function 0 SiS 648FX AGP rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 SiS 85C503 System rev 0x14
SiS 7007 FireWire rev 0x00 at pci0 dev 2 function 3 not configured
pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x00: 648: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
wd0 at pciide0 channel 1 drive 0: SAMSUNG SP2014N
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: apic 2 int
18 (irq 9), SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: apic 2
int 20 (irq 5), version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: apic 2
int 21 (irq 10), version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 SiS 5597/5598 USB rev 0x0f: apic 2
int 22 (irq 11), version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 SiS 7002 USB rev 0x00: apic 2 int 23 (irq 6)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 SiS EHCI root hub rev 2.00/1.00 addr 1
vga1 at pci0 dev 9 function 0 S3 Trio32/64 rev 0x54
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 11 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
apic 2 int 19 (irq 10), address 00:07:e9:39:50:d5
rl0 at pci0 dev 15 function 0 Realtek 8139 rev 0x10: apic 2 int 16
(irq 11), address 00:0d:61:1b:69:27
rlphy0 at rl0 phy 0: RTL internal PHY
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8705F rev 2, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 SiS OHCI root hub rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 SiS OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 SiS OHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0 Sun Microsystems
Type 6 Keyboard rev 1.10/2.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Cheers,
Steph



Re: openbsd and ethernet tap (port replication)

2009-08-25 Thread FRLinux
On Tue, Aug 25, 2009 at 3:47 PM, Jason Dixonja...@dixongroup.net wrote:
 $ sudo ifconfig em0 up

Indeed, I'll go back to my cave now. Thanks!
Steph



Re: openbsd and ethernet tap (port replication)

2009-08-25 Thread Jason Dixon
On Tue, Aug 25, 2009 at 03:37:55PM +0100, FRLinux wrote:
 Hello,
 
 I am trying to replicate some traffic from a Cisco 6500 onto an
 OpenBSD 4.5 vanilla machine. I have two NICs, rl0 which is the
 administration interface and em0 which I hope to use for the ethernet
 tap. So far, my cisco replicates traffic happily, i can see the packet
 count in/egress increasing but nothing seems to reach em0.
 
 I have no PF running, the box is inside the network with a cable
 connected straight from em0 to a cisco port on the 6500. The cisco
 router reports the link live (so does OpenBSD) but no traffic seems to
 be flowing.
 
 I realize that has to be something stupid but if anyone could send me
 a pointer, that would be most welcome.
 
 em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 lladdr xx:xx:xx:xx:xx
 priority: 0
 media: Ethernet autoselect (1000baseT full-duplex,rxpause)
 status: active

$ sudo ifconfig em0 up

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: openbsd and ethernet tap (port replication)

2009-08-25 Thread Reyk Floeter
ifconfig em0 up

On Tue, Aug 25, 2009 at 03:37:55PM +0100, FRLinux wrote:
 Hello,
 
 I am trying to replicate some traffic from a Cisco 6500 onto an
 OpenBSD 4.5 vanilla machine. I have two NICs, rl0 which is the
 administration interface and em0 which I hope to use for the ethernet
 tap. So far, my cisco replicates traffic happily, i can see the packet
 count in/egress increasing but nothing seems to reach em0.
 
 I have no PF running, the box is inside the network with a cable
 connected straight from em0 to a cisco port on the 6500. The cisco
 router reports the link live (so does OpenBSD) but no traffic seems to
 be flowing.
 
 I realize that has to be something stupid but if anyone could send me
 a pointer, that would be most welcome.
 
 em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 lladdr xx:xx:xx:xx:xx
 priority: 0
 media: Ethernet autoselect (1000baseT full-duplex,rxpause)
 status: active
 
 OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel 686-class) 3.22 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 1073246208 (1023MB)
 avail mem = 1029500928 (981MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 01/19/04, BIOS32 rev. 0 @
 0xfb1a0, SMBIOS rev. 2.3 @ 0xf0120 (49 entries)
 bios0: vendor Award Software International, Inc. version F5 date 01/19/2004
 bios0: NEC Computers International 000
 acpi0 at bios0: rev 0
 acpi0: tables DSDT FACP APIC
 acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) AMR0(S4) UAR1(S4)
 UAR2(S4) PCI0(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 200MHz
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 14, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0
 acpibtn0 at acpi0: PWRB
 bios0: ROM list: 0xc/0x8000 0xc8000/0x8000! 0xd/0x1800 0xd2000/0x1000
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 SiS 648 PCI rev 0x51
 sisagp0 at pchb0
 agp0 at sisagp0: aperture at 0xe000, size 0x800
 ppb0 at pci0 dev 1 function 0 SiS 648FX AGP rev 0x00
 pci1 at ppb0 bus 1
 pcib0 at pci0 dev 2 function 0 SiS 85C503 System rev 0x14
 SiS 7007 FireWire rev 0x00 at pci0 dev 2 function 3 not configured
 pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x00: 648: DMA,
 channel 0 wired to compatibility, channel 1 wired to compatibility
 pciide0: channel 0 disabled (no drives)
 wd0 at pciide0 channel 1 drive 0: SAMSUNG SP2014N
 wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
 wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
 auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: apic 2 int
 18 (irq 9), SiS7012 AC97
 ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
 audio0 at auich0
 ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: apic 2
 int 20 (irq 5), version 1.0, legacy support
 ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: apic 2
 int 21 (irq 10), version 1.0, legacy support
 ohci2 at pci0 dev 3 function 2 SiS 5597/5598 USB rev 0x0f: apic 2
 int 22 (irq 11), version 1.0, legacy support
 ehci0 at pci0 dev 3 function 3 SiS 7002 USB rev 0x00: apic 2 int 23 (irq 6)
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 SiS EHCI root hub rev 2.00/1.00 addr 1
 vga1 at pci0 dev 9 function 0 S3 Trio32/64 rev 0x54
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 em0 at pci0 dev 11 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
 apic 2 int 19 (irq 10), address 00:07:e9:39:50:d5
 rl0 at pci0 dev 15 function 0 Realtek 8139 rev 0x10: apic 2 int 16
 (irq 11), address 00:0d:61:1b:69:27
 rlphy0 at rl0 phy 0: RTL internal PHY
 isa0 at pcib0
 isadma0 at isa0
 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 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, using wsdisplay0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 lpt0 at isa0 port 0x378/4 irq 7
 it0 at isa0 port 0x2e/2: IT8705F rev 2, EC port 0x290
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 usb1 at ohci0: USB revision 1.0
 uhub1 at usb1 SiS OHCI root hub rev 1.00/1.00 addr 1
 usb2 at ohci1: USB revision 1.0
 uhub2 at usb2 SiS OHCI root hub rev 1.00/1.00 addr 1
 usb3 at ohci2: USB revision 1.0
 uhub3 at usb3 SiS OHCI root hub rev 1.00/1.00 addr 1
 mtrr: Pentium Pro MTRR support
 uhidev0 at uhub1 port 1 configuration 1 interface 0 Sun Microsystems
 Type 6 Keyboard rev 1.10/2.00 addr 2
 uhidev0: iclass 3/1
 ukbd0 at uhidev0: 8 

Re: openbsd and ethernet tap (port replication)

2009-08-25 Thread Dag Richards

Put an ip address on  em0.

FRLinux wrote:

Hello,

I am trying to replicate some traffic from a Cisco 6500 onto an
OpenBSD 4.5 vanilla machine. I have two NICs, rl0 which is the
administration interface and em0 which I hope to use for the ethernet
tap. So far, my cisco replicates traffic happily, i can see the packet
count in/egress increasing but nothing seems to reach em0.

I have no PF running, the box is inside the network with a cable
connected straight from em0 to a cisco port on the 6500. The cisco
router reports the link live (so does OpenBSD) but no traffic seems to
be flowing.

I realize that has to be something stupid but if anyone could send me
a pointer, that would be most welcome.

em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr xx:xx:xx:xx:xx
priority: 0
media: Ethernet autoselect (1000baseT full-duplex,rxpause)
status: active

OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel 686-class) 3.22 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 1073246208 (1023MB)
avail mem = 1029500928 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/19/04, BIOS32 rev. 0 @
0xfb1a0, SMBIOS rev. 2.3 @ 0xf0120 (49 entries)
bios0: vendor Award Software International, Inc. version F5 date 01/19/2004
bios0: NEC Computers International 000
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) AMR0(S4) UAR1(S4)
UAR2(S4) PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 14, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0x8000 0xc8000/0x8000! 0xd/0x1800 0xd2000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 SiS 648 PCI rev 0x51
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xe000, size 0x800
ppb0 at pci0 dev 1 function 0 SiS 648FX AGP rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 SiS 85C503 System rev 0x14
SiS 7007 FireWire rev 0x00 at pci0 dev 2 function 3 not configured
pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x00: 648: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
wd0 at pciide0 channel 1 drive 0: SAMSUNG SP2014N
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: apic 2 int
18 (irq 9), SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: apic 2
int 20 (irq 5), version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: apic 2
int 21 (irq 10), version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 SiS 5597/5598 USB rev 0x0f: apic 2
int 22 (irq 11), version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 SiS 7002 USB rev 0x00: apic 2 int 23 (irq 6)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 SiS EHCI root hub rev 2.00/1.00 addr 1
vga1 at pci0 dev 9 function 0 S3 Trio32/64 rev 0x54
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 11 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
apic 2 int 19 (irq 10), address 00:07:e9:39:50:d5
rl0 at pci0 dev 15 function 0 Realtek 8139 rev 0x10: apic 2 int 16
(irq 11), address 00:0d:61:1b:69:27
rlphy0 at rl0 phy 0: RTL internal PHY
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8705F rev 2, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 SiS OHCI root hub rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 SiS OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 SiS OHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0 Sun Microsystems
Type 6 Keyboard rev 1.10/2.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
softraid0 at root
root on wd0a swap on