Results 1 to 5 of 5
Hi all,
I created VirtualBox (3.2) and installed Oracle Linux version 5 update 5. My host machine is Windows XP SP3.
I installed Oracle Linux ok. But I have a ...
- 12-15-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 2
Help me connect between Linux and Windows
Hi all,
I created VirtualBox (3.2) and installed Oracle Linux version 5 update 5. My host machine is Windows XP SP3.
I installed Oracle Linux ok. But I have a problem is: I can ping to other Windows machines from Linux but from other Windows machines I can not ping to Linux.
When create VirtualBox, my Network adapter choosen NAT type. And enable DHCP (dynamic IP address)
I list some infomations from Linux:
----ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:6D:07:7F
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe6d:77f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:968639 errors:0 dropped:0 overruns:0 frame:0
TX packets:280440 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1104146338 (1.0 GiB) TX bytes:25137275 (23.9 MiB)
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:2222 errors:0 dropped:0 overruns:0 frame:0
TX packets:2222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5482332 (5.2 MiB) TX bytes:5482332 (5.2 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)
----lspci -vnn
00:00.0 0600: 8086:1237 (rev 02)
Flags: fast devsel
00:01.0 0601: 8086:7000
Flags: bus master, medium devsel, latency 0
00:01.1 0101: 8086:7111 (rev 01) (prog-if 8a)
Flags: bus master, fast devsel, latency 0
I/O ports at d000 [size=16]
00:02.0 0300: 80ee:beef
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at e0000000 (32-bit, prefetchable) [size=32M]
00:03.0 0200: 8086:100e (rev 02)
Subsystem: 8086:001e
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 169
Memory at f0000000 (32-bit, non-prefetchable) [size=128K]
I/O ports at d010 [size=8]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device
00:04.0 0880: 80ee:cafe
Flags: bus master, fast devsel, latency 0, IRQ 9
I/O ports at d020 [size=32]
Memory at f0400000 (32-bit, non-prefetchable) [size=4M]
Memory at f0800000 (32-bit, prefetchable) [size=16K]
00:05.0 0401: 8086:2415 (rev 01)
Subsystem: 8086:0000
Flags: bus master, medium devsel, latency 64, IRQ 185
I/O ports at d100 [size=256]
I/O ports at d200 [size=64]
00:06.0 0c03: 106b:003f (prog-if 10)
Flags: bus master, fast devsel, latency 64, IRQ 177
Memory at f0804000 (32-bit, non-prefetchable) [size=4K]
00:07.0 0680: 8086:7113 (rev 0
Flags: bus master, medium devsel, latency 0, IRQ 9
00:0b.0 0c03: 8086:265c (prog-if 20)
Flags: bus master, fast devsel, latency 64, IRQ 169
Memory at f0805000 (32-bit, non-prefetchable) [size=4K]
00:0d.0 0106: 8086:2829 (rev 02) (prog-if 01)
Flags: bus master, fast devsel, latency 64, IRQ 185
I/O ports at d240 [size=8]
I/O ports at <ignored>
I/O ports at d250 [size=8]
I/O ports at <ignored>
I/O ports at d260 [size=16]
Memory at f0806000 (32-bit, non-prefetchable) [size=8K]
----mii-tool
eth0: no autonegotiation, 100baseTx-FD, link ok
Here, from Windows XP:
Windows IP Configuration
Host Name . . . . . . . . . . . . : le-thai
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 802.11a/b/g WLAN
Physical Address. . . . . . . . . : 00-21-00-00-E8-F4
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.11
DHCP Server . . . . . . . . . . . : 192.168.1.16
DNS Servers . . . . . . . . . . . : 203.119.36.106
203.162.57.108
Lease Obtained. . . . . . . . . . : Wednesday, December 15, 2010 8:23:50
AM
Lease Expires . . . . . . . . . . : Thursday, December 16, 2010 8:23:50
AM
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Intel(R) 82562GT 10/100 Network Conn
ection
Physical Address. . . . . . . . . : 00-1F-29-80-AE-75
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapte
r
Physical Address. . . . . . . . . : 08-00-27-00-10-70
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
If I use system-config-network to edit to static IP address, I can't ping to Windows machines. Plz help me.
- 12-15-2010 #2
you are using NAT, which means that your host is the router to your virtual network
if other machines are to ping this, you need to give them a route to that network, you can add routes to network adapters in their properties
otherwise, they have no idea how to get to the virtual machine network
- 12-16-2010 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 2
Thanks coopstah13 for reply,
As your guide, I use command system-config-network to edit network configuration by GUI.
From Network Configuration GUI, I choosen Edit and navigate Route tab then Add ... but you can said about some informations that I have to add ? I used (from Windows XP network configution):
+ Address: ??? <-- I must create a valid IP address ???
+ Subnet mask: 255.255.255.0
+ Gateway: 192.168.1.11
Can you help me about it ? thanks.
- 12-16-2010 #4
no, you have misunderstood
the windows machines that you are trying to ping from, to the linux virtualbox must have a route added
- 12-17-2010 #5Just Joined!
- Join Date
- Nov 2010
- Posts
- 13
Change the adapter mode to "Bridged" (see attached image), this would put the guest VM on the same network as the host. It would give the linux machine (guest) an 192.168.1.x IP


Reply With Quote