Re: Reset a Cisco 1711 VPN



I can do everything I want interactive. Thats not the problem. I believe that
the winsock control is what I need to use, but I will need to issue username
and passwords. I have tried searching MSDN for winsock controls but I am not
seeing anything relating to validation for the connection. This is probably
something simple to do I just can't find how to use the control.
Thank both of you for your help so far.

"Jim Carlock" wrote:

"Scott" wrote:
: I need to have an application that will ping an IP address through a
: VPN tunnel through a Cisco 1711 router. When the ping fails x
: number of tries I need to connect to the router read the logs and
: issue a reset command for the VPN tunnel.

First, the code to do a ping. You ping either a domain name or an
IP address. Learning how to ping is one of the first steps involved
in learning how to set up and configure a network.
http://vbnet.mvps.org/index.html?code/internet/ping.htm

Some information about ping...
http://en.wikipedia.org/wiki/Ping

: The network people here have given me the command to issue if I
: were to telnet the router. I originally wrote the application that
: would ping, and if it fails shells a command to a third party
: application that would put the router into dial back up mode.

Oops. I already provided some ping links. Hope the information
helps. :-)

: Can I eliminate the third party application, and read the logs and
: issue the reset of the VPN tunnel automatically?

....

: I know next to nothing about networking. I have no objection to
: reading any material but I have know idea where to start. Any
: assistance would be greatly appreciated.

Telnet typically ends up being an application that works over a
specific port. A Telnet application can connect over other ports
as well. It basically sends lines of information to a remote host,
and waits for a line of information to come back. Many protocols
work in a similiar line oriented fashion, including POP3, SMTP,
and many other protocols. In fact, you can use Telnet to simulate
a POP3 client or an SMTP client to learn how those protocols
work. These facts make Telnet a wonderful tool for learning
how the protocols work. You can use Telnet from a command
prompt to connect to your router and your router's book should
tell you what commands are available and how to use them.

I'd suggest learning to use Telnet from the command line first, to
get a feel for how it works. Then once you test it out and connect
to your router, you should be able to figure out what commands
you can send. Then take it to the programming level from there.
It should only take a day or two of playing with Telnet for full
enlightenment.

http://en.wikipedia.org/wiki/Telnet

Once you get through that, you're prepared to start using the
Winsock control that Lance Wynn suggested.

As far as (TCPIP) networking goes, everything tends to work
over either UDP or TCP. Telnet works over TCP as it establishes
a connection to a remote host. So when you start messing with
the Winsock controls, set them up as TCP. IF your router manual
indicates that it accepts commands via UDP, then feel free to set
the Winsock control up to UDP and test the commands.

Hope this helps. Good luck.

--
Jim Carlock
Post replies to the group.



.



Relevant Pages

  • Re: Reset a Cisco 1711 VPN
    ... VPN tunnel through a Cisco 1711 router. ... When the ping fails x ... The network people here have given me the command to issue if I ... were to telnet the router. ...
    (microsoft.public.vb.general.discussion)
  • Re: telnet from spawned telnet process
    ... like any other command like showing subscribers or the router time. ... so you're at the router's commandline and asking it to start a telnet process. ... Yes, I was spawning the telnet, connecting to the router and then ...
    (comp.lang.tcl)
  • Re: Telnet to reboot router
    ... Is there any way to use Telnet to reboot a Vigor router, ... Telnet <router IP> ... Send command: "sys reboot" ...
    (uk.telecom.broadband)
  • Re: STOPPING DNS LOOKUPS AT CLI
    ... router from attempting to resolve an invalid command ... have to initiate a telnet session from the router, ... the telnet keyword before the hostname, ...
    (comp.dcom.sys.cisco)
  • Re: STOPPING DNS LOOKUPS AT CLI
    ... router from attempting to resolve an invalid command ... have to initiate a telnet session from the router, ... the telnet keyword before the hostname, ...
    (comp.dcom.sys.cisco)

Quantcast