LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-24-2017, 08:55 PM   #31
lazydog
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, 07:11 AM   #32
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
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
Code:
tar -xvf linux-4.9.9.9.tar.xz
Open the extracted folder and clean-up the tree of all previous configs to give a good starting point
Code:
make mrproper
Create a default config file
Code:
make defconfig
Enter the kernel config menu and mark the drivers you need as well as any other options required for your system
Code:
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
Code:
make
make modules_install
Then copied the new kernel over to the boot folder overwriting the existing file
Code:
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 system.map file as well (although I'm not sure if this was needed or not if I'm honest!)
Code:
cp -v System.map /boot/System.map-4.9.9
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
Code:
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
Code:
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
Code:
bash /lib/udev/init-net-rules.sh
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
Code:
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!


Rob

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


Reply



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 08:14 PM
issue during RPM build your_shadow03 Linux - Server 2 05-17-2013 03:29 PM
Android - Build Issue linux_newbie79 Linux - Software 1 01-06-2010 06:18 AM
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 AM.

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