LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2017, 11:28 AM   #1
savleen
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
Query about usage of ip address


I have Apache in my Linux VM on Windows .... While trying to map ip address to fqdn .I don't know which ip address to use in port forwarding (host /guest/localhost) , in /etc/host and a complete process of mapping. My IP address in ifconfog is 10.0.2.15
 
Old 08-22-2017, 12:07 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Wikipedia has some fairly good explanations of Network Address Translation and port-forwarding.
Please take a little time to look into LAN, WAN, Internet and other terms with IP version 4 in mind.
 
Old 08-22-2017, 12:12 PM   #3
savleen
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
i have tried with almost everything from google and youtube. still not clear with things made me post it to this site
 
Old 08-22-2017, 12:24 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Just please read what NAT means, what port-forwarding is and what DHCP and DNS are. There's no need to remember the numbers and calculations given, unless you want a career in networking, but you need to understand what a LAN is, what a NAT does and why that is important as well as taking in as much as you can about IP addresses in general. If you really annot get to the bottom of it then there are courses to take and people to pay to learn but it really is not that complicated.

Last edited by 273; 08-22-2017 at 12:25 PM.
 
Old 08-22-2017, 02:41 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
First of all, private address space, i.e. 10.0.0.0/8, have no fqdn associated with them. So, your are missing information that is fundamental to Linux administration, and which is very easy to find online.

To reinforce what 273 has noted, you must learn at the very least: DNS, NAT, DHCP, and private address space. You'll find it's very simple just using google.
 
Old 08-23-2017, 01:09 AM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 748

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Maybe like this [?]: https://www.linuxquestions.org/quest...8/#post5750940
 
Old 08-23-2017, 01:15 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,490

Rep: Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532
Quote:
Originally Posted by savleen View Post
i have tried with almost everything from google and youtube. still not clear with things made me post it to this site
Actually it is not a question, not a request and even it is not a problem - from my side. If you have any problem, question, issue please post it including all the related information. Otherwise I can hardly help you because most probably you have already tried what I'm going to tell you.
 
Old 08-23-2017, 03:56 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,839

Rep: Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370
There may be a slight confusion here maybe. The VM has a network configured by the name/term/phrase of "NAT".
Should you want to access via internet...
You also need to use that term for the router or modem access to wan. What you need to do at router is translate the wan IP and port to the lan side. That is called NAT but really it's PAT as well. Port address. By the way, you also need to consider if you have a dynamic ip address and if your isp blocks ports.

I might be tempted to change the vm to bridged.

Two places of concern on NAT or bridged choice in vm exit. One is router and two is host. Might as well add in client linux. All need to be in line for both IP addresses and port open and translated as well as any firewall based on programs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Query regarding usage of Gcov shradhas Linux - Newbie 1 04-10-2012 02:50 PM
Query: Embedded System - Total Memory Usage EmbeddedSteve Linux - Embedded & Single-board computer 1 08-20-2010 12:40 PM
Query regarding libnetfilter_queue usage vragukumar Linux - Networking 1 01-08-2010 06:29 PM
iconv usage query davelms Linux - Newbie 7 02-26-2009 01:37 PM
QUERY: concurrent usage of multi-WLAN cards kevingpo Linux - Software 0 12-21-2004 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 PM.

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