DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th April 2014
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default Can mrouted be used between vlans?

Hi,

currently I'm using IGMPProxy to get multicast packets between vlans, but this has a disadvantage in that packets can only flow upstream on one interface.

I've attempted configuring mrouted to do a similar thing but for some reason it doesn't work and unfortunately the log files are not being very helpful.


Here's my config:

Code:
phyint vlan1
phyint vlan2
I have also tried doing things like:

Code:
phyint vlan1 boundary 239.255.255.0/24
and

Code:
phyint vlan1 metric 1 threshold 1
phyint vlan2 metric 1 threshold 1
Looking at the /etc/mrouted.conf file there are a few examples out of which I got the above config.


Running "mrouted -d" gives the output:

Code:
19:58:12.779 Getting vifs from /etc/mrouted.conf
19:58:12.780 Installing vifs in mrouted...
[...]
pruning off
19:58:12.781 Installing vifs in kernel...
[...]
vifs_with_neighbors = 0

Virtual Interface Table
Vif  Name  Local-Address                               M  Thr  Rate   Flags
 0 vlanX  <ip>      subnet: <subnet>       1   1      0   querier
19:58:12.782 warning - SIOCGETVIFCNT fails

Multicast Routing Table (8 entries)
 Origin-Subnet      From-Gateway    Metric Tmr In-Vif  Out-Vifs
 <subnet>                      1     0   6    0* 1* 2* 3* 4* 5* 7* 
[...]

19:58:20.861 update 0 starting at 8 of 8
multicast routing is enabled in /etc/sysctl.conf too.

I'm wondering if I've misunderstood something and that mrouted is more like a dynamic routing protocol for multicast to be used between routers rather then in a single system between subnets?


Would someone mind helping me with this?


Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 19th April 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

I've never done multicast routing. However, I note that there are two sysctls for routing. Be sure you've enabled both:
Code:
net.inet.ip.forwarding=1       # 1=Permit forwarding (routing) of IPv4 packets
net.inet.ip.mforwarding=1      # 1=Permit forwarding (routing) of IPv4 multicas
t packets

Last edited by jggimi; 19th April 2014 at 11:03 PM. Reason: clarity
Reply With Quote
  #3   (View Single Post)  
Old 19th April 2014
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Yep both are enabled.... since the machine is a router.

What's weird is that Igmpproxy works fine and yet I can't seem to translate the config over to mrouted...
Reply With Quote
  #4   (View Single Post)  
Old 23rd April 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

sparky, henning@ is revising the vlan driver. Work is ongoing, as I've seen patches continuing in the last 24 hours. When they reach a snapshot you may want to test his changes to see if they have an impact on this issue.
Reply With Quote
  #5   (View Single Post)  
Old 29th April 2014
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Many thanks for the info and sorry for the late response.

For some reason after the upgrade that I performed igmpproxy doesn't work any more??

Currently am running:

Code:
pkg_add -Uu
however, I am getting a similar message throughout....

Quote:
Can't install <pkg> because of libraries

How would I go about fixing that?

Basically I need to know Which libraries are the issue and then how to fix those particular libraries....

{EDIT}

Found... I think the issue:

Code:
|library c.74.1 not found
| /usr/lib/libc.so.70.0 (system): bad major
| /usr/lib/libc.so.74.0 (system): minor is too small
Can't install libiconv-1.14p1 because of libraries
Can't install db-4.6.21p0v0 because of libraries
apache-httpd-2.2.27:.libs-apr-util-1.4.1p2+apr-util-1.5.3->apr-util-1.5.3p0: ok
Can't install pcre-8.33 because of libraries
Can't install apache-httpd-2.2.27 because of libraries
|library crypto.26.0 not found
| /usr/lib/libcrypto.so.23.0 (system): bad major
|library ssl.24.0 not found
Also just found this:

http://daemonforums.org/showthread.php?t=5375

Could this be as suggested that the PKG_PATH variable is pointing to the wrong place?? Though I never recall setting that as I went straight to Ports.

{EDIT2}

Code:
# echo $PKG_PATH
ftp://mirror.exonetric.net/pub/OpenBSD/snapshots/packages/amd64/
That looks correct to me?

Last edited by sparky; 29th April 2014 at 01:04 PM.
Reply With Quote
  #6   (View Single Post)  
Old 29th April 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

Your local mirror has packages dated April 22. I don't know the age of your snapshot, but I assume it is more recent. Looking at the source for snapshot packages (ftp.openbsd.org), there was an update to the "snapshot packages" for your architecture on April 24.

There have been library changes to -current since your packages were built. FAQ 15.4.1 applies.

You can either wait for your mirror to refresh, point to another nearby mirror that has already refreshed, or build packages from ports.

The "snapshot packages" are provided solely as a convenience for popular architectures and there is no synchronization provided. I use a lot of i386-current, and the snapshot packages for that architecture are often are a week ahead of the snapshots themselves.

Last edited by jggimi; 29th April 2014 at 01:16 PM. Reason: typo
Reply With Quote
  #7   (View Single Post)  
Old 29th April 2014
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Ahhhh that explains it!!


Again thanks so much for all the help..... :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 8.0-RELEASE and VLANs GFORGX FreeBSD General 1 11th August 2010 09:28 PM
vlans and pfstat zomo OpenBSD General 4 9th July 2009 09:19 PM
Configuring VLANs under FreeBSD Popof FreeBSD General 5 13th May 2008 04:08 PM


All times are GMT. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick