LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2017, 12:10 AM   #1
sci10270
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Rep: Reputation: Disabled
Multicast traffic not going through


hello all,

I am pretty new to linux networking and linux in general.
I am trying to send multicast traffic across 2 different subnets, connected via Cisco switches.

I'm using iperf to test, so on machine A (IP 192.168.1.1) on 192.168.1.x subnet, I run the below
Code:
iperf -s -u -B 239.168.120.1 -i 1
------------------------------------------------------------
Server listening on UDP port 5001
Binding to local address 239.168.120.1
Joining multicast group  239.168.120.1
Receiving 1470 byte datagrams
UDP buffer size:  122 KByte (default)
on machine B with ip 192.168.1.2, I run the
Code:
iperf -c 239.168.120.1 -u
and I'm able to get a response. I guess because they are within the same subnet.

on machine C with ip 10.68.1.1, I run the same
Code:
iperf -c 239.168.120.1 -u
but the traffic didn't go through. Multicast seems to have been enabled on each host too. as shown below.

Code:
netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      all-systems.mcast.net
eth2            1      all-systems.mcast.net

ifconfig eth2
eth2      Link encap:Ethernet  HWaddr 33:33:33:33:6C:40
          inet addr:10.65.51.20  Bcast:10.65.51.255  Mask:255.255.255.0
          inet6 addr: f000::3333:bbff:fe3f:6c40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
I've enabled multicast-routing on the Cisco switches and setup pim rp mapping.
Code:
show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent

Group(s) 239.0.0.0/8
  RP 10.68.245.2 (test.net), v2v1
    Info source: 10.68.245.2 (test.net), elected via Auto-RP
         Uptime: 00:12:54, expires: 00:02:05
Group(s): 224.0.0.0/4, Static
    RP: 10.68.245.2 (test.net)
Code:
sh ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group
       V - RD & Vector, v - Vector
Outgoing interface flags: H - Hardware switched, A - Assert winner
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.39), 01:01:43/stopped, RP 10.68.245.2, flags: SJPCLF
  Incoming interface: Vlan908, RPF nbr 10.68.245.2
  Outgoing interface list: Null

(10.65.245.2, 224.0.1.39), 00:49:43/00:02:24, flags: PLFT
  Incoming interface: Vlan908, RPF nbr 0.0.0.0
  Outgoing interface list: Null

(*, 224.0.1.40), 01:15:27/00:02:29, RP 10.68.245.2, flags: SJPCL
  Incoming interface: Vlan908, RPF nbr 10.68.245.2
  Outgoing interface list: Null
Appreciate if someone could point me in the right direction.
 
Old 08-15-2017, 03:51 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,823

Rep: Reputation: 157Reputation: 157
You are better to setup a multicast router using Linux machine between two subnet network.
 
Old 08-15-2017, 08:13 PM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Question but is this cisco switch doing routing?
 
Old 08-15-2017, 10:03 PM   #4
sci10270
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
You are better to setup a multicast router using Linux machine between two subnet network.
Could you please show me the ropes? Really can't thank you enough!

Quote:
Originally Posted by lazydog View Post
Question but is this cisco switch doing routing?
Yes, it is.
 
Old 08-16-2017, 04:50 PM   #5
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,823

Rep: Reputation: 157Reputation: 157
You can use igmpproxy.
 
Old 08-16-2017, 09:43 PM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Is the switch showing multicast on the interfaces when you do a 'sh int <interface>'?
 
Old 08-17-2017, 04:59 AM   #7
sci10270
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
You can use igmpproxy.
Will spend some time to find out how that works. Thank you.

Quote:
Originally Posted by lazydog View Post
Is the switch showing multicast on the interfaces when you do a 'sh int <interface>'?
Seems like it doesn't show. Could you explain further on how I could make this work?

#show int gi1/3
GigabitEthernet1/3 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet Port, address is xxxx
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 2/255, rxload 22/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, link type is auto, media type is 10/100/1000-TX
input flow-control is on, output flow-control is on
Auto-MDIX on (operational: off)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
 
Old 08-17-2017, 09:29 AM   #8
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What type of switch is this? If you are not sure run 'sh ver'.
Do you have a need for flow control to be turned on?
 
Old 08-17-2017, 09:31 AM   #9
sci10270
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
What type of switch is this? If you are not sure run 'sh ver'.
Do you have a need for flow control to be turned on?
It's a Cisco 4948E. Not sure about flow control too.. my understanding of network is elementary, at best.
 
Old 08-17-2017, 10:06 AM   #10
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
A quick Google search tells me you have to setup multicast routing.
 
Old 08-17-2017, 03:40 PM   #11
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,823

Rep: Reputation: 157Reputation: 157
Quote:
A quick Google search tells me you have to setup multicast routing.
Does it request another router to take care of PIM?
 
Old 08-18-2017, 02:51 AM   #12
sci10270
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
A quick Google search tells me you have to setup multicast routing.
Multicast routing has been configured on the Cisco switches already.

Quote:
Originally Posted by nini09 View Post
Does it request another router to take care of PIM?
This, I'm not so sure..

Anybody ever did Multicasting end to end before on Cisco switches and Linux hosts?
Mind stating the steps down? I might have missed one or two here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multicast traffic not forwarded when using a Linux system as a router anon_16 Linux - Networking 7 01-22-2014 04:45 AM
VT6120 Gigabit Ethernet Adapter not passing multicast traffic bartock Linux - Networking 2 03-17-2008 02:04 PM
kernel and multicast udp traffic zeebu Linux - Networking 5 06-02-2007 10:22 AM
what is multicast traffic? servnov Linux - Networking 1 12-22-2005 12:18 AM
multicast traffic from eth0 ?? zarniwoop Linux - Networking 5 04-02-2004 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:48 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