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 03-08-2007, 07:12 PM   #1
PressAnyKey
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
NIC detected, but no connectivity


I'm running Slackware 11.



I have not been able to ping the gateway (router which slackbox is connected directly to).


I can ping lo (loopback) but nothing else.

The results of ifconfig -a displays all adapters and they appear to be detected, one even has an IP address assigned.


I ran netconfig, and I assign a manual IP address, however no adapters get this address after running netconfig.

eth0 has an IP addr, and subnet mask.


When I try to add a default gateway to the routing table I get:

"SIOCADDRT: Network is unreachable."


**Updated**

I edited /etc/rc.d/rc.inet1.conf and specified static IP's for all three of the adpaters including 2 hardwired NICS and 1 wireless NIC.

Afterwards I could connect directly to the router/gateway. I cannot however ping past the router. I'm sure I need to add some more routes to get out, but I assumed having the default gateway would takecare of everything.
 
Old 03-08-2007, 07:56 PM   #2
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
Can you use DHCP ? If so, it is much easier.
 
Old 03-09-2007, 08:14 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,040
Blog Entries: 1

Rep: Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366Reputation: 1366
Quote:
Originally Posted by PressAnyKey
I'm running Slackware 11.

I have not been able to ping the gateway (router which slackbox is connected directly to).

I can ping lo (loopback) but nothing else.

The results of ifconfig -a displays all adapters and they appear to be detected, one even has an IP address assigned.

I ran netconfig, and I assign a manual IP address, however no adapters get this address after running netconfig.

eth0 has an IP addr, and subnet mask.

When I try to add a default gateway to the routing table I get:

"SIOCADDRT: Network is unreachable."

**Updated**

I edited /etc/rc.d/rc.inet1.conf and specified static IP's for all three of the adpaters including 2 hardwired NICS and 1 wireless NIC.

Afterwards I could connect directly to the router/gateway. I cannot however ping past the router. I'm sure I need to add some more routes to get out, but I assumed having the default gateway would takecare of everything.
Hi,

Post the output as root;
Code:
#ifconfig -a                   #net device
#route -n                      #route table
#cat /etc/resolv.conf          #DNS
You could just try;
Code:
#ifconfig eth0 192.168.0.10       #set static IP
#route add default gw 192.168.0.1 #gateway route
#ping 192.168.0.1                 #ping GW
#ping 64.233.187.99               #ping google IP
#ping google.com                  #ping google.com chk DNS
Make sure the system works statically then you can setup with the /etc/rc.d/rc.inet1.conf. When you have the configure file setup then run '/etc/rc.d/rc.inet1 restart' to init the inet.

Last edited by onebuck; 03-09-2007 at 08:16 AM.
 
Old 03-09-2007, 11:22 AM   #4
PressAnyKey
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guy.


I actually restarted the machine, and after it game back up, volia, it was working.


Now I need to get wireless working, lol.
 
  


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
My nic doesn't get detected nc3b Debian 2 05-01-2006 01:31 AM
NIC Of NIC/Graphics Card Combo Not Detected username132 Linux - Hardware 2 04-04-2006 10:16 PM
Orange Light on NIC no connectivity? neilcpp Linux - Networking 7 08-19-2005 05:27 PM
nic not detected gnmabc Linux - Networking 7 06-13-2005 04:57 PM
1 NIC + 1 NIC = 0 connectivity michaelsanford Linux - Networking 2 04-11-2005 12:01 PM


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