LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-23-2015, 12:16 AM   #1
mangesh1987
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Rep: Reputation: Disabled
I am new to Linux, and I want to set up a basic client server configuration


1. I have installed two Linux6 OSs on virtual machine.
A. Server having ip=192.168.0.1 255.255.255.0 and hostname=server.com
B. Client having ip=192.168.0.2 255.255.255.0 and hostname=client.com
2. /etc/hosts made changes 192.168.0.1 server.com
192.168.0.2 client.com at both sides
3. On the virtual machine I selected as Bridged networking for both.

3.rpcbind and xnited is running iptables is disabled

But the question is server and client ping themselves, but not each other?
What is remaining?
when I ping client to server or server to client getting host unreachable
 
Old 12-23-2015, 02:48 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What's your virtual machine, vmware?
 
Old 12-23-2015, 02:59 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mangesh1987 View Post
What is remaining?
Gateway the same on both hosts?
 
Old 12-28-2015, 03:12 AM   #4
mangesh1987
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Its vmware
 
Old 12-28-2015, 03:15 AM   #5
mangesh1987
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
What's your virtual machine, vmware?
Its vmware
 
Old 12-28-2015, 12:46 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Do you have one machine with two VMs or two machines each with their own VM?
What does the rest of your network look like? Is everything on the 192.168.0.x subnet, or are they on another subnet and 192.168.0.x is dedicated to these VMs?

Last edited by suicidaleggroll; 12-28-2015 at 12:47 PM.
 
Old 12-28-2015, 10:34 PM   #7
mangesh1987
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Do you have one machine with two VMs or two machines each with their own VM?
What does the rest of your network look like? Is everything on the 192.168.0.x subnet, or are they on another subnet and 192.168.0.x is dedicated to these VMs?
one laptop->one VMware workstation -> two Linux os installed
Linux 1 I gave ip 192.168.0.1 ###.server.com
Linux 2 ip 192.168.0.2 ###.client.com
 
Old 12-29-2015, 04:00 AM   #8
Elizine
Member
 
Registered: Aug 2015
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
Hi,

As you have selected NAT as netwoking on both the instances it is not possible to ping each other.

If you want to ping client/server you should select Bridged networking or Internal networking

Reference https://www.virtualbox.org/manual/ch06.html
 
Old 12-29-2015, 09:52 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Elizine View Post
Hi,

As you have selected NAT as netwoking on both the instances it is not possible to ping each other.

If you want to ping client/server you should select Bridged networking or Internal networking

Reference https://www.virtualbox.org/manual/ch06.html
He did select bridged networking, it says so in the OP. I'm not sure where you saw that he was running NAT.
 
Old 12-29-2015, 09:53 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by mangesh1987 View Post
one laptop->one VMware workstation -> two Linux os installed
Linux 1 I gave ip 192.168.0.1 ###.server.com
Linux 2 ip 192.168.0.2 ###.client.com
And what about the rest of the network?
 
Old 12-29-2015, 02:48 PM   #11
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Quote:
one laptop->one VMware workstation -> two Linux os installed
I assume like. One VNware workstation is host and two Linux OS is guest. That means you request communication between host and guest.
The VMCI need be enabled to allow communication.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] Linux NTP Client Server Configuration firewallengineer Linux - Newbie 8 09-05-2013 12:29 PM
Basic Client / Server network jerzakie Linux - Networking 4 10-01-2005 05:29 AM
Linux Client Configuration for MS VPN Server friendklay Linux - Networking 0 01-31-2003 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration