LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-23-2005, 11:12 AM   #1
rbecker
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Start ethernet device numbering at 1 instead of 0 (eth1 instead of eth0)


Hello, Second time poster.. Long time reader.

I had a question regarding how the device name eth0 originates and how I can change the kernel numbering to start at 1. Its an unfortunate circumstace that the silk screens on the dell pc I bought labels the ports eth1 and eth2, so rather than change the silk screens if its of more minimal impact, I'd like to change the kernel numbering for the devices.

I figure there is a place in the source where it maintains a number of eth devices registered and appends something of the "eth"+devnum to get the next available number.

I have been reading a lot about having grub set the configuration parameters for ethernet via the linux line. but eth0 seems to be required.

Anyone have some insight into this pesky little problem?
 
Old 02-23-2005, 03:21 PM   #2
bagira
LQ Newbie
 
Registered: Dec 2003
Location: Germany
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
rbecker,
you can change the entries in the file /etc/modules.conf. The entries are set during installation by the kernel. In this file, you find the module and the appropriate ethernet device.
Hope this helps,
cheers bagira
 
Old 02-24-2005, 01:43 PM   #3
rbecker
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply. Doesnt the modules.cofng ste up an alias indicating which module to load when a particular device is specified? Or is there an alternate function I am not aware of.

I have it set up now where it allocates the devices starting at 1, but I havent gotten it completely right. ifconfig -a shows eth1 and eth2, but ifup doesnt understand eth1 it only understands eth0.

I changed the dev_alloc_name() routine to start allocating names at 1 instead of 0.
 
  


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
x86 board PCM 6892 with dual ethernet port.eth1 doesnt ping if eth0 cable removed rani_162 Linux - Newbie 0 07-23-2005 12:29 PM
How To Rename Ethernet Card Eth1 to Eth0 chammoud Linux - Networking 4 04-20-2005 06:01 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
How do you switch the default ethernet adapter (eth0 to eth1)? scoobdoobery Linux - Networking 3 09-05-2004 01:29 PM
Eth0 & Eth1 boot start Up FAILED.. PAOLO_GRS Linux - Networking 1 09-03-2004 07:18 PM

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

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