From: Stefano M. <ste...@op...> - 2006-02-20 10:45:46
|
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.b= z2 >=20 > When I boot my vmlinux, it gives out this error message: > Configuring network interfaces: ip: Cannot find device "eth0" >=20 > And we can expect, from within UML too, it shows that the device is not f= ound. >=20 > 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]=20 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 --=20 Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> http://etinarcadiaego.dyndns.org -- http://www.stex.name |