starting and stopping networking

James Miller
2004-01-04T20:43:52Z

Lemme see if I can frame this question coherently. I've got a Debian Sid
machine on a LAN behind a firewalling router (router does dhcp offers,
too). That router's acting really flaky (it was given to me as a freebie
because it was acting flaky). I'm thinking of just hooking that machine
directly to the 'net (university network) for the next week or so while
await the arrival of a router that works normally. Of course I don't wish
for the machine to be on the WAN unprotected. At the same time, I don't
want to install a firewall on it because that could complicate setting up
the LAN, once the normally-operating router/firewall arrives. What I'm
thinking of doing is maybe creating a script that will start/stop network
services and make a dhcp request, that could be run in the interim while
I'm awaiting the new router. In other words, I would stop networking when
I'm not actively doing something on the 'net, restart it when I need to do
something on the 'net. So my basic question is: how do I stop networking
services on Debian Sid (I know how on Slackware, but Debian differs)?
How do I restart them later, and send a new dhcp request at the same time?
Any input on my interim networking method for this machine would be
appreciated, as would pointers for accomplishing what I've outlined above,
if that proves advisable/feasible.

Thanks, James