bizhat
Contributor
Contributor

Access Guest OS in LAN

Hi,

My computer runs a Linux virtual server on VMware.

My IP in LAN is : 192.168.0.1

ipconfig on my pc is

\[quote]

Windows IP Configuration

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 192.168.42.1

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

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

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 192.168.241.1

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

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

Ethernet adapter LAN:

Connection-specific DNS Suffix . :

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

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

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

Ethernet adapter DATAONE:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 192.168.1.2

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

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

DATAONE is the LAN CARD that connect to DSL modem.

"Ethernet adapter LAN:" is the one that connect to all other computers on LAN, all other computers use this computer to connect to internet.

On The Guest Linux OS, ifconfig is

\[quote]

\[root@linux ~]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:E6:A7:03

inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fee6:a703/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:1000

RX bytes:7723 (7.5 KiB) TX bytes:11175 (10.9 KiB)

Interrupt:185 Base address:0x1080

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

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

collisions:0 txqueuelen:0

RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

\[root@linux ~]#

I used the Bridge network with LAN card "DATAONE" as other one "LAN" goes down when office is closed (all other pc's are in a different room).

I know if i use bridge network with NIC LAN, others on LAN will able to access the virtual LINUX installation. But i can't do that because the switch goes off, i still need to use the linux installation.

Is there any way i can allow pc's on LAN access my virtual machine ?

If i add some route on the pc's in LAN, it will able to access the virtual linux ?

Thanks,

Yujin

0 Kudos
3 Replies
KevinG
Immortal
Immortal

Just add a second network adapter to your VM Bridged to the second physical network adapter

0 Kudos
bizhat
Contributor
Contributor

That i know, i can bridge to the lan card, that is used to connect to LAN, so all pc's in LAN will able to access the virtual OS.

But my problem is, this LAN card is connected to a switch, that will get switched off at night. If that is switched off, i will not able to connect to guest OS from Host OS (can login in console, but network with host os will not work as Lan card get disconnected).

So i bridged with the LAN card that connect to DSL modem. This LAN card is always ON. Doing this, virtual OS is now only available to Host OS, not from LAN.

What i am asking is, if i add some route in other pc's in LAN, they will be able to use the Virtual OS ?

0 Kudos
bizhat
Contributor
Contributor

Here is picture of my desktop, with VMware and Network connections when the switch connect to other PC's are switched off.

http://img71.imageshack.us/img71/1580/vmwarebridgelannicid0.gif

It work well with the switch is on.

This is the reason i need to bridge to the NIC that connect to my DSL modem, that is always ON.

Now problem is others on LAN is not able to access the guest OS.

Any way to fix the problem ?

0 Kudos