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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-22-2017, 11:28 AM
|
#1
|
LQ Newbie
Registered: Aug 2017
Posts: 4
Rep: 
|
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
|
|
|
08-22-2017, 12:07 PM
|
#2
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,681
|
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.
|
|
|
08-22-2017, 12:12 PM
|
#3
|
LQ Newbie
Registered: Aug 2017
Posts: 4
Original Poster
Rep: 
|
i have tried with almost everything from google and youtube. still not clear with things made me post it to this site
|
|
|
08-22-2017, 12:24 PM
|
#4
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,681
|
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.
|
|
|
08-22-2017, 02:41 PM
|
#5
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
08-23-2017, 01:09 AM
|
#6
|
Member
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997
|
|
|
|
08-23-2017, 01:15 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,664
|
Quote:
Originally Posted by savleen
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.
|
|
|
08-23-2017, 03:56 PM
|
#8
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
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.
|
|
|
All times are GMT -5. The time now is 06:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|