Can't connect to the network, in Linux

x0lution

Member
Oct 31, 1999
175
0
0
Hi. I'm running Debian GNU/Linux (2.2r3) and kernel 2.4.9. I'm having some trouble connecting to the internet, this is what i type in-

ifconfig eth0 up 152.30.103.211 netmask 255.255.240.0
route add default gw 152.2.100.1

Right after I do that last command (route), it used to give me-

SIOCADDRT: Network is unreachable

But the last time I did it it gave me this-

SIOCADDRT: Device not found (Something to that extent... can't remember exactly).

If I do just 'ifconfig' it gives me this-

eth0 Link encap:Ethernet HWaddr 02:00:08:E3:FC:A7
inet addr:152.30.103.211 Bcast:152.30.255.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1343 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xb800

plus the usual local loopback stuff. I'm using a Netgear FA310TX card. If anyone can help, or needs more information, it'd be greatly appreciated. Thank you for your time.
 

JERR

Senior member
Jul 21, 2000
348
0
0
your gateway is not on your local subnet. Why are you using class B mask?