Quote:
Originally Posted by lazydog
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
Create a default config file
Enter the kernel config menu and mark the drivers you need as well as any other options required for your system
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