Click to See Complete Forum and Search --> : Damn you eth0, WORK!


LinuxNewbiex
07-22-2000, 11:54 PM
OK... i can't get my eth0 card working. No luck pinging my gateway or anything else and all cofigurations are correct! Need the details?

from "ifconfig"

eth0
Link encap:Ethernet HWaddr 00:E0:29:3F:06:9E
inet addr:63.248.1.204 Bcast:63.248.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:17850 overruns:0 frame:35700
TX packets:0 errors:95 dropped:0 overruns:95 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xe400

from "route"

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
63.248.1.204 63.248.1.1 255.255.255.255 UGH 0 0 0 eth0
63.248.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

HELP!

------------------
I'm a LinuxNewbie!

Lorithar
07-23-2000, 05:29 PM
*grins*

You have no default route ... and you can only see the network 63.248.1.0 -- you need to add a route that looks like this

0.0.0.0 63.248.1.1 0.0.0.0 UG 0 0 eth0

first .. ping 63.248.1.1 -- if you get response the card works,
if so do
route add -net 0.0.0.0 gw 63.248.1.204 netmask 0.0.0.0 eth0
This sets your default route and tells tcpip that any address it doesn't know about can be reached through the network 63.248.1.0 on eth0.

Check your start up files .. this should be automatic..

Glurks ... checking that out again .. what is eth0 connected to? I note that you have framing errors on eth0 .. I would suspect that you aren't driving with the right framing type... If this eth0 is plugged into a DSL modem, the problem may lie with the ppp connection that runs through it not setting the ethernet parameters properly ..
If it is plugged into a pure ethernet connection (to a hub on a known good network, check the mode the network is running in (10/100 half full duplex) and make sure the card is not hard set differently.. I personally don't reccommend using autosense anything on networks...
You may need a dos bootdisk and the card's management software to check this...

[This message has been edited by Lorithar (edited 23 July 2000).]

VRay
07-23-2000, 06:43 PM
How can I edit the route file you speak of? I have a similar problem - I can ping everything, but I seem to have no route to connect eth0 to lo so the hostname cannot be resolved. Any ideas?

LinuxNewbiex
07-23-2000, 10:59 PM
Still can't ping my gateway! My NIC is connected to a DSL modem, i'm always connected. I added the additional route info and this is what I got:

eth0 Link encap:Ethernet HWaddr 00:E0:29:3F:06:9E
inet addr:63.248.1.204 Bcast:63.248.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:6120 overruns:0 frame:12240
TX packets:0 errors:69 dropped:0 overruns:69 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:61 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

this shows up in "route"
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
63.248.1.204 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
63.248.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 63.248.1.204 0.0.0.0 UG 0 0 0 eth0
--0.0.0.0 63.248.1.1 0.0.0.0 UG 0 0 0 eth0
NOTE: the last line doesn't show up (only in "netstat" with the rest of the IP TABLE)

arowland
11-02-2000, 06:36 PM
Umm...

I keep wondering about that first line:
63.248.1.204 63.248.1.1 255.255.255.255 UGH 0 0 0 eth0

Shouldn't that be 255.255.255.1 ?

Have you tried: ...Mask:255.255.255.1
?

Your mileage may vary.

[This message has been edited by arowland (edited 02 November 2000).]

Fandelem
11-02-2000, 07:10 PM
okay.. hmm i'm gonna try to help, but as arrow said, your mileage may vary http://www.linuxnewbie.org/ubb/smile.gif

here is my output from route:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
209.212.128.10 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 209.212.128.10 0.0.0.0 UG 0 0 0 ppp0


okay.. comparing it to yours, it checks out alright.. you have 0.0.0.0 pointed to your IP address, you are on the 63.248.1.0 network, you have localhost up and running.. the next step is to see if you can ping yourself..

ping localhost

does that work?

oh hey! maybe someone else can see if this is right or not, but i think:
inet addr:63.248.1.204 Bcast:63.248.1.255 Mask:255.255.255.0

should this be different because 255.255.255.0 is a class C network and 255.0.0.0 is a class A?

although.. the DHCP server is giving him this probably.. so it's gonna be their fault (if this matters?).

do you have any firewall setup? do you simply type dhcpcd ? how do you go about getting your IP address?

i wish my city would start offering cable... i could probably be a lot more help if they did.. hrrpmh.

ah hah! wait.. in your routing table, you have:

63.248.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

maybe you could try:
63.248.1.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0



[This message has been edited by Fandelem (edited 02 November 2000).]

jcray
11-03-2000, 11:07 PM
what is the are the ip addresses on your gateway?

If you have a gateway, then why do you have a legal ip address instead of a private one on your box?

Where did you get the ip address? did you just type it in or was it assigned through dhcp?

255.255.255.0 is a valid netmask
255.255.255.1 is not a valid netmask
a netmask must begin with all ones and end with all zeros when converted to binary:
255.255.255.0 = 11111111 11111111 11111111 00000000
255.255.255.1 = 11111111 11111111 11111111 00000001

jcray
11-03-2000, 11:12 PM
umm, wait a minute - why are we replying to a post that the originator hasn't replied to since july?

mdwatts
11-04-2000, 10:11 AM
I guess someone had nothing better to do than resurrect old and forgotten posts.

Phuzon
11-06-2000, 03:22 AM
it was arrow! He did it!

Oh, by the way, check the net howto. Everything you need is in there.