How can I find my Internet Protocol Address
I just want to see my Internet Protocol address
|
Either run (for information on all ethernet devices)
Code:
ifconfig Code:
ifconfig eth0 Welcome to LQ! |
Almost the same result, but in "new" style.
Code:
ip addr show |
Quote:
|
Quote:
In general, it could work as a replacement for a majority of different Unix network commands. It allows to operate with IP addresses and aliases, routes, etc. Understands short abbreviations of commands, such as Code:
ip addr show = ip ad sh Some examples. Code:
ip addr add 10.0.0.10/16 dev eth0 I think it's quite good replacement for old Unix network commands. Edit: I forget about the main command: Code:
ip help |
Of course, the OP probably wants his external address.
Getting that from the command line is a little tricky. I've seen it demonstrated, but can't remember how. One could of course look at the main Router Page in a browser, but for most non-technical people, looking at one of the 40 gazillion web pages that display it is probably the easiest. WhatIsMyIPAddress.com might work. Edit: Oops, sorry! B0uncer already said that. |
Quote:
this "ip" command does not work 4 me?? |
If he's trying to get his external IP from the command line he can use wget:
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' |
|
Quote:
|
Quote:
|
Hi,
Quote:
Code:
excerpt from 'man ip' |
Quote:
Code:
sudo ip addr show |
Quote:
ta0kira |
All times are GMT -5. The time now is 11:04 AM. |