Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
erm ifconfig quirkiness
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fzxdude
n00b
n00b


Joined: 13 Jun 2004
Posts: 72

PostPosted: Thu Sep 30, 2004 3:18 am    Post subject: erm ifconfig quirkiness Reply with quote

its up and running as we speak ... im posting via eth0 ...

im also noticing very poor performance

eth0 Link encap:Ethernet HWaddr 00:50:BA:49:06:BE
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe49:6be/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Thu Sep 30, 2004 4:01 pm    Post subject: Reply with quote

Check and see if /proc/net/dev exists and is populated. That's where the information displayed in ifconfig comes from. If it's not there you probably need to go back through your kernel config and go back over your network options to make sure they make sense -- use the gentoo defaults as a guide.

Fix the ifconfig problem first so we can see if you are getting a lot of errors or something else that's obvious.
Back to top
View user's profile Send private message
fzxdude
n00b
n00b


Joined: 13 Jun 2004
Posts: 72

PostPosted: Thu Sep 30, 2004 4:49 pm    Post subject: Reply with quote

at /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo:334951372 921333 0 0 0 0 0 0 334951372 921333 0 0 0 0 0 0
tunl0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
sit0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
eth0:75986930 793922 0 0 0 0 0 0 1342170283 1224312 0 0 0 0 0 0

the slow side of things turned out to be a bad nic on the other machine ... this one is seeing no probs outside ifconfig being empty

I have been monitoring it with the nms and it shows no errors at all that way ... but the other box has some here and there

cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 7209940 48262 0 0 0 0 0 0 7209940 48262 0 0 0 0 0 0
eth0:90771286325 61970781 88956 0 1 96980 0 0 2946489796 34136166 0 0 0 0 0 0

88956 err's for that one
Back to top
View user's profile Send private message
IhatemyISP
n00b
n00b


Joined: 23 Aug 2004
Posts: 14
Location: US Navy - Yokosuka, Japan

PostPosted: Fri Oct 01, 2004 2:47 am    Post subject: Reply with quote

aetius wrote:
Check and see if /proc/net/dev exists and is populated. That's where the information displayed in ifconfig comes from. If it's not there you probably need to go back through your kernel config and go back over your network options to make sure they make sense -- use the gentoo defaults as a guide.

Fix the ifconfig problem first so we can see if you are getting a lot of errors or something else that's obvious.

I'm having this same issue.

Here's the output of my /proc/net/dev:
Code:
monkey ian # cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
  eth0:3301846135 5917162    0    0    0     0          0         0 286931044 6611468    0    0    0     0       0          0
    lo: 2689592   49445    0    0    0     0          0         0  2689592   49445    0    0    0     0       0          0


Any ideas?
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Tue Oct 05, 2004 1:59 pm    Post subject: Reply with quote

hrmm, not much to go on then. ifconfig isn't a huge or complicated program, so this has to be a disconnect somewhere. Changes to the kernel would seem to not matter, because the data is populated, ifconfig just isn't able to read it. Restrictions on reading /proc would be a possibility, but I assume that you've tried it as root and it has the same problem. ifconfig doesn't really depend on anything except glibc -- I guess it's possible there's a problem there.

Permissions on /proc/net/dev maybe? Version of ifconfig (it's in the net-tools package)? Any unusual kernel patches or mods? Version of glibc? Did either of you try re-emerging net-tools? Anyone not on x86?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum