LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-27-2012, 04:19 AM   #1
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Rep: Reputation: 0
Question Debian Installation - Change Network Card Speed During Installation


Hello

A TP-Link Card i use, has trouble with auto-negotiating with my router. I need to be able to manually set the speed of the card, while installing Debian, otherwise no network is available to me.

Is there a way to pass a parameter that will set my eth0 speed to 10Mbps full duplex before i even start installing the distro?

Please assist

Panos
 
Old 03-27-2012, 04:24 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
I cant see your reasoning from the information provided, but to answer your question, you can configure your NIC's speed (and other settings) using either "ethtool" or "mii-tool".
 
Old 03-27-2012, 04:32 AM   #3
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fukawi1 View Post
I cant see your reasoning from the information provided, but to answer your question, you can configure your NIC's speed (and other settings) using either "ethtool" or "mii-tool".
Thank you for replying.

My reasoning is that Debian is constantly attempting to use the network while installing, for syncing with a time server, for downloading additional or updated packages, for scanning a repository etc. I am used to this process and have bad memories from previous attempts to install it without a network connection being active.

Therefore, i am seeking for a way to set a proper speed for my network card, so that networking will work as expected during installation. I am aware that i can user "ethtool" or "mii-tool" for adjusting this after installation (although, mind you, ethtool still needs to be downloaded, therefore still needs a network connection to be available), however, i wish there is a way to set the network card speed before installation of the OS actually starts.

Also, i wish to clarify that i am using the 'network-install' method for installing Debian. If i should be downloading the complete cd (or DVD), for mii-tool or ethtool to be available as the system installs, then i will do so.

Regards
 
Old 03-27-2012, 04:44 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
I still don't understand your problem...

It sounds like you are trying to install Debian, using the network-install image, without a network connection. If this is the case, then you should download the cd/dvd ISO and install from that..

I don't understand why you have to restrict your NIC to 10Mbps, you shouldn't have to configure the NIC speed manually, as both ends of the connection should negotiate to a speed both NIC's are capable of.
 
Old 03-27-2012, 04:52 AM   #5
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fukawi1 View Post
I still don't understand your problem...
It sounds like you are trying to install Debian, using the network-install image, without a network connection. If this is the case, then you should download the cd/dvd ISO and install from that..
Debian, still constantly attempts to use the network, even while installing from a DVD. For all the reasons that i have stated.

Quote:
Originally Posted by fukawi1 View Post
I don't understand why you have to restrict your NIC to 10Mbps, you shouldn't have to configure the NIC speed manually, as both ends of the connection should negotiate to a speed both NIC's are capable of.
As i already mentioned, it is the negotiation that fails, and that has caused this question. I have not experienced a negotiation failure between network devices before, but... there it is, and i am trying to find a way to overcome the problem. If it turns out that there is no way to define the network speed -->at boot time<-- (a question for which it appears that you do not know the answer), then i am smart enough to know that i have several other options (including the possibility to get a new network card).
 
Old 03-27-2012, 05:04 AM   #6
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
You will need to configure it twice.
Once for the livecd to install, and once for the installed system (the some installers may remember the settings, but I am not sure if Debian is one of them).

I'm not familiar with what you are presented with for the Debian network-install livecd, but assuming you can drop to a different console (ctrl + alt + F1-6) you should be able to configure the NIC with ethtool. If you only get the one console and limited options, then i would suggest trying the full CD iso, which boots to a desktop environment, with a graphical installer that will let you have a console.

Failing that, then I would go with your "new NIC" idea, but i would test the other end of the connection too.

Last edited by fukawi1; 03-27-2012 at 05:06 AM.
 
Old 03-27-2012, 05:07 AM   #7
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fukawi1 View Post
You will need to configure it twice.
Failing that, then I would go with your "new NIC" idea, but i would test the other end of the connection too.
Thank you very much for the advice. I will do so, as suggested.

Cheers
 
Old 03-30-2012, 11:53 AM   #8
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Why bother to install ANY OS directly on machine, when you can do it on virtual machine straight to HDD? Then no confusion with network speed.

P.S. Are your card ancient or something? I never had card, which ever any problems with auto-negotiation.
 
Old 03-30-2012, 01:17 PM   #9
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by WizadNoNext View Post
Why bother to install ANY OS directly on machine, when you can do it on virtual machine straight to HDD? Then no confusion with network speed.
Why bother eating? We will all die someday.

Quote:
Originally Posted by WizadNoNext View Post
P.S. Are your card ancient or something? I never had card, which ever any problems with auto-negotiation.
Actually it is a TP-3269, far from ancient. I've never encountered such a situation before, and i've tested with another TP-3269 as well.

So, to make a long story short (and useful), there is indeed a way to change the network speed at install time. As soon as Debian starts to copy files to the designated partition, one can switch to another console and navigate to the /target folder. Inside that folder there is an "sbin" folder that contains the "mii-tool" program that will allow the exact setting of the network card speed, thus allowing the installation to complete normally. After the first reboot, the tool is inside the /sbin folder. I have checked this process all the way and it works as described.

Despite all this, i took the friend's advice and purchased two Intel network cards that auto-negotiate without any problems.

Thank you all for your help and comments.

Last edited by protocol; 03-30-2012 at 02:45 PM.
 
  


Reply

Tags
debian, nic



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
can network speed depend on installation? RudraB Linux - Networking 4 07-28-2011 03:02 AM
LXer: How to change network card speed and duplex settings in ubuntu LXer Syndicated Linux News 0 11-17-2010 06:50 PM
[SOLVED] How to change the hostname at the end of pxe unattended installation on Debian permalac Linux - Server 6 11-05-2009 01:17 AM
Change my Network card link speed/duplex mode in Linux Salihou Linux - Networking 1 12-22-2003 01:27 PM
network installation of RH7.3 on laptop with pcmcia network card. Smerk Linux - Distributions 1 10-31-2002 11:56 PM

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

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