LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-21-2013, 10:41 AM   #1
dserver
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
Cannot get ethernet to work on new slackware installation


Hi all,

Recently I've decided to install Slackware again and, as always when I've tried, I cannot get the internet to work. I've googled a bunch and nothing seems to work. Here's the output of various commands.

My output of lspci -v:
Code:
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
	Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
	Flags: bus master, fast devsel, latency 0, IRQ 75
	I/O ports at b000 [size=256]
	Memory at da104000 (64-bit, prefetchable) [size=4K]
	Memory at da100000 (64-bit, prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 01
	Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
	Capabilities: [d0] Vital Product Data
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Capabilities: [160] Device Serial Number 00-00-00-00-68-4c-e0-00
	Kernel driver in use: r8168
And ifconfig:
Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::96de:80ff:fe2d:7fc9  prefixlen 64  scopeid 0x20<link>
        ether 94:de:80:2d:7f:c9  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0
        device interrupt 75
Here's my /etc/rc.d/rc.inet1.conf:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

......
# Default gateway IP address:
GATEWAY="192.168.1.1" # availabe ip ranges are from .100 --> .140, if that matters
Here's my /etc/resolv.conf:
Code:
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
And some shell commands to show it doesn't work. My gateway is 192.168.1.1.
Code:
bash-4.2# ping 192.168.1.1
connect: Network is unreachable

bash-4.2# ping www.google.com
ping: unknown host www.google.com

I am dual booting with Windows which has internet so I know the card is good. Any help or suggestions would be greatly appreciated. Thanks!
 
Old 04-21-2013, 11:48 AM   #2
Mikro
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 40

Rep: Reputation: 17
try assigning an ipv4 and a route to the gateway

ifconfig eth0 192.168.1.101
route add default gw 192.168.1.1

Dån
 
1 members found this post helpful.
Old 04-21-2013, 01:02 PM   #3
dserver
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hey, sorry I took so long to respond. I was having trouble getting the output onto my usb stick Thanks for the reply!

So I did that and this is what happens:
Code:
root@jon:~# ifconfig eth0 192.168.1.101
root@jon:~# route add default gw 192.168.1.1
root@jon:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
root@jon:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.101 icmp_seq=2 Destination Host Unreachable
From 192.168.1.101 icmp_seq=3 Destination Host Unreachable
From 192.168.1.101 icmp_seq=4 Destination Host Unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- 192.168.1.1 ping statistics ---
16 packets transmitted, 0 received, +3 errors, 100% packet loss, time 15000ms
pipe 3
root@jon:~# ping www.google.com
ping: unknown host www.google.com
I'm positive that 192.168.1.1 is my router. When I connect via a browser it asks for my password. Is there something I need to configure on my router to make it accept requests from Slackware? It's weird because Windows connects up just fine (maybe that's not so weird, I have no idea )

Last edited by dserver; 04-21-2013 at 01:08 PM.
 
Old 04-21-2013, 02:32 PM   #4
Mikro
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 40

Rep: Reputation: 17
If windows connects, probably dhcp is up. Try

ifconfig eth0 down
dhcpcd eth0

Dån
 
1 members found this post helpful.
Old 04-21-2013, 03:55 PM   #5
dserver
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
that gives me
Code:
eth0: not configured to accept IPv6 RA's
I googled around and couldn't find any solution to this.
At this point I think I'm going to just order a PCIx nic card. I've been reading up on the Realtek 8111 that my motherboard has and it gives people nothing but headaches. If I can get it working I'll post back. Anyways, thanks for the help dude!
 
Old 04-21-2013, 07:10 PM   #6
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 806

Rep: Reputation: 159Reputation: 159
Specify "yes" for USE_DHCP[0] in your rc.inet1.conf and see if that helps.

Code:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
Also verify that 192.168.1.1 is really your gateway address. Boot Windows and logon to the http server in your router at that address to verify it.


I believe you can also request a lease from the dhcp server on your lan by just issuing the dhclient command as root. I haven't ever tried that.

For example, for interface eth0, issue:

Code:
dhclient eth0

Last edited by Z038; 04-21-2013 at 07:15 PM.
 
Old 04-21-2013, 07:33 PM   #7
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 806

Rep: Reputation: 159Reputation: 159
Did you run netconfig during your Slackware install and tell it you wanted to use DHCP?

By the way, I stumbled across this post in another thread that I think might help you:

https://www.linuxquestions.org/quest...6/#post4935529

There is a ton of great info in that post.
 
Old 04-21-2013, 09:46 PM   #8
dserver
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ok, I followed all the suggestions from above all to no avail. I was briefly hopeful when I noticed the line for eth0 in /etc/udev/rules.d/70-persistence-net.rules had the wrong driver. I changed that to r8168 and it still doesn't work. I went on newegg and bought a $30 nic that I know will work on linux out of the box (I know, I'm lazy ). ZO38 that is a great post! Thanks again for all the help guys! Wish I got it to work..

Last edited by dserver; 04-21-2013 at 09:47 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
[SOLVED] VIA Rhine ethernet card under Slackware 13.1 wont work. madsovenielsen Linux - Networking 3 03-02-2011 04:09 PM
Problems with ethernet driver installation on Slackware 12.1 (ASUS P5Q PRO mobo) stojadinovic Linux - Newbie 8 02-15-2009 09:14 AM
Tripped over ethernet cord, ethernet doesn't work anymore 1veedo Linux - General 2 10-21-2007 12:02 AM
mouse doesn't work, new slackware 10.2 installation fredx Linux - Hardware 5 12-08-2005 03:02 PM
after 2nd ethernet card installation the 1st doesn't work kpachopoulos *BSD 1 03-06-2005 05:38 PM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
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