LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-12-2005, 12:34 PM   #1
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
ethernet setup


didn't setup ethernet during the install of slack 10.1 but I did have the card in there and I want to set it up now. netconfig didn't work, ifconfig displays it as loopback running and dchpcd eth0 just locks up. can't copy and paste so i'll type as much as I think is needed.

ifconfig -a:

eth0: doesn't really show anything I can understand
lo: Link encap: local loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX & TX packets 244 and 0 for all else there
RX & TX bytes:18412 (17.9Kb)

rc.inet1.conf:

# config infor for eth0
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

#default gateway ip addy
GATEWAY=""

ran netconfig before this, setup for dhcp and restarted and still nothing.
I have 4 other computers running windows on DHCP linksys router that are running fine so its not my network.

lspci returns:

01:11.0 Ehternet controller: Lite-On Communications Inc LNE100TX (rev 20)
Pretty sure this is the etho card (thought it was a netgear card though)

I've been trying to figure this out for an hour and don't want to have to reinstall slackware again just to get internet running.
 
Old 03-12-2005, 12:38 PM   #2
biniar
Member
 
Registered: Jan 2004
Location: Michigan
Distribution: OpenBSD
Posts: 50

Rep: Reputation: 16
Firstly you should goto your router configuration page on another computer that is online. Go get the information you need from your router. Then put that information in the configuration file and BAM, you've got yourself online (hopefully).


Hope that helps you out!
 
Old 03-12-2005, 12:41 PM   #3
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
shouldn't dhcpcd eth0 work to grab the information it needs? It just locks up on mine.
 
Old 03-12-2005, 01:19 PM   #4
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
nobody knows how to setup a network connection?
 
Old 03-12-2005, 01:27 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you post complete ' ifconfig -a ' output ?
 
Old 03-12-2005, 01:39 PM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
are the correct kernel modules loaded?

if you can run the following as root

ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
ifconfig -a
ping 192.168.0.1

that will tell you if your card has the correct drivers installed.

then run

pkgtool [setup][netconfig] and select dhcp

all should now work.
 
Old 03-12-2005, 01:42 PM   #7
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
eth0
Link encap:Ethernet HWaddr 00:A0:CC:D2:7A:2A
inet addr:182.168.1.120 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107 errors:174 dropped:0 overruns:0 frame:170
TX packets:0 errors:26 dropped:0 overruns:0 carrier:26
collision:0 txqueuelen:1000
RX bytes 15.5Kb TX bytes: 0
Interrupt:5 Base address:0x1400

lo
Link encap: local loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX & TX packets 244 and 0 for errors/dropped/overruns/frame/carrier/collisions/txqueuelen
RX & TX bytes:18412 (17.9Kb)

I tryed entering manual ip addresses in the rc.inet1.conf file so they are showing up there in ifconfig -a but before it gave me BOARDCAST MULTICAST in all the address places.

Last edited by xaos5; 03-12-2005 at 01:44 PM.
 
Old 03-12-2005, 01:50 PM   #8
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
samac tryed that and ping worked for 192.168.1.120 (thats what I put in for ifconfig) and I did a cntrl C and told me 10 packets transmitted, 10 received. I did the pkgtool/netconfig and still no internet.

update: it will ping my windows xp computer when I have sygate firewall off so its on the network just no internet?

Last edited by xaos5; 03-12-2005 at 01:54 PM.
 
Old 03-12-2005, 01:53 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe you should give your router IP for the GATEWAY value in /etc/rc.d/rc.inet1.conf
(don't quote me on this though, I don't know well dhcp config)
 
Old 03-12-2005, 01:57 PM   #10
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
it updated my console from darkstar@root to sony@root so its doing something at least I put in 192.168.1.1 for default gateway as thats what my windows machine is giving me. I'm reboot and seeing if that does anything.
 
Old 03-12-2005, 01:57 PM   #11
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Does your router have a static IP if so put that IP address in the gateway section of rc.inet1.conf then restart rc.inet1.

have you a nameserver running ie. rc.bind

is your firewall configured to allow internet sharing

samac
 
Old 03-12-2005, 02:05 PM   #12
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
router shows:
ip address 192.168.1.1
subnet mask: 255.255.255.0
DHCP server: Enabled

I'm using both static and DHCP
DHCP starts at 192.168.1.1 or 2
I put all my static at 192.168.1.100 and up

in rc.inet1.conf i have the gateway as 192.168.1.1
 
Old 03-12-2005, 02:10 PM   #13
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by samac
Does your router have a static IP if so put that IP address in the gateway section of rc.inet1.conf then restart rc.inet1.

have you a nameserver running ie. rc.bind

is your firewall configured to allow internet sharing

samac
I don't know what the nameserver is (rc.bind)
What would internet sharing have to do with linux, wouldn't that only effect the windows machine?
 
Old 03-12-2005, 02:10 PM   #14
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Internet sharing (just used it as a generic term) probably better described as can your firewall allow other computers to access the internet through the router (NAT translation?)

You need to be able to access a nameserver to translate IP addresses to URL's. Bind is a linux nameserver.

Looks like my knowledge has just run out. Your setup looks similar to mine and my setup works with settings like yours.

I will get back if anything springs to mind.

samac

Last edited by samac; 03-12-2005 at 02:15 PM.
 
Old 03-12-2005, 02:13 PM   #15
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
alright thanks, weird that I can get a ping to all my other computers but I can't reach outside the network like internet.

if you know anybody else that knows networking bring them in here please.

Last edited by xaos5; 03-12-2005 at 02:15 PM.
 
  


Reply



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
Gentoo Ethernet Setup fitzavig Linux - Networking 1 09-08-2004 12:09 PM
Need help with ethernet setup in Gentoo( During setup proccess) MimiMimi Linux - Distributions 2 07-19-2004 01:34 PM
Setup ethernet sellsw1711 Linux - Newbie 2 03-19-2004 08:53 PM
Ethernet Adapter Setup crhblack Linux - Networking 7 01-29-2002 05:57 PM
Ethernet Setup hank@$3800 Linux - General 2 01-14-2002 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:10 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
Open Source Consulting | Domain Registration