On Wednesday 26 October 2005 14:33, John Sanders wrote:
> OK - How do I change this running ethertap application for TUN/TAP?
>
> The idea is to have each client UML run on an exclusive ppp connection from
> started by the host prior to starting the uml instances.
>
> My host rc.local is:
>
> <rc.local>
> #!/bin/sh
> #
> # This script will be executed *after* all the other init scripts.
> # You can put your own initialization stuff in here if you don't
> # want to do the full Sys V style init stuff.
> # insmod /lib/modules/2.6.11.11smpJES4-bs5/misc/perle-serial.ko
> # add rules to isolate the tap devices - for UML
> ip ru add iif tap0 table 1 prio 220
> ip ru add iif tap1 table 2 prio 221
> ip ru add iif tap2 table 3 prio 222
> ip ru add iif tap3 table 4 prio 223
> ip ru add iif tap4 table 5 prio 224
> ip ru add iif tap5 table 6 prio 225
> ip ru add iif tap6 table 7 prio 226
> ip ru add iif tap7 table 8 prio 227
This should work unchanged. Uml uses TAP devices (tuntap is actually TUN/TAP,
and we use TAP, which means we pass down even the Ethernet frame). More
important, the interfaces are called tap#.
> My if-up.local is:
> <if-up.local>
> #!/bin/perl
> open OF,">/tmp/perlPppLog";
> print OF ("Params: ", join('~',@ARGV),"\n");
> $ARGV[0] =~ s/ppp// ;
> $pn = $ARGV[0];
> $tn = $pn + 1;
> print OF "ppp number: $pn Table number: $tn\n";
> print OF "/sbin/ip ro flush table $tn\n";
> system "/sbin/ip ro flush table $tn";
> print OF
> "/sbin/ip ro add $ARGV[4] dev ppp${pn} src $ARGV[3] table $tn\n";
> system "/sbin/ip ro add $ARGV[4] dev ppp${pn} src $ARGV[3] table $tn";
> print OF
> "/sbin/ip ro add default via $ARGV[4] dev ppp${pn} table $tn\n";
> system "/sbin/ip ro add default via $ARGV[4] dev ppp${pn} table $tn";
> print OF
> "/sbin/ip ro flush cache\n";
> system "/sbin/ip ro flush cache";
> exit;
> </if-up.local>
What the hell are you doing above? I see some routing setup done on ppp*
interfaces (does this relates with ethertap at all? I don't know how).
> </rc.uml1>
No change.
> My startup for uml1 is:
>
> <ulm1Start>
> # UML client uml1 startup
> $FC1BIN/uml_linux_lids lids=0 eth0=ethertap,tap0,,192.168.201.252
Go to the "Virtual Networking" page on the website, it's all explained there.
> Any pointers on how to convert this from ethertap to TUN/TAP would be
> greatly appreciated. Thanks in advance.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user