Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-01-2006, 05:36 AM   #1
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 * U 0 0 0 eth0
default ip24-255-224-1. 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 * 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
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



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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration