LinuxQuestions.org
Visit Jeremy's Blog.
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-15-2004, 06:11 PM   #1
a10392
Member
 
Registered: Sep 2004
Posts: 30

Rep: Reputation: 15
power lost from cable modem, interface lost


Hi,

I have a cable modem connected to my usb port and using it as eth1, this works good.
The problem is when there is a power failure, the modem shutsdown because it s not connected to ups and when it is turned on i cant connect to the interface, if i do ifconfig i get only my ethernet eth0 interface. to gain access to eth1 i must do ifdown eth1, ifup eth1. This is a big problem because i want to have remote access to this computer using ssh, but if there is a power failure i cant connect to the computer.

There is a way to automatically recover eth1 from a power failure, automatically doing ifdown eth1, ifup eth1.

Thanks in advance.
 
Old 11-15-2004, 07:00 PM   #2
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
Go to /etc/sysconfig/network. If a file for eth1 does not exist create one using eth0 as a template(The file name usually starts with something lie ifcfg-eth1). That should be able to allow the system to start the interface during boot time or whenever you need to view ifconfig.

good luck
 
Old 11-16-2004, 08:23 AM   #3
a10392
Member
 
Registered: Sep 2004
Posts: 30

Original Poster
Rep: Reputation: 15
hi,

i'am using debian, i think in debian you mean /etc/network/interfaces.
This is my configuration.
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet static
address 192.168.0.60
netmask 255.255.255.0
network 192.168.1.0
hwaddress ether 00:0c:96:af:34:f3

auto eth1
iface eth1 inet dhcp
hwaddress ether 00:0c:8a:a2:c4:0f


The system works fine at boot time, the problem is if there is a power failure, the computer continue
connected (UPS) but the modem shutsdown. In this case when the power returns i cant connect remotely to the computer
because the interface is lost. I must have fisical access to the computer and reboot or execute ifdown eth1 ifup eth1.

There is a command or some other way to restart the interfaces automatically when they desapear from ifconfig ?????

Thanks you all
 
Old 11-16-2004, 08:45 AM   #4
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
"There is a command or some other way to restart the interfaces automatically when they desapear from ifconfig ?????"


I can suggest that you write a script that will ping the modem to see if it responds. If the modem doesn't respond then it will restart the interface.

There's a script http://www.linuxquestions.org/questi...hreadid=254977 here it pings servers but you can tailor it to ping the modem. All you have to do is add ifdown/ifup to one of those lines.

That's a temporary fix for now. Good luck!
 
Old 11-16-2004, 09:01 AM   #5
a10392
Member
 
Registered: Sep 2004
Posts: 30

Original Poster
Rep: Reputation: 15
thanks,

that should work for now

regards

MM
 
  


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
lost power during a pvmove operation... matt.x33 Linux - Software 1 06-12-2005 09:44 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
Power Failure - Settings lost squirellplaying Debian 1 01-15-2005 11:35 AM
lost my graphic interface ! vwal_13 Slackware 2 04-14-2004 07:35 AM
Cable modem and router - connection lost koswo Linux - Networking 13 01-09-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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