I just read the code for the virtual ethernet device.
The implementation is socket based. That's why it
needs IP address. I think I can use it for some basic
testing. For real device, I don't need to configure IP
address. But to use virtual device, I need to
configure IP address, and then call dev_open. After
that, everything else should be the same as real
device. The IP thing doesn't interfere with the normal
operation of the virtual device. If the driver needs
to use more than one virtual interface (they should be
in different private network) to send packets to other
virtual machines, the packets will be in the same
channel. I don't know if I can use: um_eth_net_util
tap1 100 to get second private network. If I can do
that, I can test all the driver in UML.
--- Jeff Dike <jdike@...> wrote:
> xzgalaxy@... said:
> > I am wondering if I can use two UML on the same
> machine, and configure
> > them to send ethernet frames to each other. For
> UML homepage, it seems
> > that I have to set up IP address so that host
> machine can forward
> > packets between interfaces.
> The UMLs are separate machines (from each other and
> the host), so their
> network interfaces need different IP addresses.
> Jim Leu and Lennert Buytenhek could fill you in
> better than I on the details,
> but that's the general idea.
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.