LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2003, 02:48 PM   #1
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Rep: Reputation: 15
MDK 9.2 and network


Hey,

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
 
Old 11-22-2003, 04:15 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.
 
Old 11-22-2003, 05:44 PM   #3
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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?
 
Old 11-22-2003, 08:18 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.

Last edited by /bin/bash; 11-22-2003 at 08:23 PM.
 
Old 11-23-2003, 01:41 PM   #5
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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?
 
Old 11-24-2003, 04:08 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
What is this eth0:9 what I get after "service network restart".

That usually means you didn't get an IP from the dhcp server.
 
Old 11-24-2003, 05:17 AM   #7
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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.
 
Old 11-24-2003, 06:54 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If you post the contents of the files I listed above then someone will be able to help.

Also you should run the commands I listed (ifconfig & route) and post the results.

Last edited by /bin/bash; 11-24-2003 at 06:56 PM.
 
Old 11-25-2003, 06:48 AM   #9
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
Ok here it is

/etc/sysconfig/network:
HOSTNAME=fornax.mshome.net
NETWORKING=yes

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

/etc/hosts:
127.0.0.1 localhost

/etc/host.conf:
order hosts,bind
multi on

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:50:22:49:09:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:116 (116.0 b)
Interrupt:5 Base address:0x7000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:144 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10892 (10.6 Kb) TX bytes:10892 (10.6 Kb)

route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

I have already changed some files so comment if the changes are wrong.
 
Old 11-25-2003, 07:41 PM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try adding this to /etc/sysconfig/network then run service network restart

HOSTNAME=fornax.mshome.net
NETWORKING=yes
GATEWAYDEV=eth0

Also what does this command show:
iptables -L

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.
 
Old 11-26-2003, 11:44 AM   #11
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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?
 
Old 11-26-2003, 03:43 PM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Where are you getting your IP from your ISP?

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.
 
Old 11-27-2003, 07:28 AM   #13
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 11-28-2003, 04:39 AM   #14
xhawk
LQ Newbie
 
Registered: Oct 2003
Location: Kuopio, Finland
Distribution: Mandrake 9.2 (was RH9)
Posts: 25

Original Poster
Rep: Reputation: 15
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?
 
Old 11-28-2003, 01:14 PM   #15
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.
 
  


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
MDK 10 Network Problem berkay Linux - Newbie 7 07-08-2004 04:25 AM
MDK Multi-network-firewall - where are the network logs stored? Avatar Mandriva 5 02-11-2004 08:44 PM
MDK 9.2 network setup doggod Mandriva 8 01-16-2004 10:04 AM
How can I install MDK 9.0 through network ? Passang Linux - Networking 0 03-30-2003 04:04 PM
MDK 9.0 Network Question plastickid Linux - Hardware 1 12-15-2002 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 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