From: Stefano M. <ste...@op...> - 2006-04-21 13:16:44
|
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. >=20 > I downloaded the files from Jeff's site (kernel 2.6.16 and Fedora root_f= s). > I downloaded the uml-utilities too. >=20 >=20 > First: > # ./linux rw ubd0=3Dmachine1.cow,root_fs eth0=3Dmcast >=20 >=20 > [root@localhost ~]# ifconfig eth0 192.168.0.253 up > [root@localhost ~]# 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 >=20 >=20 > Second: > # ./linux rw ubd0=3Dmachine2.cow,root_fs eth0=3Dmcast >=20 > [root@localhost ~]# ifconfig eth0 192.168.0.254 up > [root@localhost ~]# 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 >=20 > I tried do ping the first uml: > [root@localhost ~]# ping 192.168.0.253 > PING 192.168.0.253 (192.168.0.253) 56(84) bytes of data. >=20 > After a while, ctrl c: >=20 > --- 192.168.0.253 ping statistics --- > 3 packets transmitted, 0 received, 100% packet loss, time 2035ms >=20 > 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]+=3Dmcast,ethernet_address,address,port,ttl I mean eth0=3Dmcast,,192.168.0.254,3 from machine2 point of view and eth0=3Dmcast,,192.168.0.253,3 from the other system point of view =46rom the man page, it should be all clear Cheers SteX --=20 Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> http://etinarcadiaego.dyndns.org -- http://www.stex.name Skype ID "stefanomelchior" |