Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My system is Redhat9.I have successfully updated the kernel to 2.6.11.6.But now the iptables does not work in my new kernel. I modified my /etc/rc.d/rc.sysinit.
Change
if ! LC_ALL=C grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/ksyms ]; then
USEMODULES=y
fi
to
if [ ${KVERSION} == "2.6" ]; then
if ! LC_ALL=C grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/kallsyms ]; then
USEMODULES=y
fi
else
if ! LC_ALL=C grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/ksyms ]; then
USEMODULES=y
fi
fi
And I reboot and find the iptables works fine.But there come a new problem.
I can't connect to net.Before I change the /etc/rc.d/rc.sysinit,I can connect to net.
And the redhat-config-netword tell me that :
redhat-config-network:
eth0 has an alias to module r8169 in modules.conf,
instead of currently loaded module eth1394!
And when i reboot or shutdown computer,I see a error"Device eth0 has different MAC than expected"
How can i solve these problems?Can anybody help me?
I am hopeless!
Do you have the correct module for your card inserted into the kernel? What does lsmod have to say? The 2.6 kernels use different module utilities, so hopefully you updated them too (I'm not sure of the consequences if you didn't -- things like modprobe and lsmod probably just wouldn't work).
btmiller,thank you for you reply.
If i don't modify the /etc/rc.d/rc.sysinit,lsmod's result contain the module r8169.But when after i modify the file,lsmod's result didn't contain the module r8169.
It seems that the kernel load the module eth1394 for the net card.
How can i get the kernel load the module r8169 for the net card when booting??
Last edited by lonelyghost317; 06-29-2005 at 03:14 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.