I have installed vmware server 2 in Ubuntu Server 8.04 with both Bridged Network and NAT. Both VM Networks are the default ones and are configured to use my wifi.
The problem is that within my VMs, I am unable to reach the Internet, nor the LAN.
Facts:
Ubuntu host can access the network without problems from the wifi.
This machine has 2 network cards. An Ethernet and a wifi.
Ethernet is down as I only use wifi here.
VMs can access the Internet and NAT LAN without problems.
vmware's Bridge Network is configured to ath0.
I have stoped and started vmware and the problem continues.
My Configuration:
At /etcnetwork/interfaces:
-
The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.250
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.2.1
dns-search intranet.local
But, as I am not using ethernet, I configure wifi later at /etc/rc.local:
-
Ensure ethernet is down. We do not use it here.
ifconfig eth0 down
modprobe ath_pci
/usr/local/bin/wlanconfig ath0 destroy
/usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
iwconfig ath0 essid "belkin01"
iwpriv ath0 authmode 1
iwconfig ath0 key za1855racb2e41c1cc195d584
ifconfig ath0 192.168.2.101 netmask 255.255.255.0 up
route add default gw 192.168.2.1
Result from ifconfig at host:
-
ath0 Link encap:Ethernet HWaddr 00:13:46:e4:45:fb
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::213:46ff:fee4:45fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40108 errors:0 dropped:0 overruns:0 frame:0
TX packets:36648 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29812811 (28.4 MB) TX bytes:5725381 (5.4 MB)
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:4458 errors:0 dropped:0 overruns:0 frame:0
TX packets:4458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3953327 (3.7 MB) TX bytes:3953327 (3.7 MB)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:172.16.58.1 Bcast:172.16.58.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:UNSPEC HWaddr 00-13-46-E4-45-FB-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:280969 errors:0 dropped:0 overruns:0 frame:1362
TX packets:38886 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:52930970 (50.4 MB) TX bytes:6932791 (6.6 MB)
Interrupt:20