Multicast is useful to let multiple UML instances to talk to each other.
So I tried it.

I downloaded the files from Jeff's site (kernel 2.6.16 and  Fedora root_fs).
I downloaded the uml-utilities too.


First:
# ./linux rw ubd0=machine1.cow,root_fs eth0=mcast


[EMAIL PROTECTED] ~]# ifconfig eth0 192.168.0.253 up
[EMAIL PROTECTED] ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr FE:FD:C0:A8:00:FD
          inet addr:192.168.0.253  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5


Second:
# ./linux rw ubd0=machine2.cow,root_fs eth0=mcast

[EMAIL PROTECTED] ~]# ifconfig eth0 192.168.0.254 up
[EMAIL PROTECTED] ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr FE:FD:C0:A8:00:FE
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask: 255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:504 (504.0 b)
          Interrupt:5

I tried do ping the first uml:
[EMAIL PROTECTED] ~]# ping 192.168.0.253
PING 192.168.0.253 (192.168.0.253) 56(84) bytes of data.

After a while, ctrl c:

--- 192.168.0.253 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2035ms

Why I don't get ping it?

Reply via email to