LinuxQuestions.org
Help answer threads with 0 replies.
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 09-23-2005, 11:17 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
network card doesnt work after i turn it off and on


my ethernet works, but if i do an "ifconfig eth0 down" and then turn it on again with "ifconfig eth0 up" it turns on but it doenst actually work, i cant access the internet but can ping other computers on my network. the only thing that fixes it is restarting and i was wondering why. can anybody help me?

Last edited by slinky2004; 09-23-2005 at 11:30 PM.
 
Old 09-23-2005, 11:36 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Do you use dhcp? Try using /etc/rc.d/rc.inet1 stop && /etc/rc.d/rc.inet1 start
 
Old 09-24-2005, 12:24 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
If using dhcpcd, you should release the dhcp lease using dhcpcd -k eth0 as this will both take down the connection and properly release the ip lease.
 
Old 09-24-2005, 09:45 PM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
dhcpcd -k eth0 and dhcpcd eth0 worked, and so did running rc.inet1 stop, rc.inet1 start. for some reason rc.inet1 restart doesnt work tho. and why dhcpcd? apparently dhcpd and dhclient are installed but they dont do anything... it took me ten minutes of messing around with dhcpd to catch that extra c
 
Old 09-24-2005, 10:39 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by slinky2004
dhcpcd -k eth0 and dhcpcd eth0 worked, and so did running rc.inet1 stop, rc.inet1 start. for some reason rc.inet1 restart doesnt work tho. and why dhcpcd? apparently dhcpd and dhclient are installed but they dont do anything... it took me ten minutes of messing around with dhcpd to catch that extra c
dhcpd is the dhcp server
dhcpcd is the client

I am guessing its for "daemon" and "client daemon" respectively - but I could be wrong

rc.inet1 doesn't seem to have a "restart" case (at least the version I'm using):

Quote:
case "$1" in
'start') # "start" brings up all available interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
;;
'stop') # "stop" takes down all existing interfaces:
gateway_down
eth_down 3
eth_down 2
eth_down 1
eth_down 0
lo_down
;;
*) # The default is to bring up all interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
esac
# End of /etc/rc.d/rc.inet1
 
Old 09-24-2005, 10:59 PM   #6
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
mine didnt complain when i gave it a restart parameter, i guess it just did the default case. it never occurred to me to look at the script

Last edited by slinky2004; 09-24-2005 at 11:02 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
Old ethernet card doesnt work witchodealba Linux - Networking 3 07-15-2005 03:30 PM
3D graph.manipulation slows my computer until turn off & on again(reboot doesnt work) linuxero Linux - General 2 09-01-2004 05:17 AM
My network card doesnt work? Davicom DM9102AF chipset entob *BSD 7 08-19-2004 05:07 PM
network doesnt work on startup OneManArmy Linux - Networking 1 04-10-2004 12:03 PM
Sound card doesnt work Ackin Linux - Newbie 1 09-02-2003 07:34 PM

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

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

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