It's not clear from your mail, did you bring the vlan interface up? Assigning an IP address (currently) does that automatically.
Full ifconfig output might be useful. On 2018-05-22, Sigi Rudzio <sigirud...@gmail.com> wrote: > Hi misc@, > > I'm trying to bridge a VLAN between two routers with a vxlan(4) interface. > > Setup: > router 1 (6.3): > physical interface (em) - vlan (with IP address) - bridge - vxlan > > The two routers are connected directly, the traffic is encrypted with IPSec > and encapsulated in etherip(4), routed traffic is working perfectly. > > router 2 (6.3-current): > vxlan - bridge - vlan (no IP address) - parent interface (sk0) - > switch - devices > > With this configuration, the parent interface on router 2 (sk0) isn't in > promiscous mode and no traffic can pass into the vlan interface on router 2 > (the devices attached to the switch receive echo requests and answer, but the > answer is not received on the vlan interface, only on the parent interface > (sk0) > in encapsulated form). > Outgoing traffic can be seen on the vlan interface. > > If I assign an IP address to the vlan device on router 2, the parent > interface (sk0) > flags change from: > sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > to: > sk0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> > mtu 1500 > > and traffic can flow over the vlan interface, it keeps working even > after deleting the > IP address (sk0 stays in promisc. mode). > Even when I delete the vlan interface after deleting the IP address > and add the vlan > interface again it keeps working until I reboot. > > running tcpdump on sk0 or adding it to a bridge with no other members also > makes > traffic flow and puts sk0 in promisc mode, but exiting > tcpdump/destroying the bridge > removes the PROMISC flag again. > > Easiest way to reproduce this is creating a vlan interface on top of a > ethernet interface > with and without an IP address for the vlan interface. (also tried it > with an rl interface, > got the same behaviour). > > disabling pf doesn't change anything. > > Am I doing something wrong/is this behaviour intended or indeed a bug? > > If you need any more information/want me to reproduce this with a simpler > setup, > I'll be happy to help. > > dmesg of router 2 is attached. > > Thanks for any help! > > Regards, > > Sigi Rudzio > > dmesg router 2: > OpenBSD 6.3-current (GENERIC) #41: Sat May 19 22:35:35 MDT 2018 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC > real mem = 989462528 (943MB) > avail mem = 951570432 (907MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (51 entries) > bios0: vendor American Megatrends Inc. version "080014" date 09/12/2008 > bios0: ECS GeForce7050M-M > acpi0 at bios0: rev 0 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP APIC MCFG OEMB HPET NVHD SSDT > acpi0: wakeup devices NSMB(S4) USB0(S4) USB2(S3) US15(S4) US12(S3) > NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4) BR13(S4) > BR14(S4) BR15(S4) BR16(S4) PWRB(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: AMD Sempron(tm) Processor LE-1150, 1995.48 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,EAPICSP,AMCR8,3DNOWP > cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB > 64b/line 16-way L2 cache > cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative > cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 199MHz > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins > acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 > acpihpet0 at acpi0: 25000000 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (P0P1) > acpiprt2 at acpi0: bus 2 (BR10) > acpiprt3 at acpi0: bus 3 (BR11) > acpiprt4 at acpi0: bus 4 (BR12) > acpiprt5 at acpi0: bus 5 (BR13) > acpiprt6 at acpi0: bus 6 (BR14) > acpiprt7 at acpi0: bus 7 (BR15) > acpiprt8 at acpi0: bus 8 (BR16) > acpicpu0 at acpi0: C1(@1 halt!), PSS > acpitz0 at acpi0: critical temperature is 110 degC > acpicmos0 at acpi0 > "*pnp0c14" at acpi0 not configured > acpibtn0 at acpi0: PWRB > cpu0: PowerNow! K8 1995 MHz: speeds: 2000 1800 1000 MHz > pci0 at mainbus0 bus 0 > "NVIDIA MCP67 Memory" rev 0xa2 at pci0 dev 0 function 0 not configured > pcib0 at pci0 dev 1 function 0 "NVIDIA MCP67 ISA" rev 0xa2 > nviic0 at pci0 dev 1 function 1 "NVIDIA MCP67 SMBus" rev 0xa2 > iic0 at nviic0 > spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL6 > iic1 at nviic0 > ohci0 at pci0 dev 2 function 0 "NVIDIA MCP67 USB" rev 0xa2: apic 1 int > 10, version 1.0, legacy support > ehci0 at pci0 dev 2 function 1 "NVIDIA MCP67 USB" rev 0xa2: apic 1 int 11 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 configuration 1 interface 0 "NVIDIA EHCI root hub" rev > 2.00/1.00 addr 1 > ohci1 at pci0 dev 4 function 0 "NVIDIA MCP67 USB" rev 0xa2: apic 1 int > 10, version 1.0, legacy support > ehci1 at pci0 dev 4 function 1 "NVIDIA MCP67 USB" rev 0xa2: apic 1 int 10 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 configuration 1 interface 0 "NVIDIA EHCI root hub" rev > 2.00/1.00 addr 1 > pciide0 at pci0 dev 6 function 0 "NVIDIA MCP67 IDE" rev 0xa1: DMA, > channel 0 configured to compatibility, channel 1 configured to > compatibility > pciide0: channel 0 disabled (no drives) > pciide0: channel 1 ignored (disabled) > ppb0 at pci0 dev 8 function 0 "NVIDIA MCP67 PCI" rev 0xa2 > pci1 at ppb0 bus 1 > skc0 at pci1 dev 5 function 0 "Schneider & Koch SK-98xx v2.0" rev > 0x14, Yukon Lite (0x9): apic 1 int 11 > sk0 at skc0 port A: address 00:00:5a:9e:4c:9b > eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5 > acx0 at pci1 dev 6 function 0 "TI ACX111" rev 0x00: apic 1 int 10 > acx0: ACX111, radio Radia (0x16), EEPROM ver 5, address 00:80:c8:2d:67:62 > ahci0 at pci0 dev 9 function 0 "NVIDIA MCP67 AHCI" rev 0xa2: apic 1 > int 5, AHCI 1.1 > ahci0: port 0: 3.0Gb/s > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 0 lun 0: <ATA, ST3808110AS, 3.AH> SCSI3 0/direct > fixed t10.ATA_ST3808110AS_9LR4F0Z7 > sd0: 76319MB, 512 bytes/sector, 156301488 sectors > nfe0 at pci0 dev 10 function 0 "NVIDIA MCP67 LAN" rev 0xa2: apic 1 int > 10, address 00:21:97:a6:39:a1 > brgphy0 at nfe0 phy 1: BCM54XX 10/100/1000baseT PHY, rev. 1 > ppb1 at pci0 dev 11 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci2 at ppb1 bus 2 > ix0 at pci2 dev 0 function 0 "Intel 82599" rev 0x01: apic 1 int 10, > address a0:36:9f:1f:78:f0 > ix1 at pci2 dev 0 function 1 "Intel 82599" rev 0x01: apic 1 int 10, > address a0:36:9f:1f:78:f2 > ppb2 at pci0 dev 12 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci3 at ppb2 bus 3 > ppb3 at pci0 dev 13 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci4 at ppb3 bus 4 > ppb4 at pci0 dev 14 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci5 at ppb4 bus 5 > ppb5 at pci0 dev 15 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci6 at ppb5 bus 6 > ppb6 at pci0 dev 16 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci7 at ppb6 bus 7 > ppb7 at pci0 dev 17 function 0 "NVIDIA MCP67 PCIE" rev 0xa2 > pci8 at ppb7 bus 8 > vga1 at pci0 dev 18 function 0 "NVIDIA GeForce 7050 PV" rev 0xa2 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00 > pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00 > pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00 > kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: > core rev DH-G1 > isa0 at pcib0 > isadma0 at isa0 > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com0: console > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > it0 at isa0 port 0x2e/2: IT8726F rev 1, EC port 0xa10 > usb2 at ohci0: USB revision 1.0 > uhub2 at usb2 configuration 1 interface 0 "NVIDIA OHCI root hub" rev > 1.00/1.00 addr 1 > usb3 at ohci1: USB revision 1.0 > uhub3 at usb3 configuration 1 interface 0 "NVIDIA OHCI root hub" rev > 1.00/1.00 addr 1 > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > root on sd0a (b6f209c94e853bf3.a) swap on sd0b dump on sd0b > >