* Bringing the Ethernet Interface Down for a While
@ Martin G. McCormick
` Frank Carmickle
` Kirk Wood
0 siblings, 2 replies; 5+ messages in thread
From: Martin G. McCormick @ UTC (permalink / raw)
To: speakup
I am using Debian Linux on a system connected to DSL.
I recently had the idea of temporarily taking the
Ethernet connection down for periods of time when network access is not
needed. One could use cron or at to do the ifconfig eth0 down at
one time and then bring it back up with ifconfig eth0 up at some
other time.
What happens is that the ifconfig eth0 down and ifconfig
eth0 up commands both work normally but the system can't seem to connect
to remote hosts after the interface comes back up. Attempts to
use ssh get the "name or service not available." error messages
and attempts to ping remote hosts give a "network is unreachable"
error.
What else should I be looking at to restore
functionality?
This isn't an urgent situation, but my curiosity is up
now since everything looks good but something doesn't return to
normal when the Ethernet interface is brought back up.
Martin McCormick WB5AGZ Stillwater, OK
OSU Center for Computing and Information Services Network Operations Group
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bringing the Ethernet Interface Down for a While
Bringing the Ethernet Interface Down for a While Martin G. McCormick
@ ` Frank Carmickle
` Kirk Wood
1 sibling, 0 replies; 5+ messages in thread
From: Frank Carmickle @ UTC (permalink / raw)
To: speakup
Why you would want to do this is beyond me. Hell you could join kirk's
seti group! Anyway the reason is you need to add the default route after
bringing the interface up.
If you are doing this because you are worried about security I suggest you
get yourself a firewall. Bringing the interface down for a time only
helps during those times obviously.
On Wed, 3 Oct 2001, Martin G. McCormick wrote:
> eth0 up commands both work normally but the system can't seem to connect
> to remote hosts after the interface comes back up. Attempts to
--
Frank Carmickle
phone: 412 761-9568
email: frankiec@dryrose.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bringing the Ethernet Interface Down for a While
Bringing the Ethernet Interface Down for a While Martin G. McCormick
` Frank Carmickle
@ ` Kirk Wood
1 sibling, 0 replies; 5+ messages in thread
From: Kirk Wood @ UTC (permalink / raw)
To: speakup
I would use the scripts for doing this that the system uses when booting
or shutting down. The format would be "/etc/init.d/networking stop" and
"//etc/init.d/networking start". But perhaps there is yet another way.
=======
Kirk Wood
Cpt.Kirk@1tree.net
"When I take action, I'm not going to fire a $2 million missle at
a $10 empty tent and hit a camel in the butt. It's going to be decisive."
- President George Bush
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bringing the Ethernet Interface Down for a While
Whitley GS11 Cecil H
@ ` Jason
0 siblings, 0 replies; 5+ messages in thread
From: Jason @ UTC (permalink / raw)
To: speakup
actually.... just looked at the man page for dhcpcd:
it would be
dhcpcd -n
to renew your lease
> Anyone out there got the command specifics for a release/renew for dhcp
> under linux?
> ifconfig eth0 renew
> That would be my guess, but it's just a guess. All the unix boxes i've
> worked with have static addresses.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Bringing the Ethernet Interface Down for a While
@ Whitley GS11 Cecil H
` Jason
0 siblings, 1 reply; 5+ messages in thread
From: Whitley GS11 Cecil H @ UTC (permalink / raw)
To: 'speakup@braille.uwo.ca'
Hi,
Hmmmm, sounds to me like a dhcp issue. If your service is like roadrunner
here, they timeout the ip address every four hours. I've not used dhcp
under linux, but I think if you do a renew things will come back to normal.
Anyone out there got the command specifics for a release/renew for dhcp
under linux?
ifconfig eth0 renew
That would be my guess, but it's just a guess. All the unix boxes i've
worked with have static addresses.
Cecil
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Bringing the Ethernet Interface Down for a While Martin G. McCormick
` Frank Carmickle
` Kirk Wood
Whitley GS11 Cecil H
` Jason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).