Multicast problem



  • Hi,
    I have computer with two network interfaces eth0 primary and eth1 secondary ( clonedeploy configured on eth0 as default but I want to deploy multicast image across secondary interface eth1)
    I changed in the configuration options multicast settings to --interface eth1 but deployment not started …

    Log file show string

    /bin/bash -c "cat "/cd_dp/images/C5635/hd0/part1.ntfs.lz4" | udp-sender --portbase 9090 --min-receivers 2 --ttl 32 --interface eth1 "

    Then I try to diagnose problem I found that problem is --ttl 32... without --ttl 32 all work fine , but --ttl 32 is default argument and I don't now how can I change it ?



  • I believe the default is 1 if not specified, you can just add

    --ttl 1
    

    to your multicast arguments. But you won't be able to multicast to any computers more than 1 hop away with that setting.



  • Then I add --ttl 1 I get this 🙂
    /bin/bash -c "cat "/cd_dp/images/C5635/hd0/part1.ntfs.lz4" | udp-sender --portbase 9106 --min-receivers 2 --ttl 32 --interface eth1 --ttl 1"
    and not worked...



  • Are you sure that the ttl is your problem? udp-sender will read the last argument. So if you specify --ttl 32 --ttl 1, even though they are both listed it uses --ttl 1 since it's last.
    Here is the output without specifying a ttl:

    udp-sender.exe --interface 192.168.1.154
    
    Udp-sender 20110710
    Using mcast address 232.168.1.154
    UDP sender for (stdin) at 192.168.1.154 on Hyper-V Virtual Ethernet Adapter #4 (9c-b6-d0-bc-20-6d)
    Broadcasting control to 192.168.1.255
    

    Notice the broadcasting control is the broadcast address of your network since the ttl is not set.

    Now with --ttl 32

    udp-sender.exe --interface 192.168.1.154 --ttl 32
    
    Udp-sender 20110710
    Using mcast address 232.168.1.154
    UDP sender for (stdin) at 192.168.1.154 on Hyper-V Virtual Ethernet Adapter #4 (9c-b6-d0-bc-20-6d)
    Broadcasting control to 224.0.0.1
    

    Notice the control is now the multicast 224.0.0.1 to allow multicasting across subnets.

    Now with both ttl values

    udp-sender.exe --interface 192.168.1.154 --ttl 32 --ttl 1
    
    Udp-sender 20110710
    Using mcast address 232.168.1.154
    UDP sender for (stdin) at 192.168.1.154 on Hyper-V Virtual Ethernet Adapter #4 (9c-b6-d0-bc-20-6d)
    Broadcasting control to 192.168.1.255
    

    You can see the broadcast control is now the broadcast address of the network again, even though both ttl values were added, only the last one specified was used.



  • CloneDeploy 1.4

    03-11-19 01:19 Starting Multicast Session With The Following Command:
    /bin/bash -c "cat "/cd_dp/images/C0216/hd0/part1.ntfs.lz4" | udp-sender --portbase 9182 --min-receivers 6 --ttl 32 --interface eth1 -ttl 1"
    Session Started And Was Forced To Quit, Try Running The Command Manually



  • You are missing a dash in your ttl.
    Should be

    --ttl 1
    

    not

    -ttl 1
    


  • @clonedeploy_admin

    Thank you, I was wrong, did not pay attention