Announcement

Collapse
No announcement yet.

problem with changing hw address

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    problem with changing hw address

    Since upgrading to the newest kubuntu (7.10 ?) I have a problem when I want to change the mac address.
    My /etc/network/interfaces file:

    ----------------------------
    auto lo
    iface lo inet loopback
    address 127.0.0.1
    netmask 255.0.0.0
    #address 127.0.0.1
    #netmask 255.0.0.0

    auto eth0
    iface eth0 inet static
    #iface eth0 inet dhcp
    address 169.254.4.44
    netmask 255.255.0.0
    hwaddress ether 0010xxxxxxxx
    ----------------------------------------
    and it did work. now what I get is:
    ---------------------------------------------------------------------
    root@anna-laptop:~# /etc/init.d/networking start
    * Configuring network interfaces... SIOCSIFHWADDR: Device or resource busy
    Failed to bring up eth0.

    root@anna-laptop:~# ifconfig eth0 down
    root@anna-laptop:~# ifconfig eth0 hw ether 0010dce10c75
    root@anna-laptop:~# ifconfig eth0 up
    root@anna-laptop:~# /etc/init.d/networking start
    * Configuring network interfaces... SIOCSIFHWADDR: Device or resource busy
    Failed to bring up eth0.

    root@anna-laptop:~# ifdown eth0
    ifdown: interface eth0 not configured
    root@anna-laptop:~# ifup eth0
    SIOCSIFHWADDR: Device or resource busy
    Failed to bring up eth0.
    --------------------------------------------------------
    if I type
    ifconfig -a
    I get:


    ---------------------------------------------------------

    eth0 Protokoll:Ethernet Hardware Adresse 00:02:3F0:19:2B
    inet6 Adresse: fe80::202:3fff:fed0:192b/64 GÃŒltigkeitsbereich:Verbindung
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4686 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    Kollisionen:0 SendewarteschlangenlÀnge:1000
    RX bytes:287082 (280.3 KiB) TX bytes:468 (468.0 b)
    Interrupt:22 Basisadresse:0x800

    lo Protokoll:Lokale Schleife
    inet Adresse:127.0.0.1 Maske:255.0.0.0
    inet6 Adresse: ::1/128 GÃŒltigkeitsbereich:Maschine
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    Kollisionen:0 SendewarteschlangenlÀnge:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    -------------------------------------------------
    I know that using a router would solve my problem (2 pcs, one modem, only one hw address allowed). but before it did work without, and i would like to keep it like that.

    i hope you can help me ...

    #2
    Re: problem with changing hw address

    does it come up when you leave the MAC alone?
    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

    Comment


      #3
      Re: problem with changing hw address

      as you see the eth0 comes up, but network does not work

      root@anna-laptop:~# ifdown eth0
      ifdown: interface eth0 not configured
      root@anna-laptop:~# ifup eth0
      root@anna-laptop:~# /etc/init.d/networking stop
      * Deconfiguring network interfaces... RTNETLINK answers: No such process
      [ OK ]
      root@anna-laptop:~# /etc/init.d/networking start
      * Configuring network interfaces... [ OK ]
      root@anna-laptop:~# ping www.google.de
      ping: unknown host www.google.de
      root@anna-laptop:~# ifconfig eth0 down
      root@anna-laptop:~# ifconfig eth0 up
      root@anna-laptop:~# ping www.google.de
      ping: unknown host www.google.de

      Comment


        #4
        Re: problem with changing hw address

        Hi,

        so you cannot get any network connection at all? Have you tried knetworkmanager? It is a nice programme (when it works) but it needs a virtually empty /etc/network/interfaces

        For your information, mine looks as follows:
        Code:
        auto lo
        iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0
        Back up your own, try this version and call up knetworkmanager to see whether you get a connection.

        Still baffled why you want to change your MAC address. As far as I know this is only done for hacking reasons, getting into other people's network who have MAC restrictions, etc. As such it is forum policy not give out any further information - regardless of the reason (I've been at the wrong end of this kind of thing before, too).

        However, if you just want to get onto the internet, we'll gladly help you
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: problem with changing hw address

          Originally posted by toad
          Hi,

          so you cannot get any network connection at all? Have you tried knetworkmanager? It is a nice programme (when it works) but it needs a virtually empty /etc/network/interfaces

          For your information, mine looks as follows:
          Code:
          auto lo
          iface lo inet loopback
          address 127.0.0.1
          netmask 255.0.0.0
          Back up your own, try this version and call up knetworkmanager to see whether you get a connection.

          Still baffled why you want to change your MAC address. As far as I know this is only done for hacking reasons, getting into other people's network who have MAC restrictions, etc. As such it is forum policy not give out any further information - regardless of the reason (I've been at the wrong end of this kind of thing before, too).

          However, if you just want to get onto the internet, we'll gladly help you
          Hi,
          I am not a hacker, but a rather helpless user. in my flat we have a modem access to the net. it only allows one pc to use it. since my boyfriend has his pc almost always turned on, it is his mac number that is accepted. however, sometimes i want to have access to, with my pc. a router would be a solution, but it is only once in a while that i want to use my pc. that is why until now I simulated my boyfriends hw address. with kubuntu 7.10 apparently the user does not have this freedom any more. So either we put in a router, which then has to run all the time. or I change back to the old version. I thought that someone could give me some advice to find another way.

          Comment


            #6
            Re: problem with changing hw address

            Originally posted by toad
            Hi,

            so you cannot get any network connection at all? Have you tried knetworkmanager? It is a nice programme (when it works) but it needs a virtually empty /etc/network/interfaces

            For your information, mine looks as follows:
            Code:
            auto lo
            iface lo inet loopback
            address 127.0.0.1
            netmask 255.0.0.0
            Back up your own, try this version and call up knetworkmanager to see whether you get a connection.
            Ok. I almost empied the interfaces file. then tried to start knetworkmanager.
            it does not start. not even give some (error) message. so maybe there is something broken (even if i leave the mac addr.)
            that would mean that even a router could not help

            Comment


              #7
              Re: problem with changing hw address

              That is strange. What does the command line say when, after a fresh boot, you type
              Code:
              knetworkmanager
              Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

              Comment


                #8
                Re: problem with changing hw address

                It said: nothing.
                but I gave up, and bought a router. (and it works). thank you for the effort. and I still think that it would be good to allow the user to simulate another mac address (in this case).

                Comment

                Working...
                X