LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2008, 10:20 AM   #1
Ramonvel
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Rep: Reputation: 0
iftop -- unable to get IP address for interface


Hi Guys,

I installed iftop to monitor bandwidth on my eth0 and maybe eth1 if necessary. But when I run iftop, this is what I get :

interface: nr0
Unable to get IP address for interface: nr0
ioctl(SIOCGIFADDR): Cannot assign requested address
MAC address is: 00:00:00:00:00:00
pcap_open_live(nr0): bind: Network is down

The only interface that has an ip add is eth0, which I'm currently working on through SSH. I need help please.

Thanks in advance,
 
Old 05-27-2008, 10:43 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
It appears to think that you have an interface named "nr0".

Not sure what the heck nr0 is though. On doing a Google search I find old 1996 references to a device of that name for a software called "netrom". In turn I find "netrom" is a utility for Amateur Radio stuff. Do you have that installed?

According to man page iftop goes to the first interface it thinks you have configured. You can however specify the correct interface with the -i flag: e.g. iftop -i eth0
It shouldn't try nr0 if you do that.
 
Old 05-27-2008, 12:45 PM   #3
Ramonvel
LQ Newbie
 
Registered: Aug 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you very much for your help!

Hi jlightner,

Yes it works with the -i flag. I'm not really sure if I have anything that refers to Amateur Radio. I'd like to know if it's possible to do any modification on an iftop script to refer to eth0,eth1, etc.

However, your post, completely resolved my problem.

Thank you for your help,
 
Old 05-28-2008, 07:47 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What distribution and version of Linux are you running?

Is this a newly installed system?
 
  


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
How to get ip address associated with an interface ro0tless Linux - Networking 4 10-03-2011 12:18 PM
IP Address Limitation on one interface? mahmoud Linux - General 9 01-29-2008 02:58 AM
Could not get interface address for socket! karlilinux Linux - Networking 2 01-12-2006 04:11 AM
Getting IP address from an interface in C dravya Programming 2 05-25-2004 02:48 PM
How can I retrieve the IP address of an interface? kobilevi Linux - Networking 2 05-15-2001 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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