On Monday 22 August 2005 18:09, Markus Hochholdinger wrote:
> Hi,
>
> Am Montag, 22. August 2005 17:24 schrieb Blaisorblade:
> > If your distro, instead of doing:
> > ifconfig eth0 up
> > ifconfig eth0 <address>, does
> > ifconfig eth0 <address>, then UML will decide the Mac address based on
> > the IP address (will be FE:FD:<ip address in hex, maybe reversed>).

> yeah, but i forget to tell that i use kernel level configuration with
> ./linux ip=..
> so i don't "need" (so i thougth1?) to make any ifconfig inside the uml.
That's VERY interesting. But UML's trick to variate the MAC was never tested 
in that case. Is that the one enabled by CONFIG_IP_PNP (i.e. "IP: kernel 
level autoconfiguration")?

It seems yes, and that code seem to have the same problem (it first brings up 
the interface, and later assigns it the IP). Uml obviously can't change the 
MAC while the interface is up (I guess that would for sure break DHCP, for 
instance), so the only way to make it re-choose its MAC is to shut the 
interface down and bring it up again with the IP.
 
> The benefit is, i can copy one uml-fs for testing, start the backup uml
> with a different ip on the backup-root-fs without changing the
> backup-root-fs or startup-scripts inside the uml.
I pass the IP on the command line as an env var and manually parse it inside 
the distro's boot scripts.
-- 
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



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to