On Thursday 04 May 2006 23:07, Nic wrote:
> ")

> > Improvements:
> > a) there is dhcp-fwd which forwards DHCP requests from one Ethernet piece
> > to another
>
> Last time I tried a dhcp proxy it didn't work. I was under the
> impression that there was a problem with DHCP packets as far as the
> TUN/TAP went... but I may be wrong.

TAP interfaces (not tun ones) carry standard Ethernet frames,no more and no 
less.

> > b) pre-setup a tap0 interface (possibly you'll want to run uml_switch to
> > connect all UMLs to this tap0 device) so that you can run the DHCP server
> > before starting UMLs.

> Hmmm... This sounds good.

> So if I do:

>   tunctl -t mytap

> then start the dhcp server listening on that device:

>   dhcpd mytap

> then every UML I want to start looks like this:

>   mykernel ... eth0=tuntap,mytap

> then inside the VM I'll be able to dhcp to bring up their interfaces?
Yes, this should work, possibly some further config is needed (dunno dhcpd 
syntax) but this is the idea. _HOWEVER_ you need explicit MAC addresses as 
otherwise all UMLs will end up with the same MAC: when the interface it's 
brought up the MAC is set as fe:fd:<the 4 IP bytes>, which works nicely with 
ifconfig eth0 $ip, but isn't nice with ifconfig eth0 up,since they all get 
the same IP.
-- 
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



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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