LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-21-2020, 12:53 PM   #1
james000
Member
 
Registered: Sep 2018
Posts: 143

Rep: Reputation: 2
How to force multicast packet to go via different interface?


Hi folks,

I am working on a Solaris-10 global server, which is hosting 7 non-global zones. There are two kind of network interfaces on our servers, admin and prod. There is one route/multicast, which is going via admin interface, I want to delete that and have that from prod interface.
e1000g0 is admin interface
e1000g3 is prod interface
Code:
# ifconfig e1000g0
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.244.20 netmask ffffff80 broadcast 192.168.244.127
        ether 0:14:4f:78:f8:84
# ifconfig e1000g3
e1000g3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 216.221.133.250 netmask ffffffc0 broadcast 216.221.133.255
        ether 0:14:4f:78:f8:87
#
If I check route of all zones, I see that multicast packets are going via e1000g0 (except the first one). I want it to go with prod interface e1000g3. I am not getting idea, how to do this. here is netstat from all zones, whoch shows that multicast packets are going via e1000g0, which I don't want.
Code:
# for i in `cat /var/tmp/all_zones.out`; do zlogin $i netstat -nrv | grep 224.0.0.0; done
224.0.0.0            240.0.0.0       192.168.241.21       e1000g1:1  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.24       e1000g0:5  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.22       e1000g0:4  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.23       e1000g0:2  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.25       e1000g0:3  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.32       e1000g0:6  1500*    0   1 U        0      0
224.0.0.0            240.0.0.0       192.168.244.33       e1000g0:7  1500*    0   1 U        0      0
#
Please suggest, how should I delete it and add new route, which can send multicast packets via e1000g3.
Network team already enabled multicast for that prod VLAN

Thanks
 
Old 02-25-2020, 12:15 PM   #2
james000
Member
 
Registered: Sep 2018
Posts: 143

Original Poster
Rep: Reputation: 2
I found the issue, it was tricky.

Multicast packets are going through admin interface because it is managed by /lib/svc/method/net-svc configuration. One of its parameter says

Code:
if [ "$_INIT_NET_STRATEGY" = "dhcp" ]; then 
        mcastif=`/sbin/dhcpinfo Yiaddr` || mcastif=$_INIT_UTS_NODENAME 
else 
        mcastif=$_INIT_UTS_NODENAME 
fi
It says multicast should go via NODENAME. That means, whatever is hostname and uname -n returns. By default hostname is set to admin interface. Two changes I made :

-Changed hostname and zonename in /etc/hosts, so at zonemanager level, it look to pubic IP
-In zonecfg, I moved up the public interface, so it goes FIRST in zone description file.
 
2 members found this post helpful.
Old 02-27-2020, 03:48 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Thanks for the feedback!
 
  


Reply

Tags
multicast, networking, solaris



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resident Multicast Sockets on a Multicast Router bryanj4 Linux - Networking 0 03-25-2015 12:45 AM
IPv6 multicast address used with VLC and multicast address routing merrittr Linux - Networking 2 01-28-2015 01:26 PM
Multicast Routering from IP interface to WIFI interface tureface Linux - Laptop and Netbook 1 04-18-2013 03:53 PM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 09:52 AM
packet coming through one interface route out via another interface and SNAT also saiyen2002 Linux - Networking 2 09-14-2009 06:56 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration