Helpful Information
 
 
Category: Networking Help
Yet another newbie, networking problem...

Hi,

I'm a complete newbie - and still I've just installed Mandrake Linux 9.1...
My problem is as follows... I have windows xp installed on a seperate partition on my hdd, and form windows my internet connection works perfectly fine... And in Linux I simply can't sem to make it work...
What I have, is an ADSL conection which goes through a router (Cisco 677) with a static IP, address...
I've tried to configure it through the "mandrake control center", using the wizard, though also through linuxconf... And yet nothing seems to work...
The info I have from my service provider includes:
my lan IP
my gateway's (the router) ip
Primary and secondary DNS
and subnetmask

It should be just a trivial setup, though I just can't make it work...
Any help would be appreciated

Thanks in advance

Kris

P.S. Pardon my spelling - I'm not only a Windows user - I'm Danish too...

assuming you have your network card drivers installed
try this dhcpd eth0 as root ofcourse

in the following,
replace 10.0.0.2 with your IP
replace 255.0.0.0 with your netmask
replace 10.0.0.1 with your gateway/router IP
replace 10.0.53.1 and 10.0.53.2 with your DNS server IPs


# ifconfig eth0 10.0.0.2 netmask 255.0.0.0 up
# route add default 10.0.0.1
# echo 'nameserver 10.0.53.1' > /etc/resolv.conf
# echo 'nameserver 10.0.53.2' >> /etc/resolv.conf


If this doesn't work until you reboot, then you need to compile
the driver for your network card into your kernel.


# cd /usr/src/linux
# make menuconfig
# make dep clean bzImage
# make modules modules_install


and read the docs for your bootloader (lilo or whatever)

rfc791 --> I did as you said (almost), and here's the output...

Before doing anything the 'ifconfig' and the 'route' looked like this:

#eth0 Link encap:Ethernet HWaddr 00:10:DC:C3:2D:DA
# UP BROADCAST RUNNING 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:19 Base address:0xec00
#
#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:58 errors:0 dropped:0 overruns:0 frame:0
# TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
# collisions:0 txqueuelen:0
# RX bytes:3808 (3.7 Kb) TX bytes:3808 (3.7 Kb)

#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

And pinging would only return "Network is unreachable"...

After following you steps it looked like this:

#eth0 Link encap:Ethernet HWaddr 00:10:DC:C3:2D:DA
# inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
# UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
# RX packets:0 errors:0 dropped:0 overruns:0 frame:0
# TX packets:0 errors:0 dropped:13 overruns:0 carrier:0
# collisions:0 txqueuelen:100
# RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
# Interrupt:19 Base address:0xec00
#
#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:101 errors:0 dropped:0 overruns:0 frame:0
# TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
# collisions:0 txqueuelen:0
# RX bytes:6736 (6.5 Kb) TX bytes:6736 (6.5 Kb)

#Kernel IP routing table
#Destination Gateway Genmask Flags Metric Ref Use Iface
#192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
#127.0.0.0 * 255.0.0.0 U 0 0 0 lo
#default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

And when trying to ping the router/gateway it looked like this (though, now I was able to ping my own IP):

#PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
#From 192.168.1.2 icmp_seq=1 Destination Host Unreachable
#From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
#From 192.168.1.2 icmp_seq=3 Destination Host Unreachable
#
#--- 192.168.1.1 ping statistics ---
#3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2016ms
#, pipe 3

As you suggested I think the problem must be with the driver (since it works in win XP...) But how do I know what driver to use?? Cause Mandrake has automatically installed what appears to be the right driver..?
My nic is a SiS 900 onboard lan interface - and that's even what mandrake is suggesting...?

I'm really getting quite desperate now - So I hope someone will be able to come to my rescue..?

Thanks in advance

Kris - the desperate Dane

P.S. If you think you need more info in order to help me - then please let me know!!

I no longer think you have a driver problem.

try simply


# ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up


after a reboot and then see if you can't


# ping 192.168.1.1


You can ping it from your other O/S, right?

Hi,

Finally made it work...

Apparently I had to boot with no apic...
Why I have to do so, I don't know - but apparently some other guy had the same problem with the same nic...

But thanks for your help, it was much appreciated!

Kris










privacy (GDPR)