Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Yesterday my buddy and I installed Mandrake 9.2 on his machine and later I installed it on mine too. Both have nForce2 mobos. Yes, thats right, this is where the trouble starts. As it turned out nVidia doesn't have rpm for this version so I had to get the source and compile it. But nvnet didn't compile it self, but gave a hell of a lot errors which I don't mind right now. (Anyone had this thing too?)
My main problem is to get the other network card to work. It is Realtek card in PCI bus. It cant be big problem to get it work but I guess I dont have much of experience to get those things to work so I'm asking you to help.
I get my IP from DHCP. So do I have to run a DHCP client? Mandrake did't install that as default. What else do I have to do to get eth0 to work. Mandrake wizs are so different from Redhat 9.
BTW. Radeon 9000 Pro works perfectly with Mandrake 9.2. Love that TuxRacer
The NIC probably requires 8139cp or 8139too module. You can try them both, one will give you errors and the other will work, I would start with 8139too as that seems to be most common.
Edit /etc/modules.conf file and add this line:
alias eth0 8139too
Save that and do this:
modprobe 8139too
If you didn't get any errors then the module is OK. Else you can try the 8139cp module the same way.
You don't have to run dhcp server to get an IP via dhcp. Just go to mcc (Mandrake Control Center) click on Network & Internet click on DrakConnect. From there you can configure the NIC and also configure Internet Access.
If you dont have any firewall you can also use the MCC to configure one just select Security and DrakFirewall then you can open services, if you don't select a service it will stay closed.
The card is loaded correctly as 8139too. So i dont have to load modules. There is something wrong with other things. So I dont have to run any DHCP thingies at the background? Where can I view the info about my connection properties? Is there any file?
ifconfig #This will tell you about devices such as eth0 and localhost
route #This will display a routing table
ifup eth0 #This will start eth0
ifdown eth0 #This will turn off eth0 card.
Important files are:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/hosts
/etc/resolv.conf
Real important commands:
service iptables stop #This will flush iptables rules and set default policies to ACCEPT. This is ok for troubleshooting network but don't be surfing the net this way.
service network restart #This will "reboot" your network.
What is this eth0:9 what I get after "service network restart". There is no RX and TX lines. Also I have netmask address in my ifcfg-eth0 file saying 255.255.255.0 but is it too declared by dhcp not my machine?
So that means that the configuration is correct but I can't get IP from the DHCP server. But Why doesn't it give IP to me? In windows it gives it perfectly. Though I use the nVidia networkcard in windows.
If you have a whole lot of rules show up you should run the command:
service iptables stop
Then all your chains should be set to ACCEPT. This is how you need to run until you get the network working. Once everything is working you need to restart iptables.
iptables -L command gave nothing -> there were no rules
service network restart failed it didn't bring up the eth0 device.
My friend at school adviced me to get rid off the script that makes those virtual eth0:9 thingies because who needs them anyway. Would this make a differense?
You may need to supply an IP to the card just to verify the card is working, then you can go back and set it to dhcp and try to figure out why you are not getting an IP.
OK. I found this from this site. Posted today. I'll get back to you if it does/doesn't work I also quickly installed Debian on my comp but it didn't detect my IP so I am assuming that my Realtek NIC is broken some how. I'll have to test that NIC in windows if it gets an IP from there. Wish me luck
Ok. Now that I have gotten my network to function I have a little simalar problem. My iptables -L command is givin a hell of a lot rules. This is ok, but it rules out my outgoing network also so that i have to restart the dam iptables so that there is no rules at all. This is not good also. What do I have to do to get iptables to allow my computer to go to internet, ssh, ftp?
You may need to disable iptables service if it is loading it's own rules. To do that just do this:
service iptables stop
/sbin/chkconfig --level 12345 iptables off
If you still get iptables rules when you boot then you have a firewall running and you need to find out what it is and how to disable it or configure it to allow you access to the internet.
If you manage to disable the iptables rules you will need to run a firewall. Mandrake has a built-in firewall that is easy to manage. Run mcc (Mandrake Control Center) Select Security -> DrakFirewall. It will prompt to install some packages if necessary. Once smoothwall is installed just select the ports you want to open from the mcc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.