From: Ridgeway, A. <Ala...@ca...> - 2003-07-03 14:32:30
|
>tunctl -u uml-tom -t ext-tom0 >ifconfig ext-tom0 0.0.0.0 promisc up >brctl addif br0 ext-tom0 Are you trying to build a bridge to both Guest OSes ? If so, the archives have some good examples of building a bridge on the host and allowing the guest OSes network access by it. >eth0=3Dtuntap,ext-uml-tom Are you sure it's not=20 eth0=3Dtuntap,,,ext-uml-tom What is ext-uml-tom assigned value ? Is the same value for both Guest OSes ? I think TUN/TAP needs a separate address pair for each guest OS. It makes sense. a separate tunnel for each guest OS. In other words for 2 Guest OSes each using TUN/TAP, you would have the following: Host OS eth0 192.168.1.10 Host OS tap0 192.168.1.20 Guest Os eth0 192.168.1.21 Host OS tap1 192.168.1.30 Guest OS eth0 192.168.1.31 Notice a differnt tap interface per guest OS. Anyone please let me know if you are successful with sharing the same TUN/TAP with more then one Guest OS. Alan =20 -----Original Message----- From: Alan Murrell [mailto:al...@zo...] Sent: Wednesday, July 02, 2003 6:20 PM To: use...@li... Subject: [uml-user] PRB: UML unable to ping out Hello, Host IP: 192.168.10.254 UML IP: 192.168.10.253 I have a host system running two UMLs. They are started using the same = command line args, but one is fine and accessible, but the other one is = unable to ping anything, including the gateway (host) IP address. The command I use to start the UML is: screen -S uml-tom -d -m linux ubd0=3Droot_fs ubd1=3Dswap_fs mem=3D96M = umid=3Duml-tom con=3Dnull con0=3Dfd:0,fd:1 eth0=3Dtuntap,ext-uml-tom This is how I setup the networking on the host for the UML: tunctl -u uml-tom -t ext-tom0 ifconfig ext-tom0 0.0.0.0 promisc up brctl addif br0 ext-tom0 (The host-side network setup is done via script at bootup, and is = obviously working if the other UML is accessible, but I can post those = exact commands too, if you think it would help) I am able to log in to the UML using 'screen -r uml-tom'. Here is what = ifconfig and route look like: --- ifconfig --- eth0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00 inet addr:192.168.10.253 Bcast:192.168.10.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:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:2184 (2.1 Kb) Interrupt:5 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:16 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1432 (1.3 Kb) TX bytes:1432 (1.3 Kb) --- ifconfig --- --- route --- Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use = Iface 66.119.169.0 * 255.255.255.0 U 0 0 0 = eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 = lo default 66.119.169.254 0.0.0.0 UG 0 0 0 = eth0 --- route --- (However, it does take about 20secs for that last "default = 192.168.10.254..." line to show up) Anyway, as oyu can guess, I am not sure where the problem is. Please = let me know if you require further info, and I will do what i can to = provide it. Any ideas, suggestions, links, etc. that could help in this matter would = be greatly appreciated. TIA, Alan Murrell ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Alan M. <al...@zo...> - 2003-07-04 00:56:24
|
Alan Murrell wrote: > Wait a minute... I set the br0 interface with > 'promisc', which I think is wrong, no? (the example on > the 'networking.html' page does not have it). Could > that be the source of the trouble? Apparenty not. I restarted the networking (actually, the whole host = server) with the 'promisc' removed from the setup of the br0 interface. = Wha now happens is this: The first UML (uml-tom) starts up, and is pingable. However, when the = second one (uml-harry) starts up, and arps, it becomes pingable, but = then uml-tom is no longer pingable. I guess I will have to try by using two IP addresses: one for each side = of the tunnel for each UML. Any other suggestions would be appreciated, however... TIA, Alan Murrell |
From: Alan M. <si...@ya...> - 2003-07-03 15:28:18
|
Hello, --- "Ridgeway, Alan" <Ala...@ca...> wrote: > Are you trying to build a bridge to both Guest OSes Yes. > Are you sure it's not > > eth0=tuntap,,,ext-uml-tom It could be; I can definately give that a try. I was bascially following the example from David Coulson's site, which has the following: # tunctl -u david -t uml-david0 # ifconfig uml-david0 0.0.0.0 promisc up # brctl addif uml-int0 uml-david0 # screen -S uml-david -d -m \ su - david -c \ '~uml/bin/linux-2.4.19-12um \ ubd0=uml/david/rootfs \ ubd1=uml/david/swapfs \ ubd2=uml/david/homefs \ mem=256M umid=david \ con=null con0=fd:0,fd:1 \ eth0=tuntap,uml-david0' (I can't get it to run using the "su - <UID> -c ...", that's another issue!) His example uses just a single comma between 'tuntap' and the name of the tap device. I do currently have both UMLs running fine using 'eth0=ethertap,,,192.168.10.254', but I wish to have each UML with it's own interface for MRTG/bandwidth tracking purposes. > What is ext-uml-tom assigned value ? I am not sure; I just used: # tunctl -u uml-tom -t ext-tom0 # ifconfig ext-tom0 0.0.0.0 promisc up # brctl addif br0 ext-tom0 and then in the uml-tom guest OS, I assigned it's eth0 the IP address of 192.168.10.253. On the UML startup line, I entered 'eth0=tuntap,ext-tom0'. For the other guest OS, which I will refer to as "uml-harry", I did: # tunctl -u uml-harry -t ext-harry0 # ifconfig ext-harry0 0.0.0.0 promisc up # brctl addif br0 ext-harry0 and I gave it's eth0 '192.168.10.2'. On the UML startup line, I entered 'eth0=tuntap,ext-harry0'. > Is the same value for both Guest OSes ? Not that I can tell. I could see each guest OS's tap interface when I ran 'ifconfig' on the host OS (i.e., I would see 'ext-tom0' and 'ext-harry0') > I think TUN/TAP needs a separate address pair > for each guest OS. It makes sense. a separate tunnel > for each guest OS. Yes, that would be from one of the examples on the 'networking.html' page at the User Mode Linux web site, which would be this: host# tunctl -u uid host# ifconfig tap0 192.168.0.254 up host# bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward' host# route add -host 192.168.0.253 dev tap0 host# bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp' host# arp -Ds 192.168.0.253 eth0 pub correct? What I am attempting to do, instead of using two IP's per tap connection, is this (also from the 'networking.html' page): host# brctl addbr br0 host# ifconfig eth0 0.0.0.0 promisc up host# ifconfig tap0 0.0.0.0 promisc up host# ifconfig br0 192.168.0.1 netmask 255.255.255.0 up host# brctl stp br0 off host# brctl setfd br0 1 host# brctl sethello br0 1 host# brctl addif br0 eth0 host# brctl addif br0 tap0 (but with my own IP's and names for the tap devices) And as I said, it workds great for one UML, but the other one cannot be accessed, nor can it access anything but itself. Here are my commands for setting up the devices on the host OS: # brctl addbr br0 # ifconfig br0 192.168.10.254 netmask 255.255.255.0 promisc up # route add default gw 192.168.10.1 # ifconfig eth0 0.0.0.0 promisc up # brctl stp br0 off # brctl setfd br0 1 # brctl sethello br0 1 # brctl addif br0 eth0 <looks at commands, and compares to the 'networking.html' page> Wait a minute... I set the br0 interface with 'promisc', which I think is wrong, no? (the example on the 'networking.html' page does not have it). Could that be the source of the trouble? TIA, Alan Murrell <si...@ya...> ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |