LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NIC detected, but no connectivity (https://www.linuxquestions.org/questions/slackware-14/nic-detected-but-no-connectivity-535826/)

PressAnyKey 03-08-2007 07:12 PM

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.

H_TeXMeX_H 03-08-2007 07:56 PM

Can you use DHCP ? If so, it is much easier.

onebuck 03-09-2007 08:14 AM

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.

PressAnyKey 03-09-2007 11:22 AM

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.


All times are GMT -5. The time now is 12:10 PM.