Results 1 to 2 of 2

Thread: Renaming network interfaces

  1. #1

    Renaming network interfaces

    Hi,

    I am using an HD install of knoppix 3.4 and am having some trouble getting the network interfaces to behave.

    The machine in question is a laptop with a built in ethernet and sometimes a pcmcia wireless ethernet card. The kernel sometimes names the built in ethernet eth0 and the wireless eth1, sometimes the reverse, depending on whether the pcmcia card is inserted at boot time or is put in later. Both interfaces work fine, but the naming is inconsistent.

    This is problematic for varous reasons. First, the built in ethernet (often) uses a static IP address which is set up in /etc/network/interfaces. This doesn't work when the built in ethernet has an interface name different that expected.

    I am also using the laptop-net package to manage the built-in ethernet. This only works (as far as I can tell) when you know the interface name.

    Some research showed that the use of the nameif utility seemed be called for. This program renames network interfaces based on mac addresses, just what I need, but I haven't been able to get it working. I set up a correct /etc/mactab file and inserted '/sbin/nameif -s' in /etc/init.d/networking; I also inserted the command in /etc/init.d/knoppix-autoconfig to run prior to the starting of the cardmgr. None of this seems to work, however. As far as I can tell nameif is either not running or is ignored; the kernel insistes on naming the interface as it wants.

    Can anyone help me get my network interfaces consistently named?

  2. #2

    solved interface renaming issue

    I solved this problem. There were actually a couple of problems. First, I had to turn off the dhcp section in the /etc/init.d/knoppix-autoconfig script. I did this by adding the 'nodhcp' option to my boot parameters. This script was running pump before nameif had a chance to rename the interfaces... now I just let the modified /etc/init.d/networking take care of bringing up the interfaces.

    The other issue was with a pcmcia interface. This interface is acutally brought up and down by cardmgr, so I had to modify the /etc/pcmcia/network.opts file to have it run nameif right before bringing the interface up.

    Now I have both my intrefaces renamed, and named consistently. Hope this info might help somebody else.



    References for the basics of nameif:

    Naming Network Interfaces
    http://www.linuxfromscratch.org/hint...les/nameif.txt


    10.9 Dealing with inconsistent naming of interfaces by the kernel
    http://www.debian.org/doc/manuals/re...ateway.en.html

Similar Threads

  1. Renaming the /KNOPPIX file and making it work
    By taloner in forum Customising & Remastering
    Replies: 9
    Last Post: 06-19-2005, 10:21 AM
  2. Renaming Hard Drives/Partitions
    By Mustang64 in forum Hdd Install / Debian / Apt
    Replies: 12
    Last Post: 04-25-2005, 10:21 PM
  3. Renaming Knoppix bits - what will break?
    By DunkyB in forum Customising & Remastering
    Replies: 0
    Last Post: 04-15-2005, 03:17 PM
  4. One netcard, two logical interfaces.
    By linux_Fred in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-12-2005, 05:15 PM
  5. Replies: 2
    Last Post: 04-27-2003, 05:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD picture

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD

$119.99



Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working picture

Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working

$149.99



NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER picture

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER

$1499.97



Datto S3P6000 4x 3.5

Datto S3P6000 4x 3.5" 1U Blade Rack Server Intel Xeon D-1541 @2.10GHz 48GB DDR4

$149.95



Datto S3P1000 4x 3.5

Datto S3P1000 4x 3.5" 1U Blade Rack Server Intel Xeon D-1541 @2.10GHz 16GB DDR4

$139.95



Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR picture

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR

$95.20



Dell PowerEdge VRTX 2.5

Dell PowerEdge VRTX 2.5"x25 Bay Blade Enclosure 4x1600W + 4X M640 (4X Blades)

$1599.99



Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB picture

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB

$149.99



Dell Poweredge VRTX 25Bay 2.5

Dell Poweredge VRTX 25Bay 2.5" 2x PERC 8, 2xCMC, I/O 1GB Pass Through, 4x PS

$578.08