LinuxQuestions.org
Help answer threads with 0 replies.
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 01-22-2007, 11:57 PM   #1
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Rep: Reputation: 15
Internal address?


Ok..

This is a pretty stupid question so humor me.

How do I find out my internal ip address?

External is whatismyip.com

but where can I find my internal ip address on Debian.

I tried ifconfig, but it just gives me my local loopback address (127.0.0.1)

What command do I need to find this out?

Thanks.
 
Old 01-23-2007, 12:04 AM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
"I tried ifconfig"

Do it again. Your ip will be listed. Example:

Code:
me@mymachine:~$ /sbin/ifconfig
ath0      Link encap:Ethernet  HWaddr 00:0F:B5:FB:F3:33
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
 
Old 01-23-2007, 12:23 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The internal address is actually localhost or 127.0.0.1. The IP address can be found by using ifconfig.
 
Old 01-23-2007, 12:41 AM   #4
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
127.0.0.1 ALWAYS points to yourself. Used on any computer, 127.0.0.1 will be the address of its own network card. It's hardwired in. If by internal IP, you mean your IP on the LAN, then it's given by the line inet "addr:192.168.0.4". Hope that helps
 
Old 01-23-2007, 12:42 AM   #5
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Yeah yeah I know that the internal is localhost and 127.0.0.1

But I'm trying to connect via ssh from another computer on the network, and I need the internal address to connect to it.

Because obviosly entering 127.0.0.1 will not do.

Here is what I get in ifconfig.

lo link encap: Local Loopback
inet addr:127.0.0.1 Mask: 255.0.0.0
inet 6 addr: ::1/128 Schope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1

And then the rx and tx packets but that isn't needed here.

And yes I can browse the internet using lynx, but I am having apt-get problems as well.
 
Old 01-23-2007, 12:44 AM   #6
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
Assuming you wrote that before seeing my post, refer to above
 
Old 01-23-2007, 12:52 AM   #7
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Yeah I found that post after I posted.

Yes maybe I didn't phrase that right.

I'm looking for my ip on the LAN.

And the intet addr: doesn't give that. It gives 127.0.0.1.
 
Old 01-23-2007, 01:13 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
Surely there's a listing for your ethernet card in the response to ifconfig?
 
Old 01-23-2007, 01:14 AM   #9
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
Nope. The output I posted above was exactly word for word using the ifconfig command.

I don't know what else to do.
 
Old 01-23-2007, 01:25 AM   #10
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
Can we see the output from "route" and "lspci" and "dmesg | grep eth"? Are your the administrator on that system, and are you running in some chroot sandbox where you don't have access to ethernet?
 
Old 01-23-2007, 01:33 AM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
From your other thread, it's clear that something is borked pretty good on your system. But, it's probably a good idea to try to address all of it in one thread, since whatever it is is probably causing it all.
 
Old 01-23-2007, 01:19 PM   #12
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
route output:

Kernel IP routing table
Destination Gateway Genmask Flags Metric ef Use Iface

lspci output:

Host bridge: VIA technologies, Inc. VT82C598 [Apollo MVp3] (rev 04)
PCI bridge VIA technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
ISA bridge: VIA technologies, Inc. VT82C596 ISA [Mobile South] (rev 06)
IDE interface: VIA technologies, INC. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE )rev 06)
USB Controller: VIA Technologies, INC. VT82xxxxx UHCI USB 1.1 Controller (rev 02)
Bridge: VIA Technologies, Inc. VT82C596 Power Management
Ethernet controller: Accton Technology Corporation SMC2-1211tx (rev 10)
Communication controller: PCTel Inc HSP Micromodem 56 (rev 01)
VGA compatible controller: ATI technologies Inc 3d rage IIC AGP (rev 7a)

dmesg | grep eth output:

eth0:Realtek RTL8139 at 0xea00, 00:e0:29:33:db:80, IRQ 11
eth0: Identified 8139 chip type RTL-8139A

I am the administrator of the system. I'm sitting right beside it.

I don't know what a chroot sandbox is. Care to explain?

Thanks a lot for all the help. It's a lot to go through

Cheers.
 
Old 01-23-2007, 03:41 PM   #13
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
Well, for some reason eth0 is down and of course as a result you have no route. Have you tried rebooting the machine to see if that gets it back in order? Unless you are manually shutting down eth0 for some reason, it should work. Run "ifconfig eth0 up" and give us the output from that. Also, give us the output from "cat /etc/network/interfaces".
 
Old 01-23-2007, 05:07 PM   #14
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
How is your network set up ? DHCP, static IP ?
As your dmesg output shows an ethernet module your card should be correctly set up. Just check the output of "lsmod" looking for a 8139too module or similar.

Configuring the NIC with a static IP
/sbin/ifconfig eth0 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
the broadcast address is not strictly necessary as it it guessed automatically by ifconfig.

Configuring the NIC with a dynamic IP
/sbin/dhcpcd -d -t 30

I don't know what distribution you're going to set up, so may be the path of your commands could be different (/usr/sbin or /usr/local/sbin ).
I strongly suggest you set up your NIC by the tool provided by your distro the get permanent settings.

Hope this helps
Ciao

PS I did not see you're using debian

Last edited by urka58; 01-23-2007 at 05:11 PM.
 
Old 01-23-2007, 05:42 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
"How is your network set up ? DHCP, static IP ?"

That's what I'm trying to find out by asking him to post the output from "cat /etc/network/interfaces".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Internal ip address will not stick unklekoolaid Linux - Networking 5 10-28-2006 03:23 PM
Routing a request to a internal ip address sbabcock23 Linux - Networking 2 08-25-2006 01:08 AM
Mail with Internal Ip address shipon_97 Linux - Newbie 1 07-04-2006 12:00 AM
internal modem loopback address sumathi Linux - Hardware 3 07-28-2005 07:50 AM
Seeing internal ip address behind firewall linuxboy69 Linux - Networking 1 11-20-2003 04:21 PM


All times are GMT -5. The time now is 02:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration