LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware network setup help (https://www.linuxquestions.org/questions/slackware-14/slackware-network-setup-help-380984/)

roc 11-08-2005 12:06 AM

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.

slackhack 11-08-2005 12:30 AM

# ifconfig eth0 up
# dhcpcd eth0
$ ping google.com

Alien Bob 11-08-2005 04:14 AM

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

roc 11-08-2005 05:10 PM

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

rkelsen 11-08-2005 05:25 PM

Is the kernel module for your network card installed?

'lsmod' will tell you.

egag 11-08-2005 05:53 PM

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

egag

uopjohnson 11-08-2005 06:34 PM

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.

dannyl 11-08-2005 10:17 PM

Just a thought, are you sure your router is set up for dhcp or is it using static IP addresses?

roc 11-08-2005 10:19 PM

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.

uopjohnson 11-08-2005 10:24 PM

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?

roc 11-09-2005 12:06 AM

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.

roc 11-09-2005 11:04 PM

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.

gbonvehi 11-09-2005 11:45 PM

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"

roc 11-10-2005 12:30 AM

I tried to ping google with just the IP and I get a message telling me the network is unreachable. Thanks though.

Wormfood 12-06-2005 09:07 PM

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.


All times are GMT -5. The time now is 05:38 AM.