Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-17-2012, 08:43 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Network card does not work properly

Hello, All.

I have a very strange problem with my network card. Often when I boot Linux I get this problem:
in infinite loop. It can't get DHCPACK and retries, retries, retries ...

But I found the way how to make it connect: reboot to Windows, wait Windows to connect to this network, then reboot to Linux. And after this Linux easily connects to this network. Why?

auto eth0
iface eth0 inet dhcp
hwaddress ether 00:2b:cb:dc:ff:bb
(I need to fake MAC, and this is root of the evil)

My system: Debian GNU/Linux Wheezy.

uname -a: Linux franchuk-r 3.6.2-vanillamy #1 SMP Thu Nov 8 17:57:16 EET 2012 x86_64 GNU/Linux (I have the same problem with Debian's 3.2 kernel and with Liquorix kernel).

My network card: 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)

Driver: r8169

// Sorry for my bad English.
Old 11-18-2012, 08:11 AM   #2
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled

I guess your DHCP server assigns you an specific IP address based on your MAC.

The key is to change your MAC address before eth0 comes up. To do this, create a file in /etc/network/if-pre-up.d/ with the following contents:
#! /bin/sh
ifconfig eth0 hw ether 00:2b:cb:dc:ff:bb
Don't forget to give execute permissions to the file by running chmod +x /etc/network/if-pre-up.d/

Hope this helps
1 members found this post helpful.
Old 12-09-2012, 01:13 AM   #3
LQ Newbie
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks, that helped.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network card is not working properly nkjha Linux - Hardware 4 09-25-2009 01:43 AM
Realtek 8187b wireless card does not work properly under fedora 10 flauser Linux - Networking 10 12-28-2008 10:48 AM
Cannot get flash to work properly with an external USB Audio card - no sound Voland Linux - Software 3 10-02-2008 02:11 PM
Updated Firmware of Wireless card, now doesnt work properly? kromatic Linux - Hardware 1 02-18-2005 01:36 PM
network card will not load properly soup Slackware 2 01-04-2004 05:32 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration