LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-01-2006, 05:36 AM   #1
Rolgar
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
DHCP and cable modem


I have cable internet and a Debian Etch install. I don't like to leave my cable modem on all the time, so I unplug the power on it when not in use. Sometimes when I plug it back in, it doesn't connect to the internet properly, typically if it has been 10-12 hours since the last time I used it. Rebooting fixes the problem, but I'd like to be able to run a command or script to fix it without the reboot.

The only thing I've really found so far is through running the route command.

When it's working correctly, route reveals this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.255.224.0 * 255.255.224.0 U 0 0 0 eth0
default ip24-255-224-1. 0.0.0.0 UG 0 0 0 eth0


When I can't connect to the internet, the routing table looks like this.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.255.224.0 * 255.255.224.0 U 0 0 0 eth0

I've tried manually adding the default route, but maybe I entered it wrong, I've tried taking the eth0 down and back up. Maybe I just need to manually run DHCP? Anybody have any ideas?

I appreciate any help anybody might have. Thanks.
 
Old 11-01-2006, 07:21 AM   #2
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Maybe you just need to refresh the network interface (I assume it's eth0) once you've plugged the cable modem back in.

As root, after the cable modem is powered up:

# ifdown eth0
# ifup eth0



sleepy
 
  


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
DHCP problems and cable modem wmeler Linux - Software 6 01-29-2004 04:49 PM
cable modem and dhcp dead_p00l Linux - Networking 3 11-30-2003 02:29 AM
DHCP & Cable Modem raypen Linux - Networking 4 08-06-2003 09:16 PM
Cable Modem - How-to DHCP ? iraysyvalo Linux - Networking 17 07-16-2003 09:28 AM
DHCP set-up for cable-modem iraysyvalo Debian 5 07-16-2003 08:34 AM


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