Can't have simultaneous access to the host and to the web
Posted: 24. Aug 2011, 10:03
Hi all,
I am experiencing a little problem. I can't seem to get a regular NAT interface and a host-only interface running simultaneously. Here is the contents of my /etc/network/interfaces:
This will allow me to connect to the VM via the host but the VM cannot ping out to any external servers. Commenting out eth1 will obviously stop host access to the VM but it will also allow the VM access outside.
Here is my ifconfig:
Any ideas what I'm doing wrong? Thanks!
I am experiencing a little problem. I can't seem to get a regular NAT interface and a host-only interface running simultaneously. Here is the contents of my /etc/network/interfaces:
Code: Select all
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# The host-only network for host access to this VM
auto eth1
iface eth1 inet static
address 192.168.100.101
netmask 255.255.255.0
Here is my ifconfig:
Code: Select all
eth0 Link encap:Ethernet HWaddr 08:00:27:99:1d:25
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe99:1d25/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2232 (2.2 KB) TX bytes:1864 (1.8 KB)
eth1 Link encap:Ethernet HWaddr 08:00:27:fa:14:8a
inet addr:192.168.100.101 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fefa:148a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:156 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18245 (18.2 KB) TX bytes:9927 (9.9 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)