內網聯網。
大家好,我在用虛擬機做組局域網實驗,有問題向大家請教。
主機系統是debian,虛擬機軟件用qemu,虛擬機操作系統是Win7。
虛擬機A帶網卡B和C,虛擬機D帶網卡E和F,
網卡B和網卡F用user模式(VMware的NAT模式),但F禁用了聯網,B聯網了。
網卡C和網卡E用socket模式的mcast模式。
A機能上網,D機不能上網,網卡C和E設置在同一網段,A機和D機可互相ping通,也可相互開遠程桌面。
希望D機通過A機上網。
A機"ipconfig /all"結果Windows IP Configuration
Host Name . . . . . . . . . . . . : bridge
Primary Dns Suffix. . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Red Hat VirtIO Ethernet Adapter #2
Physical Address. . . . . . . . . : AA-12-F7-05-0C-FB
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::7040:f587:513b:7e4b%12(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.15(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, April 26, 2015 10:22:52 AM
Lease Expires . . . . . . . . . . : Monday, April 27, 2015 10:22:52 AM
Default Gateway . . . . . . . . . : 192.168.0.2
DHCP Server . . . . . . . . . . . : 192.168.0.2
DHCPv6 IAID . . . . . . . . . . . : 296354420
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-CD-F8-D1-42-02-8F-87-8D-85
DNS Servers . . . . . . . . . . . : 192.168.0.3
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Red Hat VirtIO Ethernet Adapter
Physical Address. . . . . . . . . : 12-12-FD-ED-F0-66
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::505:53ff:f3ed:1268%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.12(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 239207055
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-CD-F8-D1-42-02-8F-87-8D-85
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{8D159EBD-037B-418C-878C-AEEBEBBFF3F7}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{EA0B557E-18D4-4D8F-8507-E7B8E66BE5CC}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes"Red Hat VirtIO Ethernet Adapter #2"是網卡B,"Red Hat VirtIO Ethernet Adapter"是網卡C。
A機"route print"結果===========================================================================
Interface List
12...aa 12 f7 05 0c fb ......Red Hat VirtIO Ethernet Adapter #2
11...12 12 fd ed f0 66 ......Red Hat VirtIO Ethernet Adapter
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway InterfaceMetric
0.0.0.0 0.0.0.0 192.168.0.2 192.168.0.15 5
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1255.255.255.255 On-link 127.0.0.1 306
127.255.255.255255.255.255.255 On-link 127.0.0.1 306
192.168.0.0 255.255.255.0 On-link 192.168.0.15 261
192.168.0.15255.255.255.255 On-link 192.168.0.15 261
192.168.0.255255.255.255.255 On-link 192.168.0.15 261
192.168.1.0 255.255.255.0 On-link 192.168.1.12 261
192.168.1.12255.255.255.255 On-link 192.168.1.12 261
192.168.1.255255.255.255.255 On-link 192.168.1.12 261
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.12 261
224.0.0.0 240.0.0.0 On-link 192.168.0.15 261
255.255.255.255255.255.255.255 On-link 127.0.0.1 306
255.255.255.255255.255.255.255 On-link 192.168.1.12 261
255.255.255.255255.255.255.255 On-link 192.168.0.15 261
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 261 fe80::/64 On-link
12 261 fe80::/64 On-link
11 261 fe80::505:53ff:f3ed:1268/128
On-link
12 261 fe80::7040:f587:513b:7e4b/128
On-link
1 306 ff00::/8 On-link
11 261 ff00::/8 On-link
12 261 ff00::/8 On-link
===========================================================================
Persistent Routes:
NoneD機"ipconfig /all"結果Windows IP Configuration
Host Name . . . . . . . . . . . . : server
Primary Dns Suffix. . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Red Hat VirtIO Ethernet Adapter #2
Physical Address. . . . . . . . . : AA-22-6D-13-10-AF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::919d:88a4:e409:25cc%12(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.15(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, April 26, 2015 10:22:37 AM
Lease Expires . . . . . . . . . . : Monday, April 27, 2015 10:22:37 AM
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 192.168.0.2
DHCPv6 IAID . . . . . . . . . . . : 296354420
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-CD-F8-D1-42-02-8F-87-8D-85
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Red Hat VirtIO Ethernet Adapter
Physical Address. . . . . . . . . : 12-22-67-44-59-51
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::f02a:f138:fbf3:b3e5%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.22(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 239207055
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-CD-F8-D1-42-02-8F-87-8D-85
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{8D159EBD-037B-418C-878C-AEEBEBBFF3F7}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{EA0B557E-18D4-4D8F-8507-E7B8E66BE5CC}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix. :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes"Red Hat VirtIO Ethernet Adapter"是網卡E,"Red Hat VirtIO Ethernet Adapter #2"是網卡F。
D機"route print"結果===========================================================================
Interface List
12...aa 22 6d 13 10 af ......Red Hat VirtIO Ethernet Adapter #2
11...12 22 67 44 59 51 ......Red Hat VirtIO Ethernet Adapter
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway InterfaceMetric
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1255.255.255.255 On-link 127.0.0.1 306
127.255.255.255255.255.255.255 On-link 127.0.0.1 306
192.168.0.0 255.255.255.0 On-link 192.168.0.15 261
192.168.0.15255.255.255.255 On-link 192.168.0.15 261
192.168.0.255255.255.255.255 On-link 192.168.0.15 261
192.168.1.0 255.255.255.0 On-link 192.168.1.22 261
192.168.1.22255.255.255.255 On-link 192.168.1.22 261
192.168.1.255255.255.255.255 On-link 192.168.1.22 261
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.22 261
224.0.0.0 240.0.0.0 On-link 192.168.0.15 261
255.255.255.255255.255.255.255 On-link 127.0.0.1 306
255.255.255.255255.255.255.255 On-link 192.168.1.22 261
255.255.255.255255.255.255.255 On-link 192.168.0.15 261
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 261 fe80::/64 On-link
12 261 fe80::/64 On-link
12 261 fe80::919d:88a4:e409:25cc/128
On-link
11 261 fe80::f02a:f138:fbf3:b3e5/128
On-link
1 306 ff00::/8 On-link
11 261 ff00::/8 On-link
12 261 ff00::/8 On-link
===========================================================================
Persistent Routes:
None請問要如何設置才能讓D機通過A機上網?
页:
[1]