change MAC address & connect to a dhcp server successfully


Results 1 to 8 of 8

Thread: change MAC address & connect to a dhcp server successfully

  1. #1
    Join Date
    Dec 2009
    Posts
    7

    change MAC address & connect to a dhcp server successfully

    hello my dear friends

    for changing the the mac address of my lan card( eth0) in linux fedora 9(solphur) i used this command

    ifconfig eth0 hw ether (new mac address)

    and i could change my mac address successfully but now i couldn't connect to my network via a dhcp server ( in configuration section of my router im going to check my new mac address (because i want to spoof)) , could you tell me how i can do that?

    if there is no problem please answer my question as soon as possible.

    i will appreciate

  2. #2
    Join Date
    Dec 2009
    Posts
    7
    No one can help me....

  3. #3
    Join Date
    Jun 2006
    Location
    Haarlem, Holland
    Posts
    129
    I don't know if I understand your question, which hwaddr do you want where?

    If I type ifconfig as root, I get the hardware adress (among others).

  4. #4
    Join Date
    Dec 2009
    Posts
    7
    so please allow me to tell you the truth and detail that maybe you can help me.

    i connect to the internet via a ADSL modem (ATU-M system) included with DHCP server and Router ( i connect my computer to ADSL modem via a ethernat )



    now i want to change my mac address and connect to the internet with above hardware.
    but when i type

    ifconfig eth0 hw ether 00:12:13:14:15:10

    and change my mac address successfully i can't connect to my router.. now i want to know how can i change mac address and connect to my router successfully?

  5. #5
    Join Date
    Jun 2006
    Location
    Haarlem, Holland
    Posts
    129
    I once had a modem that requered my first used hwadress, and then I chanced it the way you did. For a modem with router and dhcp-server I would expect you to be able to use any hwadress.

    Is your dhcp-client running? "ps -e|grep dhc"
    is your eth0 up?

  6. #6
    Join Date
    Dec 2009
    Posts
    7
    Thanks folkert....


    my new problem is:


    i changed my mac address and want to connect to my router->

    ifdown eth0

    ifconfig eth0 hw ether 00:133:63:13:92

    dhclient eth0

    i connect to my router successfully but my browser can't open anything ( Firefox) but in terminal i can connect to each site but my browser is my problem , how can i fix it?

    i followed this way:

    ifconfig -a

    eth0

    Link encap:Ethernet HWaddr 00:133:63:13:92

    inet6 addr: fe80::213:d3ff:fe63:1392/64 Scope:Link

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    RX packets:3256 errors:0 dropped:0 overruns:0 frame:0

    TX packets:3559 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000

    RX bytes:1196330 (1.1 MiB) TX bytes:573162 (559.7 KiB)

    Interrupt:23 Base address:0xc000


    according the output i connect to router successfully and reach any site such as google


    (my router ip address is 192.168.1.1)


    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=1.68 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.510 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.526 ms
    --- 192.168.1.1 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2169ms



    nc -vv google.com 80
    Connection to google.com 80 port [tcp/http] succeeded!


    now how can i fix my broswer that work with this new mac & ip address?


    in windows i did it successfully( with firefox ) but in linux i can't do it with my browser(firefox)

  7. #7
    Join Date
    Jun 2006
    Location
    Haarlem, Holland
    Posts
    129
    I don't think your browser care's about your mac and ip address. I wouldn't know why your browser won't work. can you use another browser, maybe you have the textbrowser lynx. try "lynx google.com" Did you use ping and nc as root or as your regular user?

  8. #8
    Join Date
    Dec 2009
    Posts
    7
    Thanks , i think so , but thanks anyway , in this forum you were that help me and follow my question , Thanks a lot for all things

Posting Permissions

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