Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Strange thing with network interfaces

  1. #11
    Junior Member
    Join Date
    Feb 2006


    Quote Originally Posted by Baxter View Post
    why dont you start iwconfig in the script then you could choose which interface. example

    echo "Choose Interface"
    read iface

    now in your script change eth0 or wlan0 to $iface
    ifconfig $iface up
    now it wont matter if your interface changes.

    Didnt even think about that. Thanks Baxter!

  2. #12
    Junior Member
    Join Date
    Jul 2006


    Quote Originally Posted by zonkers View Post
    Thanks for reply.
    Previously I was using Fedora and when I booted it, I always got the same numbers for each interface. So I suppose there must be a reason why it happens on BackTrack.

    Finally I made this thanks to the link in post above from Funnyman. It was not exactly the same in my case, but quite similar.
    So to keep the numbers of your network interfaces the same with every boot, open that file /etc/udev/rules.d/network-devices.rules in editor (in my case it's kwrite).
    kwrite /etc/udev/rules.d/network-devices.rules
    There should be several lines like that one
    #KERNEL=="eth?", SYSFS{address}=="00:11:22:33:44:55", NAME="eth0"
    Then just uncomment (remove # mark at the beginning) the line which contains MAC of your network card.
    You can also change the name of the interface into "eth1" or "wlan0". It's up to you. After that the line should look like that one.
    KERNEL=="eth?", SYSFS{address}=="00:11:22:33:44:55", NAME="eth0"
    Many thanks to Funnyman for the link.
    I'm happy to help

Page 2 of 2 FirstFirst 12

Posting Permissions

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