On Fri, Apr 21, 2006 at 09:39:17AM -0300, xpto09 wrote:
Dear,
> 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?

how did you link your uml systems? I think, since you did not launch a tap
interface to comunicate with host, you need to create a direct link
between the two systems.
For instance, when you install uml-utilities the system (on debian)
creates a socket

/usr/bin/uml_switch -unix /var/run/uml-utilities/uml_switch.ctl

and when you bootstrap your host it automatically launches the daemon.
You need to create a *.ctl file (like in the example) and launch it
manually or automatically according to your needs. See uml_switch man
page.
When you launch your uml systems, remember to include them in the
definition of the ethX parameters: see man linux for examples.

i.e.: eth[0-9]+=mcast,ethernet_address,address,port,ttl
I mean eth0=mcast,,192.168.0.254,3 from machine2 point of view and
eth0=mcast,,192.168.0.253,3 from the other system point of view

From the man page, it should be all clear

Cheers

SteX

-- 
Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]>
http://etinarcadiaego.dyndns.org    --     http://www.stex.name
Skype ID "stefanomelchior"

Attachment: signature.asc
Description: Digital signature

Reply via email to