Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Automatically reconnecting after usbnet disconnect?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

Automatically reconnecting after usbnet disconnect?

  • Quote

Post by bdonlan » Mon May 17, 2004 11:52 pm

I connect to the internet over a USB conenction to a flaky cable modem. Occasionally the modem OS appears to reboot, resetting the network interface and causing the IP configuration to be lost, as well as shutting down all network services. Is there a way to restart dhcpcd when it reconnects without killing the network services depending on net.eth1, or, failing that, automatically restart net.eth1 and run rc to restart the services once the modem reconnects?
Top
Cosmin
Guru
Guru
Posts: 447
Joined: Thu Dec 18, 2003 8:57 am
Location: Bucharest, Romania

  • Quote

Post by Cosmin » Tue May 18, 2004 8:03 am

You could run "by hand"

Code: Select all

/etc/init.d/net.eth1 restart
or check the file

Code: Select all

/etc/ppp/ip-up  (or something like that)
This is a script that executes each time you get an IP from the server, I use it for my ppp connection to start my firewall. Because you have an ethx (as opposed to pppx), your configuration might be different.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan
Top
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

  • Quote

Post by bdonlan » Tue May 18, 2004 9:21 pm

I currently restart it by hand, but I need it to restart unattended. It won't get an IP from the server automatically, which is the problem, so the if-up file (which I think is ppp-only) won't help.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic