LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to find my ip adress? (https://www.linuxquestions.org/questions/debian-26/how-to-find-my-ip-adress-494410/)

erpe 10-21-2006 01:28 PM

How to find my ip adress?
 
I have my laptop and desktop pc connected to a router. In order to run NFS I need to know it's ip adress. I used ifconfig to do this, unfortunatly this gives a wrong ip adress for my /etc/exports file. I could find the right adress in /var/log syslog. How do I find the correct ip adress in Debian?

ZaphyR 10-21-2006 01:55 PM

you want to find the routers internal IP?
it is the same as your gateway IP

The Seeker 11 10-21-2006 02:16 PM

IP Chicken

erpe 10-21-2006 02:19 PM

Quote:

Originally Posted by ZaphyR
you want to find the routers internal IP?
it is the same as your gateway IP

I would like to find the ip of the laptop (for NFS) which differs from my pc ip. I thought I find it with ifconfig but this gives me the wrong ip :confused:

P.S. nice distro choice :D. Mine is exact the same.

erpe 10-21-2006 04:24 PM

I found the command:
Code:

ip addr
This reveals two inet adresses and of these is correct. How can it be that there are two inet displayed?


All times are GMT -5. The time now is 08:58 PM.