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 10-04-2003, 09:33 PM   #16
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76

Are you sure the network cable is good? Also, try /sbin/iptables -F. You may have a firewall loaded that's preventing you from getting responses to DHCP requests.
 
Old 10-04-2003, 10:49 PM   #17
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
tried configureing lan and restarted, "bringing up eth0" failed, but it does everytime I restart still nothing
heres the output of iptables -F

/lib/modules/2.4.22-6mdk/kernel/net/ipv4/netfilter/ip_tables.o.gz: create_module: Operation not permitted
modprobe: insmod /lib/modules/2.4.22-6mdk/kernel/net/ipv4/netfilter/ip_tables.o.gz failed
modprobe: insmod ip_tables failed
iptables v1.2.8: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.

I tried doing it in root but it wouldn't work.

Last edited by Nocturn; 10-04-2003 at 11:46 PM.
 
Old 10-05-2003, 12:34 AM   #18
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
If bringing up eth0 failed, are you sure you have the correct driver for your network card?

Come to think of it, you never said what network card you have. Could you post the brand name and model of your NIC?

Last edited by chort; 10-05-2003 at 12:39 AM.
 
Old 10-05-2003, 12:54 AM   #19
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
sure, its a Realtec RTL8139 I checked mandrake.com and it said it was supported. Think I just need to download another drive for it?
 
Old 10-05-2003, 12:59 AM   #20
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
the driver should already be included. Go to mandrake control center-> hardware ->harddrake. It will list the hardware it detects. Click on the ethernet card and then run the config tool.
 
Old 10-05-2003, 01:16 AM   #21
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Ran the config tool, it just ran me back to the configure internet tool that is in drakxconnect
 
Old 10-05-2003, 03:10 AM   #22
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
As root do lsmod. Is 8139too included on the list?

I don't remember if this has been asked already, but are you sure your router is using NAT? It's possible that you only have one public IP and it's being assigned directly to your other machine. Have you ever tried booting up the Linux box after shutting down your other machine? Have you tried configuring your NIC with an IP on the same subnet as your other machine and making the subnet mask match that of the other machine?

On your WinXP machine do ipconfig /all and see what the settings are for your network card, then on the Linux box use ifconfig to give your card the same settings (except a different IP). Then do netstat -ran and make paste the output here (if it's still not working). Also include the output of ipconfig /all from the WinXP box and ifconfig -a from the Linux box.
 
Old 10-05-2003, 03:28 AM   #23
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I have XP on both machines, and they can share the net. Comp #2 the xp only box has the net all the time, and the linux box can't connect even when the other machine is turned off.

8139 is included

couldn't figure out how to assign values to the ifconfig in linux, so I tried doing it through the drakxconnect controls.

heres the outputs....
Linux

netstat

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

ifconfig


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:1458 errors:0 dropped:0 overruns:0 frame:0
TX packets:1458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:97914 (95.6 Kb) TX bytes:97914 (95.6 Kb)

and the XP

dhcp enabled
autoconfig enabled
ipadress 192.168.8
subnet mask 255.255.255
default gateway 192.168.8
dhcp server 192.168.8
dns servers 192.168.8

note: I left the last numbers off to keep them private.

Last edited by Nocturn; 10-05-2003 at 04:03 AM.
 
Old 10-06-2003, 03:59 PM   #24
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
anyone know what the problem is?????

Last edited by Nocturn; 10-08-2003 at 10:10 PM.
 
Old 11-04-2003, 10:46 PM   #25
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
Re: got it

Quote:
Originally posted by Nocturn
alright got that to work, output is......

/sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:40:2B:41:2B:A5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:1 Base address:0x1000

looks a little odd if you ask me.
Here's mine with an almost exact of yours....even the RTL8139

[root@localhost X11]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:20:ED:49:56:20
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:233264 errors:0 dropped:0 overruns:0 frame:0
TX packets:165005 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:300486451 (286.5 Mb) TX bytes:15683073 (14.9 Mb)
Interrupt:18 Base address:0x2000

I don't see "UP" in yours. Are you sure that you have the driver loaded?..the 8139too ?

Your Gateway should be 192.168.1.1
Your IP should be 192.168.1.100

Is your LAN working otherwise?

If you don't have the Gateway set correctly then you won't get the internet.

Also, is it a "Cablemodem/Router" or just a "Router"?

How is the modem connected?

Last edited by Nu-Bee; 11-04-2003 at 10:59 PM.
 
Old 11-04-2003, 11:59 PM   #26
Nocturn
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I have a cablemodem connected to the router, they arn't a single peice. The Lan works under windows but under linux it doesn't. I'm pretty sure the driver is loaded, Mandrake is said to come with it to begin with I tried to install the one from the website, but ran into some...issues about knowing what to put in where. Think If I assigned the Gateway "correctly" that it would work?
 
Old 11-05-2003, 07:39 AM   #27
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
Quote:
Originally posted by Nocturn
I have a cablemodem connected to the router, they arn't a single peice. The Lan works under windows but under linux it doesn't. I'm pretty sure the driver is loaded, Mandrake is said to come with it to begin with I tried to install the one from the website, but ran into some...issues about knowing what to put in where. Think If I assigned the Gateway "correctly" that it would work?
It might, why don't you give it a try?

Also, try this:

Go to the taskbar > Configuration > Configure your computer > Network & Internet > DrakConnect

...what does that say?
 
Old 11-05-2003, 08:46 AM   #28
DirtDart
Member
 
Registered: Nov 2003
Distribution: Mandrake 10.1/Solaris 10 (sparc)
Posts: 96

Rep: Reputation: 16
Quote:
someone else told me to assign it to DHCP, which I have done, but when I do it asks me to fill in a box for DHCP
Do you have your router (assuming its a broadband router) set up to hand out DHCP addresses? You can have your linux box ask for an IP address forever, if there isn't anything on the LAN handing them out, its not going to get one.

If you're XP box is running ok, find out what the IP address is of that, then just add one digit to the last octet, for instance, if your XP box has an IP address of 192.168.0.101, then assign your linux box an IP address of 192.168.0.102, and match the subnet mask (probably 255.255.255.0) of the XP box.
 
  


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
LAN with router and cable modem moonmoth Linux - Networking 1 07-15-2005 07:25 PM
Can't get to the internet through cable modem/router Myron Linux - Networking 4 03-03-2004 12:09 AM
Intenet through router and cable modem dhirajsharma Linux - Networking 4 09-24-2003 01:45 AM
For anyone with a cable modem and a router... strago Linux - Hardware 11 09-04-2003 04:04 PM
Cable modem with Netgear router using DHCP yamar Linux - Networking 1 05-26-2003 07:33 PM

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

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