Link to home
Start Free TrialLog in
Avatar of Oramcle
Oramcle

asked on

How can I network between these two VMs on VMWare workstation 8

Hypervisor:  VMWare workstation 8
Two VMS:   2 CentOS server each 400 MB RAM (myserver & myclient)


How can I network between these two VMs?
I have updated the hostname to myserver & myclient and update /etc/sysconfig/network file for persistence. If I ping localhost   it is showing same IP address for both machine.

No how can I assign the different IP to each VMs?
How can I make each machine to talk ?
How can I ssh from one VM to another?

My networking rating 4 out of 10
My Unix rating 5 out of 10
Avatar of coolsport00
coolsport00
Flag of United States of America image

Do you want them on the 'external network' that sees your workstation 8 host, or just local between the VMs? If local between just the VMs (and your desktop/laptop), you can choose 'host-only' on the VM's network adapters. The VMs won't be able to get to Internet, nor will any device external to your laptop/desktop will be able to see the VMs. Just make the VMs DHCP. Workstation 8 has a built-in DHCP in it that disperses IPs to your VMs.

~coolsport00
You can change the NIC settings on the HOST from NAT to BRIDGED and it will pick up whatever your DHCP server is using for your host machine.
WS8.JPG
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Sorry, having difficulties with new EEv10!

Either setup the network interface in the VMs to

(some pictures to help you visualize, what each mode is!)

1. NAT MODE

User generated image
2. HOST-ONLY MODE

User generated image
3. BRIDGED MODE

User generated image
Avatar of Oramcle
Oramcle

ASKER

Thank you all

I am trying to connect just local between the VMs.
so that i can practice NFS , NIS  and all  having one client & other as server .
when i try BRIDGED mode i am able to connect between the machine. I am running this machine on text only mode when i ping www.ibm.com  it is not pinging so i believe that it is not seeing external site is that right?
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Oramcle

ASKER

can you ping 158.152.1.222?   yes


if using bridged mode, are you using the same IP network as the host or using DHCP?
I am doing ifconfig -a(Attached image) and taking IPaddres BIG SORRY! i am not sure where to check for DHCP IP address.


do you have a default gateway specified?
How to find this  SORRY to make you take networking class!

can you resolve domain names e.g. www.ibm.com 
When i ping www.ibm.com the 100% data loss is that mean so it is not resolving! is that right !

pardon me  & thank you for your help.
clientifconfig.gif
okay if you can ping 158.152.122, this is an internet address.

so.

1. internet is okay
2. default gateway is okay
3. ip address are okay
4. routing is okay
5. its possible DNS servers are not set.

You need to configure DNS servers on your Centos Servers.

usually this could be your router IP address which is the same as your default gateway, dhcp server, or DNS servers for your ISP.

But networking between VMs should be working okay.

You just have no DNS resolution for internet.
Avatar of Oramcle

ASKER

1. internet is okay

which mean i can install new software using yum

yum install some-utils some-utils-lib   Right?



Thank you very much for your help (Honestly I mean it). Oramcle
well internet connectivity is okay.

but you need to ADD DNS servers you can resolve domain names yum will likely fail.

see the above to add your name servers.
Avatar of Oramcle

ASKER

how can i find my Primary and Secondary Domain Name server?


is that some thing from my internet provider details?
these should be available from your ISP, you should see them in your router configuration, and if you use DHCP on your router, DHCP clients may list these IP addresses.
Avatar of Oramcle

ASKER

Thank you
Avatar of Oramcle

ASKER

The best