Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Renewing eth0 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I have two boxes... the first a desktop, who sometimes has to be unplugged from the network, and the second a laptop, which sometimes boots up without a network connection.

Both running debian unstable.

So, if they're connected and stay connected, everything is great... but once and awhile the disconnect, or the boot with no connect will make it such that I have no network connection. (The no boot gives me no eth0 as result to ifconfig, the lost connection does)

A reboot will always fix it, but that's obviouslly overkill... can't seem to find the command line to renew the connection, pump is not installed... anyone know what may work for me?
 
bounce the NIC if you feel like it...

ifdown-eth0
ifup-eth0

your distro may want something different to do this...

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
It does, those are both command not founds in debian unstable, at least as I have it configured.
 
No joy... the command ran, I did a ifconfig eth0 down first, and still no joy, even though eth0 came and went from my ifconfig output.

 
On the laptop, try:
[tt]
/etc/init.d/network stop
/etc/init.d/pcmcia restart
/etc/init.d/network start
[/tt]
Debian on my laptop w/pcmcia was kind of 'quirky' in the past too :)

Some more info might help too. For instance, what is the nature of your 'primary' connection? Cable/DSL/Dial-Up? You have Linux acting as gateway or is a Windows box handling connection sharing? Also, if you give the name of the provider, someone may recognize a similar situation they had (and hopefully fixed ;-)). And is the 'primary' IP address static or dynamically assigned?

----
JBR
 
It's all DHCP... some hooking into T3's and some hooking into a DSL modem... but the basic concern is really the DHCP lease I imagine.

No provider really involved here... it's just booting up with no connection, and wanting to provide it later... I'll test on the laptop later tonight... it's not pcmcia, but perhaps the network stop/start lines will help... eh, we'll find out.
 
some hooking into T3's"?? (as I stare into the LEDs of my beloved, but-not-quite-a-T3 cable modem)

I hope they stay broke ;-)

I think 'dhclient' is the DHCP tool of choice in Debian/Sarge right now. Try it instead of pump.
[tt]
debian:/home/flugh# dpkg -S `which dhclient`
dhcp-client: /sbin/dhclient
[/tt]

----
JBR
 
Hey now, I never said anything about T3 modems... just saying, that's what our network here is piped into.

Anyway, the connection isn't down right now so I can't be sure, but it does appear to do what I need.... thanks much.
 
Follow up: finally tested, you got it... thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top