LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2007, 10:30 AM   #1
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
ifconfig issue


Hi,
I am working on a implementing of network driver...

Say i hv driver nic0 and my driver is properly loaded for this device.
Now, when I do "ifconfig nic0".... It gives proper output... Now then I am doing some data transfer over it using iperf... then again I do "ifconfig nes0" and this time it gives segmentation fault....

I am using FC4 32bit and 2.6.11 Kernel..

Now, I thot if I have issue in my driver, I shud get crash and not Segfault...

So, I changed ifconfig binary.... I had other RHEL4u3 box... I took ifconfig binary from that....Surprisingly, it worked properly.


So, I am wondering
1. May be there can be some problem with ifconfig, but then why it worked for the first time?
2. For all other default NICs, it is working properly? why is it so?
3. In my case, only "ifconfig nic0" is not working (with default ifconfig binary), If i do "ifconfig" or "ifconfig -a", these are working fine...

Please shed some light.
 
Old 09-14-2007, 03:09 AM   #2
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
segmentation fault can be due to various reasons like driver,NIC or cable .can you post your ifconfig -a when this happens again.for ifconfig eth0 verify the corresponding interface file something like (etc/sysconfig/network-scripts/ifcfg-eth0)
 
Old 09-15-2007, 12:18 AM   #3
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185

Original Poster
Blog Entries: 2

Rep: Reputation: 31
Please find output of ifconfig -a

[root@qa26 sbin]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:48:57:51:EA
inet addr:192.168.54.26 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::230:48ff:fe57:51ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32662 errors:0 dropped:0 overruns:0 frame:0
TX packets:4862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3351363 (3.1 MiB) TX bytes:840046 (820.3 KiB)
Interrupt:58 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:30:48:57:51:EB
BROADCAST 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:66 Base address:0xa000

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:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5756 (5.6 KiB) TX bytes:5756 (5.6 KiB)

XXXXXXXX Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:10.168.54.26 Bcast:10.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::212:55ff:fe02:2c30/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:251 errors:0 dropped:0 overruns:0 frame:0
TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18308 (17.8 KiB) TX bytes:17081 (16.6 KiB)
Interrupt:74 Memory:cd5fe000-cd5ff000

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)




The device which is xxxxxx. I am talking about this.
If I do ifconfig eth0 --> I am getting proper result.
If I do ifconfig XXXXX --> I am NOT getting proper result.

Why is it so? And as I mentioned above both the commands work properly if i use binary from rhel4u3 32 bit machine....



Thanks,
 
Old 09-15-2007, 03:55 AM   #4
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
have you taken this log after the fault ?..It is perfect ..If i am not wrong ..can you check the MTU on other box ..(it should 1500).
 
  


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
ifconfig shrishailnk Linux - Networking 6 04-07-2006 10:50 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig hornet74 Linux - Networking 1 11-10-2003 10:12 AM
ifconfig loganwva Linux - Networking 4 04-03-2002 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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