On 06/25/14 23:46, [email protected] wrote:
Hi,I'm a newbie of OpenBSD systems and I have the following problem:I'm interested in working with my openBSD 5.5 virtual machine (under virtualbox) as a router but, when I use quagga (installed with the pkg_add command), its routing deamons (ripd and ospfd) don't work. it gives me the following output in /var/log/quagga/rip.log: can't setsockopt ip_add_membership can't assign requested address multicast join failed, interface em2 not running but em2 is active and running!! even if I try to start mrouted -d I receive the error: can't enable multicast routing kernel: address already in use I googled a little searching a solution for both problems and I found this link about the first error: openbsd.7691.n7.nabble.com/quagga-0-99-20-1p0-multicast-broken-on-5-2-patch-included-td221123.html but I don't have the skills to do what they suggest to. and I couldn't find anything about the second output my dmesg output: OpenBSD 5.5 (GENERIC) #276: Wed Mar 5 09:57:06 MST 2014 [email protected]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz ("GenuineIntel" 686-class) 2.53 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,LONG,SSE3,MWAIT,SSSE3,LAHF real mem = 536309760 (511MB) avail mem = 515244032 (491MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xfc010, SMBIOS rev. 2.5 @ 0xe1000 (5 entries) bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006 bios0: innotek GmbH VirtualBox acpi0 at bios0: rev 2 acpi0: sleep states S0 S5 acpi0: tables DSDT FACP SSDT acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 32 bits acpiprt0 at acpi0: bus 0 (PCI0) acpibat0 at acpi0: BAT0 not present acpiac0 at acpi0: AC unit online bios0: ROM list: 0xc0000/0x9000 0xe2000/0x1000 cpu0 at mainbus0: (uniprocessor) mtrr: CPU supports MTRRs but not enabled by BIOS pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02 pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00 pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <VBOX HARDDISK> wd0: 128-sector PIO, LBA, 3584MB, 7340032 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 disabled (no drives) vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) em0 at pci0 dev 3 function 0 "Intel 82540EM" rev 0x02: irq 10, address 08:00:27:d9:6b:2f "InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not configured auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: irq 5, ICH AC97 ac97: codec id 0x83847600 (SigmaTel STAC9700) audio0 at auich0 ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: irq 11, version 1.0 piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus disabled em1 at pci0 dev 8 function 0 "Intel 82540EM" rev 0x02: irq 9, address 08:00:27:47:66:43 em2 at pci0 dev 9 function 0 "Intel 82540EM" rev 0x02: irq 5, address 08:00:27:bc:6b:07 em3 at pci0 dev 10 function 0 "Intel 82540EM" rev 0x02: irq 11, address 08:00:27:bf:89:b8 ehci0 at pci0 dev 11 function 0 "Intel 82801FB USB" rev 0x00: irq 10 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 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 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (96383407307a434c.a) swap on wd0b dump on wd0b WARNING: / was not properly unmounted my rc.conf.local file:quagga_enable="YES" quagga_daemons="zebra ripd" gateway_enable="YES" multicast_router=YES mrouted_flags=YES my sysctl.conf file:# $OpenBSD: sysctl.conf,v 1.54 2012/09/20 12:51:43 yasuoka Exp $ # # This file contains a list of sysctl options the user wants set at # boot time. See sysctl(3) and sysctl(8) for more information on # the many available variables. # net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets net.inet.ip.mforwarding=1 # 1=Permit forwarding (routing) of IPv4 multicast packets net.inet.ip.multipath=1 # 1=Enable IP multipath routing net.inet.icmp.rediraccept=1 # 1=Accept ICMP redirects #net.inet6.icmp6.rediraccept=1 # 1=Accept IPv6 ICMP redirects (for hosts) #net.inet6.ip6.forwarding=1 # 1=Permit forwarding (routing) of IPv6 packets #net.inet6.ip6.mforwarding=1 # 1=Permit forwarding (routing) of IPv6 multicast packets #net.inet6.ip6.multipath=1 # 1=Enable IPv6 multipath routing #net.inet6.ip6.accept_rtadv=1 # 1=Permit IPv6 autoconf (forwarding must be 0) #net.inet.tcp.always_keepalive=1 # 1=Keepalives for all connections (e.g. hotel/airport NAT) #net.inet.tcp.keepidle=100 # 100=send TCP keepalives every 50 seconds #net.inet.tcp.rfc1323=0 # 0=Disable TCP RFC1323 extensions (for if tcp is slow) #net.inet.tcp.rfc3390=0 # 0=Disable RFC3390 for TCP window increasing #net.inet.esp.enable=0 # 0=Disable the ESP IPsec protocol #net.inet.ah.enable=0 # 0=Disable the AH IPsec protocol #net.inet.esp.udpencap=0 # 0=Disable ESP-in-UDP encapsulation #net.inet.ipcomp.enable=1 # 1=Enable the IPCOMP protocol #net.inet.etherip.allow=1 # 1=Enable the Ethernet-over-IP protocol #net.inet.tcp.ecn=1 # 1=Enable the TCP ECN extension #net.inet.carp.preempt=1 # 1=Enable carp(4) preemption #net.inet.carp.log=3 # log level of carp(4) info, default 2 #net.pipex.enable=1 # 1=Enable pipex(4) for npppd(8) #ddb.panic=0 # 0=Do not drop into ddb on a kernel panic #ddb.console=1 # 1=Permit entry of ddb from the console #fs.posix.setuid=0 # 0=Traditional BSD chown() semantics #vm.swapencrypt.enable=0 # 0=Do not encrypt pages that go to swap #vfs.nfs.iothreads=4 # Number of nfsio kernel threads #net.inet.ip.mtudisc=0 # 0=Disable tcp mtu discovery #kern.usercrypto=1 # 1=Enable userland use of /dev/crypto #kern.userasymcrypto=1 # 1=Permit userland to do asymmetric crypto #kern.splassert=2 # 2=Enable with verbose error messages #kern.nosuidcoredump=2 # 2=Put suid coredumps in /var/crash #kern.watchdog.period=32 # >0=Enable hardware watchdog(4) timer if available #kern.watchdog.auto=0 # 0=Disable automatic watchdog(4) retriggering #kern.pool_debug=0 # 0=Disable pool corruption checks (faster) #hw.allowpowerdown=0 # 0=Disable power button shutdown #machdep.allowaperture=2 # See xf86(4) #machdep.apmhalt=1 # 1=powerdown hack, try if halt -p doesn't work #machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt #machdep.lidsuspend=1 # laptop lid closes cause a suspend #machdep.userldt=1 # allow userland programs to play with ldt, # required by some ports #kern.emul.linux=1 # enable running Linux binaries my zebra configuration:! ! Zebra configuration saved from vty ! 2014/06/25 00:00:01 ! password zebra enable password zebra log file /var/log/quagga/zebra.log ! interface em0 ipv6 nd suppress-ra ! interface em1 ipv6 nd suppress-ra ! interface em2 ip address 173.0.0.2/30 ipv6 nd suppress-ra ! interface em3 ipv6 nd suppress-ra ! interface enc0 ipv6 nd suppress-ra ! interface lo0 ! interface pflog0 ipv6 nd suppress-ra ! ip forwarding ! ! line vty ! My ripd configuration:! ! Zebra configuration saved from vty ! 2014/06/25 00:00:01 ! password zebra log file /var/log/quagga/ripd.log log stdout ! router rip version 2 network 173.0.0.0/30 ! line vty ! do you have any suggestions ?? thanks and sorry for my english
What's the output of: ifconfig em
