Multicast routing problem

Elias Balafoutis balaf at di.uoa.gr
Fri Oct 12 13:51:01 EEST 2001


Kalimera,

Exw to eksis provlima
1 pc trexei mia efarmogi pou steleni udp paketa se mia multicast dieuthynsi
to pc einai syndedemeno me ena linux (RH 6.1) stin eth0
ena allo pc pou syndeetai me to linux stin eth1 ypotithetai oti trexei mia
efarmogi
pou lamvanei ta paketa

To provlima einai oti den to kanei
Den exw megali empeiria apo linux, opote se perifrafw ligo ti pairnw
mhpws mporei kanei kai boithisei

exoume kai leme
-->To routing Table

[root at voulgaroktonos ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
224.0.0.0       *               240.0.0.0       U     0      0        0 eth1
default         *               0.0.0.0         U     0      0        0
eth01

--> To TCP dump:
09:56:00.805602 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040
09:56:00.869447 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040
09:56:00.958756 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040
09:56:01.022917 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040
09:56:01.087126 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040
09:56:01.151330 eth0 M 192.168.2.12.1287 > 234.5.6.7.5010: udp 1040

--> ping
[root at voulgaroktonos ~]# ping -t 1 -c 200 224.0.0.1
PING 224.0.0.1 (224.0.0.1) from 192.168.1.11 : 56(84) bytes of data.
64 bytes from 192.168.1.11: icmp_seq=0 ttl=255 time=247 usec
64 bytes from 192.168.1.11: icmp_seq=1 ttl=255 time=145 usec
64 bytes from 192.168.1.11: icmp_seq=2 ttl=255 time=145 usec


--> to mrinfo
[root at voulgaroktonos mrouted-3.9-beta3]# ./mrinfo -n
127.0.0.1 (127.0.0.1) [DVMRPv3 compliant]:
  192.168.2.11 -> 0.0.0.0 (local) [1/1/querier/leaf]
  192.168.1.11 -> 0.0.0.0 (local) [1/1/querier/leaf]

  episis:
[root at voulgaroktonos mrouted-3.9-beta3]# cat /proc/net/ip_mr_vif
Interface      BytesIn  PktsIn  BytesOut PktsOut Flags Local    Remote
 0 eth0       47734188   45591         0       0 00000 0B02A8C0 00000000
 1 eth1              0       0         0       0 00000 0B01A8C0 00000000

--> Parakatw einai h eksodos apo to mrouted

[root at voulgaroktonos mrouted-3.9-beta3]# ./mrouted -c /etc/mrouted.conf -d
debug level 0x2de (pruning,routing,peers,cache,interface,membership,igmp)
12:29:03.297 mrouted version 3.9-beta3 starting
12:29:03.300 Getting vifs from kernel interfaces
12:29:03.301 installing eth0 (192.168.2.11 on subnet 192.168.2/24) as vif
#0 - r
ate=0
12:29:03.301 installing eth1 (192.168.1.11 on subnet 192.168.1/24) as vif
#1 - r
ate=0
12:29:03.301 Getting vifs from /etc/mrouted.conf
12:29:03.301 Installing vifs in mrouted...
12:29:03.301 vif #0, phyint 192.168.2.11
12:29:03.302 assuming querier duties on vif 0
12:29:03.302 sending v1 query on vif 0
12:29:03.303 SENT membership query   from 192.168.2.11    to 224.0.0.1
12:29:03.303 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:03.303 vif #1, phyint 192.168.1.11
12:29:03.303 assuming querier duties on vif 1
12:29:03.303 sending v1 query on vif 1
12:29:03.303 SENT membership query   from 192.168.1.11    to 224.0.0.1
12:29:03.303 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4
vifs_with_neighbors = 0

Virtual Interface Table
Vif  Name  Local-Address                               M  Thr  Rate   Flags
 0   eth0  192.168.2.11    subnet: 192.168.2/24        1   1      0
querier IG
MPv1
                     IGMP querier: 192.168.2.11       (this system)
                      Nbr bitmaps: 0x0000000000000000

 1   eth1  192.168.1.11    subnet: 192.168.1/24        1   1      0
querier IG
MPv1
                     IGMP querier: 192.168.1.11       (this system)
                      Nbr bitmaps: 0x0000000000000000


Multicast Routing Table (2 entries)
 Origin-Subnet      From-Gateway    Metric Tmr Fl In-Vif  Out-Vifs
 192.168.2/24                          1     0 C.   0    1*
 192.168.1/24                          1     0 C.   1    0*

12:29:03.304 RECV membership query   from 192.168.2.11    to 224.0.0.1
12:29:03.304 ignoring query from 192.168.2.11; querier on vif 0 is still me
12:29:03.304 RECV membership query   from 192.168.1.11    to 224.0.0.1
12:29:03.304 ignoring query from 192.168.1.11; querier on vif 1 is still me
12:29:03.339 RECV V1 member report   from 192.168.1.11    to 224.0.0.2
12:29:03.339 group 224.0.0.2 joined on vif 1
12:29:03.449 RECV V1 member report   from 192.168.2.11    to 224.0.0.4
12:29:03.449 group 224.0.0.4 joined on vif 0
12:29:03.509 RECV V1 member report   from 192.168.1.11    to 224.0.0.4
12:29:03.509 group 224.0.0.4 joined on vif 1
12:29:04.079 RECV V1 member report   from 192.168.2.11    to 224.0.0.2
12:29:04.079 group 224.0.0.2 joined on vif 0
12:29:09.078 aging forwarding cache entries
12:29:09.078 sending v1 query on vif 0
12:29:09.079 SENT membership query   from 192.168.2.11    to 224.0.0.1
12:29:09.079 sending v1 query on vif 1
12:29:09.079 SENT membership query   from 192.168.1.11    to 224.0.0.1
12:29:09.079 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:09.079 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4
12:29:09.079 RECV membership query   from 192.168.2.11    to 224.0.0.1
12:29:09.079 ignoring query from 192.168.2.11; querier on vif 0 is still me
12:29:09.079 RECV membership query   from 192.168.1.11    to 224.0.0.1
12:29:09.079 ignoring query from 192.168.1.11; querier on vif 1 is still me
12:29:09.848 RECV V1 member report   from 192.168.2.11    to 224.0.0.2
12:29:11.428 RECV V1 member report   from 192.168.1.11    to 224.0.0.2
12:29:12.378 RECV V1 member report   from 192.168.1.11    to 224.0.0.4
12:29:12.478 RECV V1 member report   from 192.168.2.11    to 224.0.0.4
12:29:13.478 mrouted version 3.9-beta3
12:29:13.479 Installing vifs in kernel...
12:29:13.479 vif #0, phyint 192.168.2.11
12:29:13.479 vif #1, phyint 192.168.1.11
12:29:13.479 aging forwarding cache entries
12:29:18.478 aging forwarding cache entries
12:29:18.479 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:18.479 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4
12:29:23.478 aging forwarding cache entries
12:29:28.988 aging forwarding cache entries
12:29:28.989 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:28.989 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4
12:29:33.989 aging forwarding cache entries
12:29:33.989 update 0 starting at 2 of 2
12:29:34.988 update 0 starting at 2 of 2
12:29:35.988 update 0 starting at 2 of 2
12:29:36.988 update 0 starting at 2 of 2
12:29:37.988 update 0 starting at 2 of 2
12:29:38.989 aging forwarding cache entries
12:29:38.989 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:38.989 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4
12:29:38.989 update 0 starting at 2 of 2
12:29:39.988 update 0 starting at 2 of 2
12:29:40.988 update 0 starting at 2 of 2
12:29:41.988 update 0 starting at 2 of 2
12:29:42.988 update 0 starting at 2 of 2
12:29:43.989 aging forwarding cache entries
12:29:43.989 update 0 starting at 2 of 2
12:29:44.988 update 0 starting at 2 of 2
12:29:45.988 update 0 starting at 2 of 2
12:29:46.988 update 0 starting at 2 of 2
12:29:47.988 update 0 starting at 2 of 2
12:29:48.988 aging forwarding cache entries
12:29:48.989 SENT neighbor probe     from 192.168.2.11    to 224.0.0.4
12:29:48.989 SENT neighbor probe     from 192.168.1.11    to 224.0.0.4







More information about the Linux-greek-users mailing list