Hi there
My CS8251 works very well
I need a idea how to make it get the Updated encap file automatically
I do it now by Cut and paste but know that TFTP can do the job as well
I need a solution that this can be done automatic (by batch or script)
Any ideas , Solutions welcome
Regards
Ronen - 4Z4ZQ
Ronen Pinchooks (4Z4ZQ) WebSitehttp://www.ronen.org/ www.ronen.org ronen.org (Ronen Pinchooks (4Z4ZQ) WebSite) is hosted by domainavenue.com
Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
------------------------------------- #!/bin/sh # 8-Jan-2016 KD4YAL # #HOME=/home/myhome # rm -rf encap.txt # wget ftp://USER:PASSWORD@portal.ampr.org/encap.txt # # echo -e "Download Completed ........." # echo -e "Converting Encap.txt for the ampr-tunnel-config script......" # remove old ampr-tunnel-config rm -rf ampr-tunnel-config.txt # perl /home/myhome/encapconvertnew.pl encap.txt # /home/jdelong/perl encapconvertnew.pl encap.txt echo -e "The Script is Completed....." # echo -e "dumping ampr-tunnel-config script to router" # connect to router /home/myhome/script2 # echo -e "Routing updates completed....." # <EOF>
#!/usr/bin/expect #8-Jan-2016 KD4YAL # # Get the commands to run, one per line set f [open "/home/myhome/ampr-tunnel-config.txt"] set commands [split [read $f] "\n"] close $f # spawn ssh MYUSERNAME@ROUTERIP expect "?assword:" send "MYPASSWORD\r" # Goto configure mode expect "#" send "conf t\r" #
# Iterate over the commands foreach cmd $commands { expect "(config" send "$cmd\r" }
# Tidy up expect "#" send "wr mem\r" expect "#" send "exit\r" expect eof
---------------------------------------
Jerry, KD4YAL
On Fri, Mar 4, 2016 at 10:25 AM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi there
My CS8251 works very well
I need a idea how to make it get the Updated encap file automatically
I do it now by Cut and paste but know that TFTP can do the job as well
I need a solution that this can be done automatic (by batch or script)
Any ideas , Solutions welcome
Regards
Ronen - 4Z4ZQ
Ronen Pinchooks (4Z4ZQ) WebSitehttp://www.ronen.org/ www.ronen.org ronen.org (Ronen Pinchooks (4Z4ZQ) WebSite) is hosted by domainavenue.com
Thank U May you send me your cisco config file ? to take a look compare to my config ? and may i put your script in the wiki page i have written about making gateway with cisco routers at this location ? http://wiki.ampr.org/wiki/Setting_up_a_gateway_on_Cisco_Routers
Thanks forward Ronen - 4Z4ZQ http://www.ronen.org
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Jerry DeLong kd4yal@gmail.com Sent: Friday, March 4, 2016 11:36 AM To: AMPRNet working group Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
Jerry,
I’d love to see your cisco config as well, I’m playing with a (free to me) 2691 behind a NAT and trying to figure out what I have configured wrong.
-Andrew VO1ABC
On Mar 4, 2016, at 4:06 PM, Jerry DeLong kd4yal@gmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
#!/bin/sh # 8-Jan-2016 KD4YAL # #HOME=/home/myhome # rm -rf encap.txt # wget ftp://USER:PASSWORD@portal.ampr.org/encap.txt # # echo -e "Download Completed ........." # echo -e "Converting Encap.txt for the ampr-tunnel-config script......" # remove old ampr-tunnel-config rm -rf ampr-tunnel-config.txt # perl /home/myhome/encapconvertnew.pl encap.txt # /home/jdelong/perl encapconvertnew.pl encap.txt echo -e "The Script is Completed....." # echo -e "dumping ampr-tunnel-config script to router" # connect to router /home/myhome/script2 # echo -e "Routing updates completed....." # <EOF>
#!/usr/bin/expect #8-Jan-2016 KD4YAL # # Get the commands to run, one per line set f [open "/home/myhome/ampr-tunnel-config.txt"] set commands [split [read $f] "\n"] close $f # spawn ssh MYUSERNAME@ROUTERIP expect "?assword:" send "MYPASSWORD\r" # Goto configure mode expect "#" send "conf t\r" #
# Iterate over the commands foreach cmd $commands { expect "(config" send "$cmd\r" }
# Tidy up expect "#" send "wr mem\r" expect "#" send "exit\r" expect eof
Jerry, KD4YAL
On Fri, Mar 4, 2016 at 10:25 AM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi there
My CS8251 works very well
I need a idea how to make it get the Updated encap file automatically
I do it now by Cut and paste but know that TFTP can do the job as well
I need a solution that this can be done automatic (by batch or script)
Any ideas , Solutions welcome
Regards
Ronen - 4Z4ZQ
Ronen Pinchooks (4Z4ZQ) WebSitehttp://www.ronen.org/ www.ronen.org ronen.org (Ronen Pinchooks (4Z4ZQ) WebSite) is hosted by domainavenue.com
Andrew,
Post your config and I can help you with what you have.
jerry, KD4YAL
On Tue, Mar 8, 2016 at 10:34 AM, Andrew Green andrew@andrewgreen.ca wrote:
(Please trim inclusions from previous messages) _______________________________________________ Jerry,
I’d love to see your cisco config as well, I’m playing with a (free to me) 2691 behind a NAT and trying to figure out what I have configured wrong.
-Andrew VO1ABC
On Mar 4, 2016, at 4:06 PM, Jerry DeLong kd4yal@gmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
#!/bin/sh # 8-Jan-2016 KD4YAL # #HOME=/home/myhome # rm -rf encap.txt # wget ftp://USER:PASSWORD@portal.ampr.org/encap.txt # # echo -e "Download Completed ........." # echo -e "Converting Encap.txt for the ampr-tunnel-config script......" # remove old ampr-tunnel-config rm -rf ampr-tunnel-config.txt # perl /home/myhome/encapconvertnew.pl encap.txt # /home/jdelong/perl encapconvertnew.pl encap.txt echo -e "The Script is Completed....." # echo -e "dumping ampr-tunnel-config script to router" # connect to router /home/myhome/script2 # echo -e "Routing updates completed....." # <EOF>
#!/usr/bin/expect #8-Jan-2016 KD4YAL # # Get the commands to run, one per line set f [open "/home/myhome/ampr-tunnel-config.txt"] set commands [split [read $f] "\n"] close $f # spawn ssh MYUSERNAME@ROUTERIP expect "?assword:" send "MYPASSWORD\r" # Goto configure mode expect "#" send "conf t\r" #
# Iterate over the commands foreach cmd $commands { expect "(config" send "$cmd\r" }
# Tidy up expect "#" send "wr mem\r" expect "#" send "exit\r" expect eof
Jerry, KD4YAL
On Fri, Mar 4, 2016 at 10:25 AM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi there
My CS8251 works very well
I need a idea how to make it get the Updated encap file automatically
I do it now by Cut and paste but know that TFTP can do the job as
well
I need a solution that this can be done automatic (by batch or
script)
Any ideas , Solutions welcome
Regards
Ronen - 4Z4ZQ
Ronen Pinchooks (4Z4ZQ) WebSitehttp://www.ronen.org/ www.ronen.org ronen.org (Ronen Pinchooks (4Z4ZQ) WebSite) is hosted by
domainavenue.com
Here’s my current config. NAT to 10.111.111.0/24 and to the Internet seems to work fine. It’s just when trying to traceroute to 44.135.16.1 (from AMPRnet) I can see the incoming packets on my 10.111.111.1 router but the Cisco never tries to reply.
http://pastebin.com/Z3CBXAdf http://pastebin.com/Z3CBXAdf
Thanks! Andrew VO1ABC
On Mar 8, 2016, at 1:05 PM, Jerry DeLong kd4yal@gmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Andrew,
Post your config and I can help you with what you have.
jerry, KD4YAL
On Tue, Mar 8, 2016 at 10:34 AM, Andrew Green andrew@andrewgreen.ca wrote:
(Please trim inclusions from previous messages) _______________________________________________ Jerry,
I’d love to see your cisco config as well, I’m playing with a (free to me) 2691 behind a NAT and trying to figure out what I have configured wrong.
-Andrew VO1ABC
On Mar 4, 2016, at 4:06 PM, Jerry DeLong kd4yal@gmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
#!/bin/sh # 8-Jan-2016 KD4YAL # #HOME=/home/myhome # rm -rf encap.txt # wget ftp://USER:PASSWORD@portal.ampr.org/encap.txt # # echo -e "Download Completed ........." # echo -e "Converting Encap.txt for the ampr-tunnel-config script......" # remove old ampr-tunnel-config rm -rf ampr-tunnel-config.txt # perl /home/myhome/encapconvertnew.pl encap.txt # /home/jdelong/perl encapconvertnew.pl encap.txt echo -e "The Script is Completed....." # echo -e "dumping ampr-tunnel-config script to router" # connect to router /home/myhome/script2 # echo -e "Routing updates completed....." # <EOF>
#!/usr/bin/expect #8-Jan-2016 KD4YAL # # Get the commands to run, one per line set f [open "/home/myhome/ampr-tunnel-config.txt"] set commands [split [read $f] "\n"] close $f # spawn ssh MYUSERNAME@ROUTERIP expect "?assword:" send "MYPASSWORD\r" # Goto configure mode expect "#" send "conf t\r" #
# Iterate over the commands foreach cmd $commands { expect "(config" send "$cmd\r" }
# Tidy up expect "#" send "wr mem\r" expect "#" send "exit\r" expect eof
Jerry, KD4YAL
On Fri, Mar 4, 2016 at 10:25 AM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Hi there
My CS8251 works very well
I need a idea how to make it get the Updated encap file automatically
I do it now by Cut and paste but know that TFTP can do the job as
well
I need a solution that this can be done automatic (by batch or
script)
Any ideas , Solutions welcome
Regards
Ronen - 4Z4ZQ
Ronen Pinchooks (4Z4ZQ) WebSitehttp://www.ronen.org/ www.ronen.org ronen.org (Ronen Pinchooks (4Z4ZQ) WebSite) is hosted by
domainavenue.com
From what I see i think you have one major problem
1) the tunnel source address should be NON ampr Ip (ie commercial IP)
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Andrew Green andrew@andrewgreen.ca Sent: Friday, March 11, 2016 1:13 PM To: AMPRNet working group Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Here’s my current config. NAT to 10.111.111.0/24 and to the Internet seems to work fine. It’s just when trying to traceroute to 44.135.16.1 (from AMPRnet) I can see the incoming packets on my 10.111.111.1 router but the Cisco never tries to reply.
http://pastebin.com/Z3CBXAdf http://pastebin.com/Z3CBXAdf
Thanks! Andrew VO1ABC
Andrew,
I agree with Ronen, NAT maybe difficult setup.
Have you tried using the ip address from FastEthernet0/0 (10.111.111.11) and the tunnel source?
Jerry, KD4YAL
On Fri, Mar 11, 2016 at 5:48 PM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ From what I see i think you have one major problem
- the tunnel source address should be NON ampr Ip (ie commercial IP)
From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Andrew Green andrew@andrewgreen.ca Sent: Friday, March 11, 2016 1:13 PM To: AMPRNet working group Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Here’s my current config. NAT to 10.111.111.0/24 and to the Internet seems to work fine. It’s just when trying to traceroute to 44.135.16.1 (from AMPRnet) I can see the incoming packets on my 10.111.111.1 router but the Cisco never tries to reply.
http://pastebin.com/Z3CBXAdf http://pastebin.com/Z3CBXAdf
Thanks! Andrew VO1ABC
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
I have made some tests with uploading config file to cisco in few ways The Telnet way is very slow it take to upload the whole gateways command about 5 minutes Today i have done config network (it is doing TFTP for the config file ) the whole procedure took 3 seconds The disadvantage that this way require TFTP server ... but i know it can be done with web also i will check tat too ... The script is also very simple all it have to do is to connect ... to wait for # prompt then to give the command conf network and to give some parameters such as the TFTP server address and file name and in the end to wait for OK When i will have fully automatic and running script (i will have to ask some of the local Script gurus to make it for me ) i will post it here and update the WIKI page Regards Ronen - 4Z4ZQ http://www.ronen.org
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Jerry DeLong kd4yal@gmail.com Sent: Friday, March 4, 2016 11:36 AM To: AMPRNet working group Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
On Fri, 11 Mar 2016, R P wrote:
I have made some tests with uploading config file to cisco in few ways The Telnet way is very slow it take to upload the whole gateways command about 5 minutes Today i have done config network (it is doing TFTP for the config file ) the whole procedure took 3 seconds The disadvantage that this way require TFTP server ... but i know it can be done with web also i will check tat too ... The script is also very simple all it have to do is to connect ... to wait for # prompt then to give the command conf network and to give some parameters such as the TFTP server address and file name and in the end to wait for OK When i will have fully automatic and running script (i will have to ask some of the local Script gurus to make it for me ) i will post it here and update the WIKI page
If the cisco in question has ssh enabled, then you might consider copying the new config directly to the router flash using scp, followed by a command line 'copy flash:xyz running-config'. This doesn't require a tftp server.
Antonio Querubin e-mail: tony@lavanauts.org xmpp: antonioquerubin@gmail.com
Ronan,
Here is the complete config for your reference.
AmprNet Config http://pastebin.com/TxTWfGf4
Thanks Jesse - WC3XS
On 3/11/16, 3:33 PM, "44Net on behalf of R P" <44net-bounces+jesse=hindmarsh.cc@hamradio.ucsd.edu on behalf of ronenp@hotmail.com> wrote:
(Please trim inclusions from previous messages) _______________________________________________ I have made some tests with uploading config file to cisco in few ways The Telnet way is very slow it take to upload the whole gateways command about 5 minutes Today i have done config network (it is doing TFTP for the config file ) the whole procedure took 3 seconds The disadvantage that this way require TFTP server ... but i know it can be done with web also i will check tat too ... The script is also very simple all it have to do is to connect ... to wait for # prompt then to give the command conf network and to give some parameters such as the TFTP server address and file name and in the end to wait for OK When i will have fully automatic and running script (i will have to ask some of the local Script gurus to make it for me ) i will post it here and update the WIKI page Regards Ronen - 4Z4ZQ http://www.ronen.org
From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Jerry DeLong kd4yal@gmail.com Sent: Friday, March 4, 2016 11:36 AM To: AMPRNet working group Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Hi Ronen,
Here are the script I am using. I am not a coded so maybe there is a better way but these 2 script are working for my purpose.
Here it is with out warranty or support.
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
Jessy Is your 44 Net hosts can reach the normal internet ? from what understand from your config file they can only gain access other 44 net networks Am I correct ? Ronen - 4Z4ZQ http://www.ronen.org
________________________________________ From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Jesse Hindmarsh jesse@hindmarsh.cc Sent: Friday, March 11, 2016 1:51 PM To: 44Net@hamradio.ucsd.edu Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Ronan,
Here is the complete config for your reference.
AmprNet Config http://pastebin.com/TxTWfGf4
Thanks Jesse - WC3XS
In my config, they can access the Internet via the UCSD gateway over the tunnel. I do not use NAT locally.
It would be easy enough to change with my route table and route-map if necessary.
Thanks Jesse - WC3XS
Sent from my iPhone
On Mar 11, 2016, at 5:51 PM, R P ronenp@hotmail.com wrote:
(Please trim inclusions from previous messages) _______________________________________________ Jessy Is your 44 Net hosts can reach the normal internet ? from what understand from your config file they can only gain access other 44 net networks Am I correct ? Ronen - 4Z4ZQ http://www.ronen.org
From: 44Net 44net-bounces+ronenp=hotmail.com@hamradio.ucsd.edu on behalf of Jesse Hindmarsh jesse@hindmarsh.cc Sent: Friday, March 11, 2016 1:51 PM To: 44Net@hamradio.ucsd.edu Subject: Re: [44net] ideas to uutomatic updates of gateway file to Cisco Routers ?
(Please trim inclusions from previous messages) _______________________________________________ Ronan,
Here is the complete config for your reference.
AmprNet Config http://pastebin.com/TxTWfGf4
Thanks Jesse - WC3XS
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net