LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-17-2007, 02:53 AM   #1
slacknewb
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
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 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
 
Old 05-17-2007, 02:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
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.
 
Old 05-17-2007, 03:38 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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).

Last edited by Alien_Hominid; 05-17-2007 at 03:40 AM.
 
Old 05-17-2007, 04:24 AM   #4
slacknewb
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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.

 
Old 05-17-2007, 10:49 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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?
 
Old 05-17-2007, 11:46 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Run 'netconfig'. Don't put in any IP address whetsoever. Just use DHCP. There is an option for that.
 
Old 05-17-2007, 09:38 PM   #7
slacknewb
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 05-18-2007, 09:03 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Bump for your post. Do not know what else (tulip driver is loaded) could be causing troubles.
 
Old 05-18-2007, 09:24 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
Network Problem with 2 network cards on the same subnet on Redhat seb.its Linux - Networking 6 12-24-2005 03:16 AM
Problem with setting up network card / network ssmeets Linux - Hardware 3 11-03-2005 03:46 PM
Fine network configutarion but network problem, why? papitu76 Linux - Networking 5 06-17-2004 02:05 PM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 03:26 PM


All times are GMT -5. The time now is 08:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration