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 05-31-2009, 03:53 PM   #16
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435

Quote:
Yes, I did reboot it.
OK, I was just checking.

Quote:
I just tried to fall back to the older kernel....it insists on using e100 for eth0.
OK. Thank you for trying this. I was wondering if there was a newer-kernel bug that was introduced by your updates (post #1), but it seems it is not a kernel bug, but a config-file bug somewhere.

Quote:
after I rename the file, and run locate, i get the old name back, though this file is not present in the folder
That is because locate consults its database which was out of date the moment you renamed that file. You can bring things up to date with (as root) locate -u or updatedb (depending, and I do not run Debian) [ These commands are usually run daily by (ana)cron so the database of what is where is generally never more than one day old ]. Then try the locate comand again, the old file should be gone.

[ You might want to leave the e100.ko named as it should be in case you add hardware in the future and wonder why it doesn't work (because it really needs the e100 module) Reminder: "Change ONE thing at a time, and remember to write down what you changed, or you may end up in a BIG mess that calls for a reinstall ]

You then tried removing the e100 and tg3 modules, them modprobe-ing tg3

You ended up with two interfaces - eth0 and eth2.

Q1] Are they working as expected?

Q2] Does this match your hardware - do you have only two ethernet interfaces?

Something is still loading the e100 module when you do not want it to be loaded. I do not know why it is being loaded. It should not be loaded for your hardware. We tried blacklisting it - that didn't work.

Progress is "promising" because if we can disable e100 then both cards look as though they'll use tg3, and work.

Q3] Maybe it's time to try update-initramfs, or substitute an "ugly hack" (but I'd rather not do that). Are you ready?

I think that's the step we need to take. If you back up your current /boot/init.rd.img-kernelnumber to /boot/init.rd.img-kernelnumber-my-backup you should be OK to proceed. Make sure you have a live CD to boot from, or can select a previous kernel to boot from in case of a mistake.

Last edited by tredegar; 05-31-2009 at 03:56 PM. Reason: italics for clarity
 
Old 05-31-2009, 05:50 PM   #17
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I think maybe the output of an lspci would be useful so that we all know what interfaces are actually in the system.

edit. Never mind. I see from your post number 1 that there are two NICs in the system.

What changed between your post 1 and post 3? Prior to post 3 you had eth0 and eth1. As of 3, you have eth2 as well.

What does ifconfig -a have to say? You might have to specify this as /sbin/ifconfig -a .

Last edited by jiml8; 05-31-2009 at 05:56 PM.
 
Old 05-31-2009, 07:34 PM   #18
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
What changed between your post 1 and post 3? Prior to post 3 you had eth0 and eth1. As of 3, you have eth2 as well.
No, by the time I posted # 3, we had just noticed that there were 3 interefaces and not 2.

Code:
cook:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr xxx  
          inet addr:xxx  Bcast:xxx  Mask:255.255.255.224
          inet6 addr: xxx/64 Scope:Link
          inet6 addr: xxx/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10948 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7639 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1289740 (1.2 MiB)  TX bytes:1057684 (1.0 MiB)
          Interrupt:185 

eth2      Link encap:Ethernet  HWaddr xxx  
          inet addr:xxx  Bcast:xxx  Mask:255.255.255.0
          inet6 addr: xxx/64 Scope:Link
          inet6 addr: xxx/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4719 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2567 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:410509 (400.8 KiB)  TX bytes:274723 (268.2 KiB)
          Interrupt:193 

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:5021 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5021 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1076056 (1.0 MiB)  TX bytes:1076056 (1.0 MiB)

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)
Quote:
[ You might want to leave the e100.ko named as it should be in case you add hardware in the future and wonder why it doesn't work (because it really needs the e100 module) Reminder: "Change ONE thing at a time, and remember to write down what you changed, or you may end up in a BIG mess that calls for a reinstall ]
Renamed back to e100.ko. I am not doing more than what I write here, because I am pretty sure that I can forget what changes have been applied.

Quote:
You ended up with two interfaces - eth0 and eth2.

Q1] Are they working as expected?
Yes, everything works fine with eth0 and eth2 specified in /etc/network/interfaces.

Quote:
Q2] Does this match your hardware - do you have only two ethernet interfaces?
Yes, only two:

Code:
04:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 03)
04:04.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 03)
Quote:
Q3] Maybe it's time to try update-initramfs, or substitute an "ugly hack" (but I'd rather not do that). Are you ready?

I think that's the step we need to take. If you back up your current /boot/init.rd.img-kernelnumber to /boot/init.rd.img-kernelnumber-my-backup you should be OK to proceed. Make sure you have a live CD to boot from, or can select a previous kernel to boot from in case of a mistake.
Yes, it seems that I do not have any other options at the moment. I will try to do so tomorrow, since it is pretty late at the moment.

Thank you for all the support.
 
Old 05-31-2009, 07:38 PM   #19
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Another thing.
This post seems to have some problems with tg3 and e100.
http://www.centos.org/modules/newbb/...er=ASC&start=0
The person is just modifying the modprobe.conf file directly...though it is said in the file not to do so.

Code:
[root@localhost ~]# cat /etc/modprobe.conf 
alias eth0 tg3
alias eth1 e100
alias scsi_hostadapter aic7xxx
alias scsi_hostadapter1 aacraid
alias net-pf-10 off
So, can we actually modify the modprobe.conf directly or not?
What would be the effects?
 
Old 05-31-2009, 10:37 PM   #20
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quite obviously, at this point you are up and running.

I can't tell you offhand why you have eth2 instead of eth1; I presume that someplace along the way of changing the drivers, the system had an eth1 which later got destroyed. It might have been left over from the initial ram filesystem.

I would guess that if you rename the e100.ko file to something else and reboot, your system will come up correctly with the proper drivers. Alternatively, try following tredegar's instructions to use update-initramfs.
 
Old 06-01-2009, 08:14 AM   #21
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You attempted to use the /etc/modprobe.d/blacklist file to blacklist the e100 module that is being loaded by the kernel. the first paragraph in the blacklist file says..
Quote:
it-lenny:# cat /etc/modprobe.d/blacklist

# This file lists modules which will not be loaded as the result of
# alias expansion, with the purpose of preventing the hotplug subsystem
# to load them. It does not affect autoloading of modules by the kernel.
# This file is provided by the udev package.
the following method should sucessfully blacklist the e100 module..
http://wiki.debian.org/KernelModuleBlacklisting

Just fyi for future reference..



I would also look at /etc/udev/rules.d/70-persistent-net.rules to see what the udev rules are saying about your network interfaces.. might be a simple fix in there as well. (renaming interfaces, etc.)

Hope you find that useful.
 
Old 06-01-2009, 08:48 AM   #22
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Before I proceed any further, I have to resolve another problem. Now, I tried to restart it once again, to see which modules load. In the boot process, the box hangs at the point where it says:
"Starting openntpd:"
Nothing else happens. I tried to restart it a couple of times and to load a different kernel, but no :|
How could any of the modifications I introduced affect an ntpd??

Edit: The only ntp server runs on this machine, i just found out.
Is there a way to "skip" the starting of openntpd at the boot process?
Problem with interfaces => problem with openntpd in this case?

Edit2: After some period of time (5-10 minutes), the following message is printed, and nothing else is happening:
Quote:
Starting openntpd:
3w-9xxx: scsi0: AEN: INFO (0x04:0x000C): Initialize started: unit=1.
Then I got another message:
Quote:
3w-9xxx: scsi0: AEN: INFO (0x04: 0x0007) : Initializing completed:unit=0 subunit=0
Both of these messages come from the RAID, and mean "Initialize started" and "Initialize completed". Nothing happens afterwards though. I don't like these two messages...


I can ping it from machines on the local net. But cannot access it via ssh (due to internal limitations, i.e., I do not have an access to the box from other boxes on the same net).

Previously i used to access it with a key from my laptop, but now that interface is down. I modified the /etc/network/interfaces to be set up for eth0 and eth1 before I reboot, so I lost eth2...

Last edited by brownflamigo1; 06-01-2009 at 09:32 AM.
 
Old 06-01-2009, 11:28 AM   #23
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Thanks, farslayer, for the definitive link to module blacklisting for Debian.

@brownflamigo1
Things appear to be getting worse.

openntpd needs the internet, so maybe that is why it is getting stuck.

I can't help you with your RAID errors, if that is what they are, but can suggest that you try booting into "Recovery Mode" (well, that's what the buntus call it) = "Single user mode" at the grub menu.

This should give you a minimal console-only system that you can use to find out and repair whatever is broken.

The ntpd shouldn't start, and you'll usually be able to see any errors during the boot process on the <CTRL><ALT><F1> console.

If the RAID error is preventing your boot process from completing, I suggest you start another thread to resolve it independently of this thread.

Then you should be able to blacklist e100 by following farslayer's post at #21.

You'll remember that the command to shutdown from the command line is /sbin/shutdown -h now
 
Old 06-02-2009, 03:41 PM   #24
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Yes, it would seem unlikely that a problem with SCSI or RAID would have anything to do with the e100 driver. Booting into recovery mode is the way to go. And I would not expect ntpd getting stuck to hang the boot process.

You can kill ntpd at boot time by going to /etc/rcX.d (where X is 1 to 6, depending on your startup mode) and removing the link that refers to the ntp daemon. It will be of the form Sxyntpd where xy is a two digit number from 01 to 99 which is used to set startup order.
 
Old 06-09-2009, 03:48 AM   #25
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Sorry for the delay. There was finally an access to the single user mode. We removed the e100 from the blacklist and restarted. Everything worked out well. Later that day, we realized that the box actually has 3 interfaces and not two... So, we decided to keep them as such, with eth1 and eth2 having a connection.

Thanks everyone for the help and timely responses.

nik
 
Old 06-09-2009, 11:01 AM   #26
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Ah so the appropriate way to start here would have been ..

lshw -c network

I do not understand why the intel card didn't show up in your lspci output though..
 
Old 06-14-2009, 07:54 AM   #27
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
Ah so the appropriate way to start here would have been ..

lshw -c network

I do not understand why the intel card didn't show up in your lspci output though..
Now that I looked at the output of 'lshw -class network' I saw that the third controller was manufactured by a different vendor and was located separately from the other two..

1. 00:04.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 10)

2. 04:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 03)
3. 04:04.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet (rev 03)

Thanks for all the replies.
 
  


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
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
how to make sure vpnc using eth1 rather than eth0 zyuadl Linux - Wireless Networking 2 03-09-2006 05:57 AM
eth0 - eth1 - eth2 and how to determine which driver they are using vharishankar Linux - Networking 7 06-02-2005 10:52 PM
How can i make one program use eth1 and others still use eth0? jim64 Linux - Networking 2 10-27-2004 01:14 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM

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

All times are GMT -5. The time now is 09:47 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
Open Source Consulting | Domain Registration