On Tuesday 28 October 2003 11:05 pm, Ronald J. Hall wrote:
> On Tuesday 28 October 2003 08:58 pm, L.V.Gandhi wrote:
> > Thanks Derek and Bryan. I think I have not made myself clear. I have seen
> > the above site of derek. Though I put it in subject, I didn't clarify in
> > text. I want not only switching from cable to dial up and back which is
> > explained in the above page, but also stopping connection to internet
> > even through cable and of course dialup. TIA. Here I want to tell
> > something
>
> I'm not sure what you're asking here either, but if you just want to stop a
> cable connection, and its going thru your NIC, then as root:
>
> service network stop
>
> or
>
> ifdown eth0 (or whatever number your NIC is)
>
> should work.
>
> If this isn't what you're looking for, I apologise.

I was going to suggest something along the same lines.  Only, create a simple 
bash script to issue the ifdown eth0 command to your network adapter when you 
dial up your account, or you might be able to add that command into KPPP 
although I don't know why you would feel that this is necessary.  

If you have a good firewall setup which is necessary anyway for the broadband 
connection, then there is no reason to not just leave the ethernet connection 
active, it will not be used for anything since the route is shifted 
dynamically so that everything goes through the dial-up adapter.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to