Networking Forums

Networking Forums > Computer Networking > Linux Networking > Simulate network failure

Reply
Thread Tools Display Modes

Simulate network failure

 
 
jamie
Guest
Posts: n/a

 
      08-13-2005, 03:52 PM
Hi,

I've written small client/server program and would like to test how it
deals with the network going down, I don't have physical access to my
server, so I can't just pull the cable. I was thinking ipconfig
/release would do the job, but that dosn't appear to be installed, nor
is dhcpcd, which it apparently relies on. Or at least, I can't find
them.

Is there a way to do what I want with out installing these utilities?
Otherwise, how does one go about installing them?

Jamie

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      08-13-2005, 04:00 PM
On 13 Aug 2005 08:52:19 -0700, jamie wrote:
> Hi,
>
> I've written small client/server program and would like to test how it
> deals with the network going down, I don't have physical access to my
> server, so I can't just pull the cable. I was thinking ipconfig
> /release would do the job, but that dosn't appear to be installed, nor
> is dhcpcd, which it apparently relies on. Or at least, I can't find
> them.



ipconfig is spelled ifconfig. Try the command
man ifconfig

> Is there a way to do what I want with out installing these utilities?
> Otherwise, how does one go about installing them?


Please read http://www.catb.org/~esr/faqs/smart-questions.html
Always provide distribution, release when posting questions.
It could help you get better answers.
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      08-13-2005, 05:31 PM
jamie wrote:

> I was thinking ipconfig


You might find ifconfig works better.

 
Reply With Quote
 
CL (dnoyeB) Gilbert
Guest
Posts: n/a

 
      08-13-2005, 07:24 PM
jamie wrote:
> Hi,
>
> I've written small client/server program and would like to test how it
> deals with the network going down, I don't have physical access to my
> server, so I can't just pull the cable. I was thinking ipconfig
> /release would do the job, but that dosn't appear to be installed, nor
> is dhcpcd, which it apparently relies on. Or at least, I can't find
> them.
>
> Is there a way to do what I want with out installing these utilities?
> Otherwise, how does one go about installing them?
>
> Jamie
>


It wouldn't be too bright to try that remotely. It will only end with
you taking your server offline and having to get off your arse, crawl
over the the keyboard, and bring it back online...

What _type_ of network outage are you speaking of? no DNS, no IP addy,
no connectivity?

--
Respectfully,


CL Gilbert
 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      08-15-2005, 10:13 AM
"jamie" <(E-Mail Removed)> écrivait news:1123948339.670059.322520
@g43g2000cwa.googlegroups.com:
> server, so I can't just pull the cable. I was thinking ipconfig
> /release would do the job, but that dosn't appear to be installed, nor
> is dhcpcd, which it apparently relies on. Or at least, I can't find
> them.


'ipconfig /release' is a Windows command.

You should use the 'ifconfig eth0 down' command, but then you will no more
have remotely access to your server.

So it's safer you move physicaly to the server.


Regards
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulate ctrl-alt-del in rdp session John A Grandy Windows Networking 16 01-28-2009 01:43 AM
how to simulate network problems with iptables erwin Linux Networking 3 05-14-2008 04:00 PM
Is there a way to simulate/preview (but not really do) rsync ? Matthew Lincoln Linux Networking 9 05-05-2008 02:01 PM
simulate network printers running in VMs networked to the host only? Spin Windows Networking 1 10-16-2006 07:11 PM
How to use IPTABLES to simulate major network outages for testing purposes? Christiaan Lutzer Linux Networking 1 10-18-2003 03:41 PM



1 2 3 4 5 6 7 8 9 10 11