ip route add: Cannot find device "eth0"
Posted: 16. Jan 2013, 21:34
Hello!
I'm using three VMs:
Can somebody help me please to fill my routing table? Thank you!
Information
I'm using three VMs:
For the Dev and Example the routing is working fine and their routing tables seem to be configured correctly:192.168.56.101 Dev VM Debian 6 + Gnome Adapter 1 Nat Adapter 2 Host-only
192.168.56.102 Sandbox VM Debian 6 Adapter 1 Nat Adapter 2 Host-only
192.168.56.103 Example VM Debian 6 + Gnome Adapter 1 Nat Adapter 2 Host-only
root@devmv:/var/log/nginx# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.56.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
root@devmv:/var/log/nginx#
The Sandbox cannot be reached from Host (browser, SSH etc.) and has no access to the internet. It's routing table is empty:root@examplevm:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.56.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
root@examplevm:~#
For the Dev and the Example I had configured the routing over the GUI (a quick HowTo is here). The Sandbox has no GUI and now I'm trying to set the configs via command line:root@sandboxvm:~# route -n
root@sandboxvm:~#
Code: Select all
# ip route add 10.0.2.0/24 via 0.0.0.0 dev eth0
Cannot find device "eth0"
#Information
- VirtualBox Version: 4.2.6
- Host: Windows 7 64 bit
- Guests (alls the three): Debian 6.0.6 64 bit
- Log files: attached