LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Network Problem (https://www.linuxquestions.org/questions/slackware-14/network-problem-554552/)

slacknewb 05-17-2007 02:53 AM

Network Problem
 
Greetings! I just installed Slackware 11 kernel 2.6.17.13 and it's kernel modules and headers but I can't get it to connect to the internet. My NIC connects to a router/modem and no other boxes share this connection. I am using ADSL that uses a DHCP protocol.

This are the info my ISP gave me

Subnet Mask: 255.255.240.0
DHCP Server/Default Gateway: 122.2.96.1
DNS: 58.69.254.133 and 58.69.254.71

This is my resolv.conf
search pldt.net
nameserver 58.69.254.133
nameserver 58.69.254.71

This is my /etc/rc.d/rc.inet1
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]="255.255.240.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Default gateway IP address:
GATEWAY="122.2.96.1"

My ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:A1:1D:08:0B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:7470 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:532744 (520.2 KiB) TX bytes:5188 (5.0 KiB)
Interrupt:11 Base address:0x2c00

My lsmod
tulip 46240 0

My dmesg
tulip0: MII transceiver #1 config 3100 status 7809 advertising 01e1.
eth0: Davicom DM9102/DM9102A rev 64 at e0c82c00, 00:08:A1:1D:08:0B, IRQ 11.

I also added these lines in lilo.conf
append = "ether=irq,ioadd,eth0"
append = "ether=11,0x300,eth0"

And still no connection :cry: I don't know if I missed anything, I hope someone can advise me what to do because I'm really struggling to get this box online. Thanks in advance :)

acid_kewpie 05-17-2007 02:57 AM

why are you trying to configure 80% of what DHCP is there to provide you with? just set the interface to use dhp, remove all the other manual details and try again.

Alien_Hominid 05-17-2007 03:38 AM

From what you posted, you don't get IP address at all. Firstly we must solve this problem. Do you get any errors while dhcpcd is quering your router.

Ifconfig should look like this:
Quote:

eth0 Link encap:Ethernet HWaddr 00:13:D3:99:52:BC
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:d3ff:fe99:52bc/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23996 errors:0 dropped:0 overruns:0 frame:0
TX packets:25297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20229294 (19.2 MiB) TX bytes:3980445 (3.7 MiB)
Interrupt:10 Base address:0xd000
There are IP addresses (and I'm also using dhcp).

slacknewb 05-17-2007 04:24 AM

Hello everybody.

For acid_kewpie's post, yes I did try that. I just setup the network connection via netconfig but its not connecting as well, during boot time it hangs for a couple of minutes where it says dhcpcd then resumes, and when i do ifconfig the eth0 is still not getting an ip.

For Alien_Homnid's post i tried putting 192.168.1.1, 192.168.1.2, 192.168.1.100 but those too didn't work.

I am certain that 192.168.1.1 is the ip of the router.

These are the messages I get when dhcpcd is queerying the router;

/etc/rc.d/rc.inet1: /sbin/ifconfig eth0 192.168.1.100^M broadcast 192.168.15.255 netmask 255.255.240.0^M
/etc/rc.d/rc.inet1: /sbin/route add default gw 122.2.96.1^M metric 1
May 17 16:56:38 slackbox logger: SIOCADDRT: Network is unreachable

This is from /var/log/messages.

Thank you guys for your replies I really do appreciate all of them.

:)

Alien_Hominid 05-17-2007 10:49 AM

That's my local ip adress, not the router's. You shouldn't put any address at all if you use dhcp.

What card do you have?
What is lsmod output?

H_TeXMeX_H 05-17-2007 11:46 AM

Run 'netconfig'. Don't put in any IP address whetsoever. Just use DHCP. There is an option for that.

slacknewb 05-17-2007 09:38 PM

Hello everybody.

Yes H_TexMex_H, I've already tried netconfig/DHCP but the problem is that everytime I restart dhcpcd;
root@slackbox:~# /etc/rc.d/rc.inet1
dhcpcd: MAC address = 00:08:a1:1d:08:0b <-- it hangs there for a couple of minutes after that I still get no ip

root@slackbox:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:A1:1D:08:0B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2621 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164883 (161.0 KiB) TX bytes:7328 (7.1 KiB)
Interrupt:11 Base address:0x2c00

Alien_Horminid my card is a CNET200PRO Fast Ethernet Card and this is my lsmod output.

Module Size Used by
psmouse 34952 0
ipv6 223584 10
snd_seq_dummy 2820 0
snd_seq_oss 28928 0
snd_seq_midi_event 5888 1 snd_seq_oss
snd_seq 43984 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 38048 0
snd_mixer_oss 15616 1 snd_pcm_oss
sg 26524 0
pcmcia 30116 0
yenta_socket 23436 0
rsrc_nonstatic 10752 1 yenta_socket
pcmcia_core 34192 3 pcmcia,yenta_socket,rsrc_nonstatic
snd_cmipci 29344 0
gameport 10760 1 snd_cmipci
evdev 8064 0
shpchp 33816 0
sis_agp 6020 1
agpgart 28080 1 sis_agp
i2c_sis96x 4740 0
tulip 46240 0
serio_raw 5252 0
snd_opl3_lib 8448 1 snd_cmipci
snd_hwdep 6660 1 snd_opl3_lib
snd_mpu401_uart 6016 1 snd_cmipci
snd_rawmidi 18720 1 snd_mpu401_uart
snd_seq_device 6284 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmid

Thank you guys for your patience.

Alien_Hominid 05-18-2007 09:03 AM

Bump for your post. Do not know what else (tulip driver is loaded) could be causing troubles.

onebuck 05-18-2007 09:24 AM

Hi,

The OP needs to post his complete '/etc/rc.d/rc.inet1.conf' file. So we can really see what's happening.

What type of ADSL modem? Is this a static IP assignment from ISP for the modem?

What is the output of 'route -n'? Need to see the route table!


All times are GMT -5. The time now is 02:26 PM.