Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-24-2017, 09:55 PM   #31
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194

Never mind.
Old 04-25-2017, 08:11 AM   #32
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
Originally Posted by lazydog View Post
Never mind.
I thought I'd expand on what I've done anyway as I hate finding a forum post with the same issue only for it to end in "I fixed it!"

Although the trouble shooting steps in this post may help others with network related issues.

Adding the driver to the kernel
Extract the kernel files
tar -xvf linux-
Open the extracted folder and clean-up the tree of all previous configs to give a good starting point
make mrproper
Create a default config file
make defconfig
Enter the kernel config menu and mark the drivers you need as well as any other options required for your system
make menuconfig
I kept all defaults expect for adding my NIC drivers under "Device Drivers" --> "Network device support" --> "Ethernet driver support" --> select the driver that matches your hardware listed from the "lspci" command.

Saved all my changes in the kernel configuration menu and then compiled
make modules_install
Then copied the new kernel over to the boot folder overwriting the existing file
cp -v arch/x86/boot/bzImage /boot/vmlinuz-4.9.9
Note that the above destination file is based on my personal naming so yours may differ, auto complete the destination file with tab if unsure to make sure grub can find it
I also copied over the file as well (although I'm not sure if this was needed or not if I'm honest!)
cp -v /boot/
Now that the kernel was built I just needed to map the hardware to the interface name in udev. I believe this can be done in other ways but this method I followed will allow for me to have persistent interface names if I install additional NIC's in the future.

Persistent interface name
I first cleaned up any existing network device mappings
rm /etc/udev/rules.d/70-persistent-net.rules
I then set the interface name and mac address variables that I wanted the udev script to use
export INTERFACE=eth0
export MATCHADDR="xx:xx:xx:xx:xx:xx" (insert your device mac address)
I then run the udev script to recreate the net rules file
bash /lib/udev/
Finally the last thing to do was modify the ifconfig file to use my new interface name

ifconfig file
I moved/renamed the existing to match the new interface name
mv /etc/sysconfig/ifconfig.sit0 /etc/sysconfig/ifconfig.eth0
Opened the file in a text editor and changed the IFACE veriable to eth0

After a reboot the interface come up properly and I was able to talk to both lan and wan based hosts!

Please note that some of the steps above may not be needed in the slightest though as I'm still very much new to this!


Last edited by Buddidge; 04-25-2017 at 08:17 AM. Reason: tidy


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
[SOLVED] Build Issue JaguarAnon AryaLinux 7 05-16-2016 09:14 PM
issue during RPM build your_shadow03 Linux - Server 2 05-17-2013 04:29 PM
Android - Build Issue linux_newbie79 Linux - Software 1 01-06-2010 07:18 AM
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 02:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 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
Open Source Consulting | Domain Registration