On Thu, Feb 16, 2006 at 01:57:34PM -0500, Nithin B R wrote:
hi All,
> I am trying to bring up networking on my UML. I am using the root
> filesytem provided here:
> http://www.coherenthosting.com/prj/uml/henrique/pool_h01/fs_deb3B_2.ex2.bz2
> 
> When I boot my vmlinux, it gives out this error message:
> Configuring network interfaces: ip: Cannot find device "eth0"
> 
> And we can expect, from within UML too, it shows that the device is not found.
> 
> The FAQs do not talk about how I can add the eth0 interface. Looks
> like this is a very minor problem. Can anyone pls provide me some
> pointers.

you need to configure the network on both host [1] and uml image [2], for
instance:

[1] 
iface tap0 inet static
address 10.0.1.99
netmask 255.255.255.0
network 10.0.1.0
broadcast 10.0.1.255
up echo 1 > /proc/sys/net/ipv4/ip_forward
up iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
pre-up tunctl -u <your-user>

[2]
auto eth0
iface eth0 inet static
address 10.0.1.100
netmask 255.255.255.0
network 10.0.1.0
up route add -net 0.0.0.0 dev eth0
up route add -net 0.0.0.0 gw <your-gateway-to-internet>

Remember that your user must belong to the uml-net group.

Try again and feed us back, please

Cheers

SteX
-- 
Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]>
http://etinarcadiaego.dyndns.org    --     http://www.stex.name

Attachment: signature.asc
Description: Digital signature

Reply via email to