LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-08-2005, 12:06 AM   #1
roc
Member
 
Registered: Dec 2004
Posts: 51

Rep: Reputation: 15
Slackware network setup help


Hello all, I'm trying to get an Internet connection to my laptop running slack 10.1. I've been to the slack website and have followed the directions especially netconfig command.
My current setup is that I have a linksys wireless access point router (w/ the wi-fi turned OFF).

I connect my laptop (hardwired) to the router and then run netconfig which asked me to name my system and then my domain name. Netconfig then asked me for the dhcp option, which I choose. So basically I'm trying to get dhcp to work but It's not working because every time I run ping I get unknown address. Any help on this would be great, thank you.
 
Old 11-08-2005, 12:30 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
# ifconfig eth0 up
# dhcpcd eth0
$ ping google.com
 
Old 11-08-2005, 04:14 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,225

Rep: Reputation: Disabled
Maybe your router does not tell your Linux box the IP address of a DNS Server?

Try
Code:
ping 64.179.4.149
and see eif that gives a response (www.linuxquestions.org has address 64.179.4.149). If you get a ping from the IP address, that means that your internet connection is OK, but that your name resolving does not work.

In most cases with a broadband router, that can be fixed by correctly configuring the router to hand out the IP address for your ISP's DNS server to any DHCP client that asks for a n IP address.
The dhcp client program in Slackware will use that information to re-write the file /etc/resolv.conf which should end up looking a little like:
Code:
domain <your.ISPs.domain>
nameserver <your.ISPs.nameserver.ip>
Eric
 
Old 11-08-2005, 05:10 PM   #4
roc
Member
 
Registered: Dec 2004
Posts: 51

Original Poster
Rep: Reputation: 15
Hey slack I tried what you mentioned but still no luck. Eric I also tried to ping linuxquestions and I got reponse stating the network is not reachable. Any help on this guys would help out alot. I can't figure out why my system won't take the needed info from my router. Anyhelp would be great. Thanks
 
Old 11-08-2005, 05:25 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 160Reputation: 160
Is the kernel module for your network card installed?

'lsmod' will tell you.
 
Old 11-08-2005, 05:53 PM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
just run ( as root ) " /etc/rc.d/rc.inet1 restart "
after that,check " ifconfig " for interfaces.

egag
 
Old 11-08-2005, 06:34 PM   #7
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
Do you have any other systems on the router? Can they access the internet? Can you ping them? Log into your routers web control panel and click status and make sure that your router has properly picked up an ip address and some dns servers.

back on your computer try running
Code:
dhcpcd -d -k
which will restart your dhcp connection and output errors to syslog where you can view them with
Code:
tail -f /var/log/messages
this should give you an idea of where the problem is.
 
Old 11-08-2005, 10:17 PM   #8
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Rep: Reputation: 15
Just a thought, are you sure your router is set up for dhcp or is it using static IP addresses?
 
Old 11-08-2005, 10:19 PM   #9
roc
Member
 
Registered: Dec 2004
Posts: 51

Original Poster
Rep: Reputation: 15
Ok I ran ifconfig -a and it comes back with eth0 and lo. So I'm assuming that the my system has found that there is a nic.

I'm sure my router is working ok because I have knoppix runing and it is using the Net fine.

I ran dhcpcd -d -k and the one time I got a message about the Internet Consortum (spelling) but then I ran the command again and I get a message telling me that dhcpcd is off. Now I ran /etc/rc.d/rc.inet1 restart so maybe this is why the system is now telling me that dhcpcd is off. Thanks for the help so far eveyone.
 
Old 11-08-2005, 10:24 PM   #10
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
Once dhcp is off you can run the dhcpcd command with no -k switch to start it back up, the -d sets it to log to syslog. Check out man dhcpcd for more info. When you say you ran knopix, I'm assuming that it is on the same machine? So this isn't a cable problem?
 
Old 11-09-2005, 12:06 AM   #11
roc
Member
 
Registered: Dec 2004
Posts: 51

Original Poster
Rep: Reputation: 15
I'm running knoppix on another system, but I just ran ubuntu (sp) on the system I'm trying to get net accces on (a laptop) and it worked fine so I'm sure its not the cable plus I don't think it's the router since I was able to ping my other machine fine.

To get dhcpcd to run I have to run dhcpcd -k -d? If so I tried this early but I will give it a shot again tomorrow. Thanks for the help.
 
Old 11-09-2005, 11:04 PM   #12
roc
Member
 
Registered: Dec 2004
Posts: 51

Original Poster
Rep: Reputation: 15
Ok I tried dhcpcd -d, in return I get a mac address but still no net connection because then I ran ping yahoo and I get unknown host. I also ran ifconfig any my eth0 is still not finding and of my DHCP settings.

I read the man for dhcpcd and found that I can log messages from the service . According to the man if I add the lines local0.* /var/log/dhcpcd.log, and then "refresh" it by running kill -1 'cat /var/run/syslogd.pid', it should record what is going on but I get a reply fron the system stating arguments must be process or job IDs.

Any help on resolving this would be great, thank you.
 
Old 11-09-2005, 11:45 PM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You should try pining a IP address like: 72.14.207.99 (google.com) maybe the problem are the DNS servers not being set and that's why you're getting "unkown host"
 
Old 11-10-2005, 12:30 AM   #14
roc
Member
 
Registered: Dec 2004
Posts: 51

Original Poster
Rep: Reputation: 15
I tried to ping google with just the IP and I get a message telling me the network is unreachable. Thanks though.
 
Old 12-06-2005, 09:07 PM   #15
Wormfood
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Question

I'm having the same issue. Converting a VPR Matrix FT4100 PC to a Linux machine. Ethernet card is integrated Intel 10/100. Internet connection is DSL into a Netgear MR314 router. DHCP is working on the router, have Windows XP and Two Laptops running XP connecting to the router via wireless. The network card and the router both show the wire is good and connected, but no traffic.

Ping returns "Network unreachable:"

"dhcpcd eth0" returns the MAC address of the card, then stops responding, if I leave it sit it will eventually return to my root prompt.

dhcpcd -d -k returns dhcp:not running
./rc.inet1 restart returns dhcp not running and dhcp:MAC address
then sits and eventually returns to the root prompt.

In KDE xwindows under network interfaces the only interface shown is lo with IP 127.0.0.1 Mask 255.0.0.0 Type Loopback.

ifconfig -a returns
eth0 Link encap:Ethernet HWaddr: MAC Address
BOADCAST MULTINET MTU:1500 Metric:1
RX packets: 0 .....
TX packets: 48 .....
collisions: 0
RX bytes 0 .....
Interrupt 11 Base Address:0xb000


lsmod does not return a eth0 module or atleast nothing in the "used by" list looks like my network card


Never had problems with the Fedora Core or Mandrake on Windows Virtual Machine obtaining their own address off the router. I think I'm missing some kind of driver that tell slackware how to use my card, but I'm open to any other things that would solve my problem.

Last edited by Wormfood; 12-06-2005 at 09:13 PM.
 
  


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
Trying to setup a network share with slackware and a mac GTX440 Linux - Networking 3 10-28-2004 12:31 PM
Slackware 10.0 Network/Internet setup Cryptic_K Slackware - Installation 11 08-23-2004 06:35 PM
Network Printer Setup on Slackware 9.1 seagoj Linux - Networking 1 04-03-2004 05:18 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM


All times are GMT -5. The time now is 10:23 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