omarsawalhah
Contributor
Contributor

Need help with networking

I've installed linux guest machine with oracle10g RAC on winxp host, I am trying to

connect to my guest machine from the host but no way, anybody can help I will appreciate, pinging is not working also

I have two vm networks bridged and host-only.

here is my config

root@rac1 > ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:0C:29:E1:63:DA

inet addr:192.168.2.131 Bcast:192.168.2.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fee1:63da/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:748 errors:0 dropped:0 overruns:0 frame:0

TX packets:92 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:112425 (109.7 KiB) TX bytes:4032 (3.9 KiB)

Interrupt:10 Base address:0x1480

eth0:1 Link encap:Ethernet HWaddr 00:0C:29:E1:63:DA

inet addr:192.168.2.32 Bcast:192.168.2.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

Interrupt:10 Base address:0x1480

eth0:2 Link encap:Ethernet HWaddr 00:0C:29:E1:63:DA

inet addr:192.168.2.31 Bcast:192.168.2.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

Interrupt:10 Base address:0x1480

eth1 Link encap:Ethernet HWaddr 00:0C:29:E1:63:E4

inet addr:10.10.10.31 Bcast:10.10.10.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fee1:63e4/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:2 errors:0 dropped:0 overruns:0 frame:0

TX packets:14 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:496 (496.0 b) TX bytes:756 (756.0 b)

Interrupt:15 Base address:0x1800

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:6348 errors:0 dropped:0 overruns:0 frame:0

TX packets:6348 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:5369756 (5.1 MiB) TX bytes:5369756 (5.1 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)

\----


this is from my host

C:\Documents and Settings\omar>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : omarlaptop

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Hybrid

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8

Physical Address. . . . . . . . . : 00-50-56-C0-00-08

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.0.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1

Physical Address. . . . . . . . . : 00-50-56-C0-00-01

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.11.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC

Physical Address. . . . . . . . . : 00-0A-E4-DF-2E-26

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 172.16.0.106

Subnet Mask . . . . . . . . . . . : 255.255.0.0

Default Gateway . . . . . . . . . : 172.16.0.1

DHCP Server . . . . . . . . . . . : 172.16.0.12

DNS Servers . . . . . . . . . . . : 172.16.0.12

213.42.20.20

195.229.241.222

Lease Obtained. . . . . . . . . . : Tuesday, February 27, 2007 10:45:51 AM

Lease Expires . . . . . . . . . . : Wednesday, February 28, 2007 10:45:51 AM

\----


and here my *.vmx file on the host

config.version = "8"

virtualHW.version = "4"

scsi0.present = "TRUE"

scsi0.virtualDev = "lsilogic"

memsize = "700"

MemAllowAutoScaleDown = "FALSE"

scsi0:0.present = "TRUE"

scsi0:0.fileName = "localdisk.vmdk"

ide1:0.present = "FALSE"

ide1:0.fileName = "auto detect"

ide1:0.deviceType = "cdrom-raw"

floppy0.present = "FALSE"

ethernet0.present = "TRUE"

usb.present = "FALSE"

sound.present = "FALSE"

sound.virtualDev = "es1371"

sound.fileName = "-1"

sound.autodetect = "TRUE"

displayName = "rac1"

guestOS = "rhel4"

nvram = "Red Hat Enterprise Linux 4.nvram"

disk.locking = "FALSE"

diskLib.dataCacheMaxSize = "0"

scsi1sharedBus = "virtual"

scsi2.present = "TRUE"

scsi2:0.present = "TRUE"

scsi2:0.fileName = "E:\vm\rac\sharedstorage\ocfs2disk.vmdk"

scsi2:0.mode = "independent-persistent"

scsi2:0.deviceType = "disk"

scsi2:1.present = "TRUE"

scsi2:1.fileName = "E:\vm\rac\sharedstorage\asmdisk1.vmdk"

scsi2:1.mode = "independent-persistent"

scsi2:1.deviceType = "disk"

scsi2:2.present = "TRUE"

scsi2:2.fileName = "E:\vm\rac\sharedstorage\asmdisk2.vmdk"

scsi2:2.mode = "independent-persistent"

scsi2:2.deviceType = "disk"

scsi2:3.present = "TRUE"

scsi2:3.fileName = "E:\vm\rac\sharedstorage\asmdisk3.vmdk"

scsi2:3.mode = "independent-persistent"

scsi2:3.deviceType = "disk"

scsi2.virtualDev = "lsilogic"

ide1:0.autodetect = "TRUE"

ethernet1.present = "TRUE"

ethernet1.connectionType = "hostonly"

scsi0:0.redo = ""

scsi2:0.redo = ""

scsi2:1.redo = ""

scsi2:2.redo = ""

scsi2:3.redo = ""

ethernet0.addressType = "generated"

ethernet1.addressType = "generated"

uuid.location = "56 4d fa ca f9 aa 05 63-76 5f 87 eb b9 e1 63 da"

uuid.bios = "56 4d fa ca f9 aa 05 63-76 5f 87 eb b9 e1 63 da"

ethernet0.generatedAddress = "00:0c:29:e1:63:da"

ethernet0.generatedAddressOffset = "0"

ethernet1.generatedAddress = "00:0c:29:e1:63:e4"

ethernet1.generatedAddressOffset = "10"

ide0:0.present = "TRUE"

ide0:0.fileName = "D:"

ide0:0.deviceType = "cdrom-raw"

workingDir = "."

ide0:0.startConnected = "TRUE"

sharedFolder.maxNum = "1"

tools.syncTime = "TRUE"

sharedFolder0.present = "TRUE"

sharedFolder0.enabled = "TRUE"

sharedFolder0.readAccess = "TRUE"

sharedFolder0.writeAccess = "TRUE"

sharedFolder0.hostPath = "C:\Software\Oracle Downloads\"

sharedFolder0.guestName = "tmp"

sharedFolder0.expiration = "never"

Reply
0 Kudos
KevinG
Immortal
Immortal

None of the IP's assigned in the guest are correct.

Reply
0 Kudos
omarsawalhah
Contributor
Contributor

thanks kevin,

just what should I do, I am not network expert, and I followed an oracle article to setup RAC 10g on VM machines, I don't want my RAC to be affected, since it uses also virtual IPs, and I can't use DHCP to genenerat guest IPs it is not recomended by oracle fot the sake of the RAC and the databse.please guide me through.

thanks in advance

Message was edited by:

omarsawalhah

Reply
0 Kudos
telfred
Expert
Expert

I'm no network specialist either however what needs to happen is for the ip address of the VM guest to be changed to something close enough for your subnet mask of 255.255.0.0 to work.

So the first two numbers of the VM guests ip address would have to be match those of the host ip address. As to how you change an ip address in Red Hat Enterprise Linux 4 others know far more than me.

Reply
0 Kudos
omarsawalhah
Contributor
Contributor

guys need your help in this

please reply

Reply
0 Kudos
RDPetruska
Leadership
Leadership

Well, if you want your guest to appear on your LAN just like any other physical PC, then you should set the VM's network connections to bridged mode. If that is the case, then the IPs should be on the same subnet as your physical NIC (172.16.0.x). If you want your guest to have network connection but be hidden from the LAN, then you should set the connection type to NAT. Then the IPs should be on the same subnet as the VMnet8 adapter (192.168.0.x). If you don't need a network connection for the guest at all, then set the connection type to host-only. Then the IPs should be on the same subnet as the VMnet1 adapter (192.168.11.x). As Kevin said in the first reply, none of the IPs you have set are in any of these ranges, and therefore will not work at all.

Reply
0 Kudos
omarsawalhah
Contributor
Contributor

Really Greate,

that clarifies alot of confusion I used to have regarding vm networking, but let me ask this question, as I stated before I have Oracle RAC installed and I don't want to change bridged and host-onlyl IPs I already have,

IS IT POSSIBLE THAT I ADD A NEW NAT CONNECTION TO MY VM WIHTOUT AFFECTING THE EXISTING ONES AND MAKE IT THE CONNECTION BETWEEN MY HOST AND GUEST?

appreciate your response

thanks

Reply
0 Kudos