LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-16-2016, 07:39 AM   #1
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Rep: Reputation: Disabled
ifconfig not showing ip address


I am looking to install openvpn.

Apparently, ifconfig will show my ip address under eth0.
However, the
Code:
inet addr:192.xxx.1.xx
is not my ip address.

Tutorials on openvpn seem to be saying the 'inet addr' must correspond with my ip address.

So what will I need to do before even installing openvpn?

Last edited by trumpforprez; 11-16-2016 at 09:46 AM.
 
Old 11-16-2016, 08:41 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
192.168.1.98 is a valid private address, this is what you get behind a NAT router.
 
Old 11-16-2016, 08:56 AM   #3
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
192.168.1.98 is a valid private address, this is what you get behind a NAT router.
Thank you. So what is the command to find my correct ip address on linux?
I can get this info from websites but how do I get from my OS?

What is the point of ifconfig showing me a private address when the net can easily access my real ip?

Also, when I have to input my ip with openvpn, which ip do I choose?
The valid private address or my real ip address?
 
Old 11-16-2016, 09:05 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I think you have some reading to do. Start here.
 
Old 11-16-2016, 09:24 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you shouldn't give out your actual IP address

this on is not obtainable but nevertheless better safe then sorry.

Last edited by BW-userx; 11-16-2016 at 09:30 AM.
 
Old 11-16-2016, 09:34 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.
 
Old 11-16-2016, 09:54 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Emerson View Post
My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.
whatever dude, I am happy you can sleep good at night knowing your protected.
 
Old 11-16-2016, 09:56 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
whatever dude, I am happy you can sleep good at night knowing your protected.
This makes two pointless posts in this thread. Are you posting to increase your post count?
 
Old 11-16-2016, 09:58 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Emerson View Post
This makes two pointless posts in this thread. Are you posting to increase your post count?
NOPE just going by what I've read on the internet as a rule of thumb.

you want to talk about pointless post look at this thread, a personal conversation between two with nothing to do with the OP

http://www.linuxquestions.org/questi...33#post5631133
just speculation on the possibilities .

Last edited by BW-userx; 11-16-2016 at 10:00 AM.
 
Old 11-16-2016, 10:01 AM   #10
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Well now I don't know what my ip address is.

On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.

But why is ifconfig giving me a different ip address?

Also, does anyone not have openvpn?
I thought almost everyone would have it!
 
Old 11-16-2016, 10:09 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by trumpforprez View Post
Well now I don't know what my ip address is.

On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.

But why is ifconfig giving me a different ip address?

Also, does anyone not have openvpn?
I thought almost everyone would have it!
So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.
 
Old 11-16-2016, 10:13 AM   #12
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.
I have looked up nat on Wikipedia.
It's just info on nat.

It doesn't explain why ifconfig gives the wrong ip address.
Also, I still don't know if I can proceed with installing openvpn because of a simple problem from the very beginning!
 
Old 11-16-2016, 10:18 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?

ifconfig will give you your IP address. gateway ip is for what

https://www.cyberciti.biz/faq/how-to...ay-ip-address/

Last edited by BW-userx; 11-16-2016 at 10:23 AM.
 
1 members found this post helpful.
Old 11-16-2016, 11:02 AM   #14
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?

ifconfig will give you your IP address. gateway ip is for what

https://www.cyberciti.biz/faq/how-to...ay-ip-address/
I am getting the same outputs as shown on your link when I use
Code:
route -n
and
Code:
netstat -r -n
I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.

So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.
 
Old 11-16-2016, 11:20 AM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by trumpforprez View Post
I am getting the same outputs as shown on your link when I use
Code:
route -n
and
Code:
netstat -r -n
I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.

So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.

key word
dynamic
as apposed to
static
 
  


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
ifconfig command not showing the ip details raju786 Linux - Server 1 11-13-2016 04:00 AM
ifconfig command not showing the ip details raju786 Linux - Server 3 11-13-2016 03:11 AM
ifconfig command not showing inet address barsaiyan Linux - Newbie 1 06-04-2012 03:27 PM
rtl8139 not showing in ifconfig C-Sniper Slackware 3 07-19-2007 03:31 AM
have 2ethernet cards. ifconfig showing 1. which one? dapeekay Slackware 7 07-21-2004 09:08 AM

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

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