|
求助,关于vmware设置上网的问题主系统为CentOS 4.4 Linux,IP为172.16.18.11,网关为空,装vmwareworkstation-5.5.1-19175
客系统为Winxp pro sp2,IP为172.16.68.128,防火墙已关
1.NAT方式设置联网,主、客系统能相互ping通且均能上网;
2.Host-only方式设置联网,主客系统也能相互ping通,主系统能上网但客系统无法上网,请问如何设置?谢谢
以下是两系统的设置:
主系统部分
$ cat /proc/sys/net/ipv4/ip_forward
1
$ /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0E:1F:02:4D:CE
inet addr:172.16.18.11 Bcast:172.16.18.255 Mask:255.255.255.0
inet6 addr: fe80::20e:1fff:fe02:4dce/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16242 errors:0 dropped:0 overruns:0 frame:0
TX packets:15603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14404153 (13.7 MiB) TX bytes:2170772 (2.0 MiB)
Interrupt:11 Base address:0xb400
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:12622 errors:0 dropped:0 overruns:0 frame:0
TX packets:12622 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3756934 (3.5 MiB) TX bytes:3756934 (3.5 MiB)
ppp0 Link encapoint-to-Point Protocol
inet addr:121.35.53.234 P-t-P:219.134.136.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:14370 errors:0 dropped:0 overruns:0 frame:0
TX packets:13413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:13785243 (13.1 MiB) TX bytes:1628141 (1.5 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:172.16.68.1 Bcast:172.16.68.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:579 errors:0 dropped:0 overruns:0 frame:0
TX packets:491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:172.16.72.1 Bcast:172.16.72.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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
$ ping -c 4 172.16.68.128
PING 172.16.68.128 (172.16.68.12 56(84) bytes of data.
64 bytes from 172.16.68.128: icmp_seq=0 ttl=128 time=1.43 ms
64 bytes from 172.16.68.128: icmp_seq=1 ttl=128 time=0.358 ms
64 bytes from 172.16.68.128: icmp_seq=2 ttl=128 time=0.372 ms
64 bytes from 172.16.68.128: icmp_seq=3 ttl=128 time=0.851 ms
--- 172.16.68.128 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 0.358/0.753/1.431/0.438 ms, pipe 2
$
*************************************************
客系统部分
C:\Documents and Settings\Administrator>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : vip-db8045361b3
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
Physical Address. . . . . . . . . : 00-0C-29-07-91-74
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 172.16.68.128
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.16.68.1
DNS Servers . . . . . . . . . . . : 172.16.68.1
202.96.134.133
C:\Documents and Settings\Administrator>ping 172.16.18.11
Pinging ? with 32 bytes of data:
Reply from 172.16.18.11: bytes=32 time=7ms TTL=64
Reply from 172.16.18.11: bytes=32 time<1ms TTL=64
Reply from 172.16.18.11: bytes=32 time<1ms TTL=64
Reply from 172.16.18.11: bytes=32 time<1ms TTL=64
Ping statistics for:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 7ms, Average = 1ms
C:\Documents and Settings\Administrator>ping www.163.com
Ping request could not find host www.163.com. Please check the name and try agai
n.
C:\Documents and Settings\Administrator> |
|