cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1888
Views
0
Helpful
1
Replies

valid IPv6 multicast addresses

merrittr
Level 1
Level 1

Hi All 

 

I am trying to generate a series of IPv6 using a shell script

#!/bin/sh


FROM=1 TO=ff
FORMAT="%0${#FROM}X"
FROM=$(printf '%d' 0x$FROM) TO=$(printf '%d' 0x$TO)

while [ $FROM -le $TO ] 
do
 IFROM=$1 ITO=$2
 IFROM=$(printf '%d' 0x$IFROM) ITO=$(printf '%d' 0x$ITO)
 FORMAT2="%0${#IFROM}X"
 while [ $IFROM -le $ITO ] 
 do
    printf 'FF'
    printf $FORMAT $FROM 
    printf '::'
    printf $FORMAT2 $IFROM
    printf '\n'
    IFROM=$((IFROM+1))
 done
 FROM=$((FROM+1))
done
printf '\n'

 

 

this works fine I get 

 

FF1:1

FF1:2

.

.

.

FFFF::FF

 

what i am trying to do is run a bunch of VLC commandline sessions streaming to multicast groups ff15::1 works but ff1::1 or (ff01::1) dont seem to work what are valid multicast address for IPv6?

 

 

1 Reply 1

Michael Vincent
Level 1
Level 1

FF1::1 is *not* the same as FF01::1.  In fact, the first is not a valid IPv6 multicast address.

 

See:

 

http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml