PDA

View Full Version : Tell me locate my ip address



tech291083
25th May 2013, 12:52 PM
Hi Friends,

I am using a router that enables all the 4 pcs in my place to access the internet simultaneously. But here is what I get as an output to a known command called ifconfig in a terminal on one of my pcs running Fedora 18 distro. I do not get to see the ip address of my connection. The one in the second paragraph starting with p18p1 has a line with the address 192.168.0.101, which as I understand has been assigned to this pc by the router itself. Another ip (127.0.0.1) in the 2nd line of the first paragraph of the output starting with the word lo:flags also seems to point to localhost or something else may be. And the 3rd ip address (192.168.122.1) mentioned in the last paragraph of the output starting with the word virbr0 is also beyond my understanding. So please help me understand all these 3 ip addresses. I generally use a website to determine my ip such as the below mentioned one. Also let me know as to how I can determine my MAC address. Thanks a lot.

http://whatismyipaddress.com/


[john@localhost ~]$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 41296 bytes 2072333 (1.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 41296 bytes 2072333 (1.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

p18p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.101 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::52e5:49ff:fe49:9176 prefixlen 64 scopeid 0x20<link>
ether 50:e5:49:49:91:76 txqueuelen 1000 (Ethernet)
RX packets 78711 bytes 101410645 (96.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 60434 bytes 6117364 (5.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 3 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:e8:d9:e2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 1414 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0



---------- Post added at 04:52 AM ---------- Previous post was at 04:43 AM ----------

This is how I just tried in order to know my MAC addess, but there seem to be 2 of them on the same machine, please help me understand this situation. I know nothing about networking. Thanks.



[john@localhost ~]$ ifconfig |grep -i ether
ether 50:e5:99:45:91:76 txqueuelen 1000 (Ethernet)
ether 52:22:00:e7:d9:e2 txqueuelen 0 (Ethernet)

vallimar
25th May 2013, 02:18 PM
You have two MAC addresses because it looks like you have two NIC's. I'm guessing one wired, and one wireless.

Also, since your router is handling your external internet feed, check your router for the external IP. It probably has a webserver you access for configuration purposes and should have a status page to tell you what the ISP supplied IP address is.

Chilly Willy
25th May 2013, 06:06 PM
As for the ISP IP address...
IIRC, there are some add-ons for Firefox (or were) & I think, for Gnome, too.

Some sites will tell you as well, SHIELDS UP is one & is also good for checking the security of your setup.
I usually use this when I want to see if mine changed. It beats connecting into my router just for that.
But mine doesn't really change. Once in a "blue moon", maybe, so once recorded, I pretty much have it.

As stated, your router will give you all the info you are asking, except [maybe] the MAC of the NIC's on the computers, but for the most part, the ROUTERS MAC will be the one you'll want to know.
The listing of the MACS you give, I'd say the one listed with the ZERO is the wired, as in "eth0" - your NETWORK SETTINGS will give you this as well.

marko
25th May 2013, 06:19 PM
The problem you're seeing is that the router that connects to your IP is network translating your 192.168.*.* host addresses to the actual on the internet address that ISP gives you.

Besides using something like showip.net or www.howtofindmyipaddress.com/ (http://www.howtofindmyipaddress.com/)
the only other way is to access the web page in your router (usually at 192.168.1.1) and look at what it says the external (red/gateway) IP is.

I'm using ipcop.org router, for it I can see the IP as the "ppp0 gateway address" in the network status page of its web interface. It also shows in the ipcop home page

The "lo" interface is just a local 'loopback' interface used for X Windows and other internal system stuff, it has no usage in networking outside of the host

gurutech
25th May 2013, 06:28 PM
The 127.0.0.1 IP is your "localhost" address - that usually doesn't leave your machine. If you can't ping that IP, then your TCP/IP stack is corrupted and you would need to fix it.

The p18p1 interface is your wired ethernet interface - the one you use to connect to the internet.

The vibr0 interface is your "virtual" interface. It appears you have some sort of "VMWare" installed on your computer. The number of "Rx" packets shown on this interface is 0, so you aren't receiving anything on this interface (which is normal if you aren't using VMWare).

sidebrnz
26th May 2013, 03:02 AM
If you're curious about your connection speed, check here: http://www.abeltronica.com/velocimetro/pt/?idioma=uk&newlang=uk It's a very nice free speed test that also gives you your public IP address. (If it didn't I'd not have mentioned it.)

Gödel
26th May 2013, 03:22 AM
You need to use the gui interface for networks settings.

Gnome have decided that terminal based stuff is bad, and we really need a gui for everything

tech291083
27th May 2013, 02:59 PM
Also, since your router is handling your external internet feed, check your router for the external IP. It probably has a webserver you access for configuration purposes and should have a status page to tell you what the ISP supplied IP address is.

Yes there is a status page for my router which is http://192.168.1.1 and I can get the real ip and MAC addresses of all the pcs (including that of the router itself) connected to this router.

Thanks.