Re: Reset a Cisco 1711 VPN
- From: Scott <Scott@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 8 Jan 2007 16:00:00 -0800
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.
- Follow-Ups:
- Re: Reset a Cisco 1711 VPN
- From: Bob Butler
- Re: Reset a Cisco 1711 VPN
- References:
- Re: Reset a Cisco 1711 VPN
- From: Jim Carlock
- Re: Reset a Cisco 1711 VPN
- Prev by Date: Re: Problem with edit record code
- Next by Date: Re: Problem with edit record code
- Previous by thread: Re: Reset a Cisco 1711 VPN
- Next by thread: Re: Reset a Cisco 1711 VPN
- Index(es):
Relevant Pages
|