LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-29-2016, 09:16 AM   #1
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Rep: Reputation: 18
Help understanding networking


I'm not sure how to label this, so I'll just explain. I have an ubuntu VM running from Vagrant on my laptop. The vagrant ubuntu apache2 has an ip of 10.0.2.15. My laptop is running with 192.168..... If I understand these are two different CIDRs correct? How can I get the 192.168.... to pull up the apache2 server, on 10.0.2.15 in the browser of the ubuntu laptop running on the 192.168....?
 
Old 07-29-2016, 02:56 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Forget cidr.

There are four ways to get networking on common VM's.

One is bridged. (host ip range goes on to client)
Two is NAT. (the virtual ip nic is behind a virtual router) your situation
Three is a VM only network. hope you don't have that, only vm's will talk to each other.
Lastly is no networking.

Generally the host knows that it has a special network and will route traffic correctly to the client even in NAT. However there can be problems all over the setup from permissions to ports.

Many people tend to use Bridged to overcome this.

Usually you can get either Bridged or Nat to work correctly.
 
1 members found this post helpful.
  


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
Understanding networking MTK358 General 14 06-23-2011 08:44 PM
How do I know if I have a technical understanding of TCP/IP networking and network ar abefroman Linux - Networking 5 06-01-2008 10:49 AM
LXer: Networking 101: Understanding Tunneling LXer Syndicated Linux News 0 08-04-2006 12:33 PM
Understanding Basic Networking carlosinfl Linux - Networking 3 05-05-2006 04:52 PM
Help with understanding networking... caffeinelegacy Linux - Networking 9 09-09-2003 03:29 AM

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

All times are GMT -5. The time now is 07:06 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