cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
613
Views
0
Helpful
2
Replies

router ICMP and ddns setup question

jkay18041
Level 3
Level 3

I have setup ddns with afraid.org and created a config on my router to update it. However I appear to of missed a stop. I copied the link into a computer on a different ip address and got my ddns record changed. My router though did not ever get the ddns record updated. I left it up for 6 hours before finally changing it back manually. Can someone see if they can spot my error?

 

Thank you!

 


ip sla 1
 http get http://freedns.afraid.org/dynamic/update.php?******gzN3BrN083c3E4******3aHlhOjEyOTYzNzYx
ip sla schedule 1 life forever start-time now
logging esm config

 

2 Replies 2

e.ciollaro
Level 4
Level 4

Why don't you use ip ddns command ?

Look this: http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/811-cisco-router-ddns.html

Bye,

e

 

PS please rate if useful

it fails to update when i try the ip ddns command. I've read online that you need to use a ip sla command for afraid.org ddns.

 

when I run the debug command I get 

Router#
*Feb  4 18:17:45.651: IPSLA-OPER_ERROR: OPER: 1 Wait DNS - incorrect event

 

If I setup the ddns update way you are talking about here is the error i get on the dubug mode

 

*Feb  4 19:53:38.663: %SYS-5-CONFIG_I: Configured from console by admin on vty0 (10.28.0.6)
*Feb  4 19:53:40.391: DYNDNSUPD: Adding DNS mapping for jkay.info.com <=> **.102.**.154
*Feb  4 19:53:40.391: HTTPDNS: Update add called for jkay.info.com <=> **.102.**.154
*Feb  4 19:53:40.391: HTTPDNSUPD: Session ID = 0x51
*Feb  4 19:53:40.391: HTTPDNSUPD: URL = 'http://freedns.afraid.org/dynamic/update.php?Y******VgzN3BrN083c3E4TW******HlhOjEyOTYzNzYx'
*Feb  4 19:53:40.391: HTTPDNSUPD: Sending request... status='Host name resolution failed', tid=0

 

 

I've noticed I can't ping from the router to the internet, however the internet works fine all on workstations. I did add on each acl at the bottom permit icmp any any and that didn't seem to fix it so I took it off. I also notice on the debug mode for ddns update that it shows the url it's trying to connect to but it's missing the "?" that goes between the .php and the Y that you can see in my debug log shown above.

 


Router#show running-config
Building configuration...

Current configuration : 6861 bytes
!
! Last configuration change at 21:14:16 UTC Wed Feb 4 2015 by admin
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot system flash:c1841-adventerprisek9-mz.151-3.T4.bin
boot-end-marker
!
!
no logging console
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
!
!
!
ip cef
ip name-server 8.8.8.8
ip name-server 8.8.4.4
ip ddns update method afraid.org
 HTTP
  add http://freedns.afraid.org/dynamic/update.php?YXRNRVgzN3BrN083c3E4TWQ4dVE3aHlhOjEyOTYzNzYx
 interval maximum 0 0 1 0
!
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1124
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-11241
 revocation-check none
!
!
crypto pki certificate chain TP-self-signed-1124138365

!
!
license udi pid CISCO1841 sn FTX14
archive
 log config
  hidekeys
username admin privilege 15 password 0 ***********
!
redundancy
!
!
!
class-map type inspect match-any All_Protocols
 match protocol tcp
 match protocol udp
 match protocol icmp
!
!
policy-map type inspect Trusted_to_Internet
 class type inspect All_Protocols
  inspect
 class class-default
  drop
!
zone security Trusted
zone security Internet
zone-pair security Trusted->Internet source Trusted destination Internet
 service-policy type inspect Trusted_to_Internet
!
!
!
!
!
!
!
interface FastEthernet0/0
 description WAN
 ip ddns update hostname jkay1804.chickenkiller.com
 ip ddns update afraid.org
 ip address dhcp
 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/1.1
 description LAN
 encapsulation dot1Q 1 native
 ip address 10.10.1.253 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface FastEthernet0/1.2
 description WIRELESS
 encapsulation dot1Q 2
 ip address 192.168.2.254 255.255.255.0
 ip access-group wifi_block in
 ip access-group wifi_block out
 ip nat inside
 ip virtual-reassembly in
!
interface Serial0/0/0
 no ip address
 shutdown
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
!
ip dns server
ip nat inside source static tcp 10.10.1.14 3389 interface FastEthernet0/0 3389
ip nat inside source list NAT interface FastEthernet0/0 overload
ip nat inside source static udp 10.10.1.249 1194 interface FastEthernet0/0 1194
ip nat inside source static udp 10.10.1.249 1195 interface FastEthernet0/0 1195
ip nat inside source static tcp 10.10.1.249 443 interface FastEthernet0/0 443
ip nat inside source static tcp 10.10.1.249 22 interface FastEthernet0/0 1022
ip route 10.28.0.0 255.255.255.0 10.10.1.249
ip route 10.29.0.0 255.255.255.0 10.10.1.249
ip route 10.30.0.0 255.255.255.0 10.10.1.249
!
ip access-list extended NAT
 deny   ip 10.10.1.0 0.0.0.255 192.168.2.0 0.0.0.255
 deny   ip 192.168.2.0 0.0.0.255 10.10.1.0 0.0.0.255
 permit ip any any
ip access-list extended wifi_block
 deny   ip 10.10.1.0 0.0.0.255 192.168.2.0 0.0.0.255
 permit ip any any
!
logging esm config
!
!
!

!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
 privilege level 15
 password ************
 login local
 transport input telnet ssh
!
scheduler allocate 20000 1000
end

 

 

Thank you for the input and help

 

Review Cisco Networking for a $25 gift card