IOS DDNS (Dynamic DNS) - 12.3(14)T
Exemple avec DynDNS.com
http://www.dyndns.com/support/kb/configuring_cisco_https.html
http://www.cisco.com/en/US/docs/ios/ipaddr/configuration/guide/iad_ddns_ps6441_TSD_Products_Configuration_Guide_Chapter.html
Cisco1811(config)# ip ddns update method example_dyndns
Cisco1811(DDNS-update-method)# ?
Dynamic DNS update method configuration commands:
DDNS IETF standardized Dynamic DNS update
http Dynamic DNS update via HTTP based protocols
defaul Set a command to its defaults
exit Exit from DNS dynamic update method configuration mode
internal Update internal IOS name cache
interval Specify interval between DNS updates
no Negate a command or set its defaults
Deux méthodes d’update existent :
- IETF RFC 2136
- HTTP
Cette URL n’est valide que pour DynDNS. ATTENTION, faire un Ctrl+v avant le point d’intérrogation afin de ne pas déclencher l’aide en ligne.
Il faut remplacer les deux balises <h> et <a> par les vraies données.
Cisco1811(DDNS-update-method)# http
Cisco1811(DDNS-HTTP)# add https://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
Interval d’update (Jour Heure Minute Secondes). Ici, 24 jours
Cisco1811(DDNS-update-method)# interval maximum 28 0 0 0
Cisco1811(DDNS-update-method)# interval minimum 24 0 0 0
Cisco1811(config)# int S1
Cisco1811(config-if)# ip ddns update hostname members.dyndns.org
Cisco1811(config-if)# ip ddns update example_dyndns
Cisco1811(config)# ip host members.dyndns.org 63.208.196.96
Création de l’ACL :
permit tcp host 63.208.196.96 eq 443 any established
debug ip ddns update
.Dec 16 00:10:46: DYNDNSUPD: Adding DNS mapping for example.dyndns.org <=> x.x.x.x
.Dec 16 00:10:46: HTTPDNS: Update add called for example.dyndns.org <=> x.x.x.x
.Dec 16 00:10:46: HTTPDNSUPD: Session ID = 0xB
.Dec 16 00:10:46: HTTPDNSUPD: URL = 'https://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=example.dyndns.org&myip=x.x.x.x'
.Dec 16 00:10:46: HTTPDNSUPD: Sending request
.Dec 16 00:10:48: HTTPDNSUPD: Response for update example.dyndns.org <=> x.x.x.x
.Dec 16 00:10:48: HTTPDNSUPD: DATA START
good x.x.x.x
.Dec 16 00:10:48: HTTPDNSUPD: DATA END, Status is Response data recieved, successfully
.Dec 16 00:10:48: HTTPDNSUPD: Call returned SUCCESS, update of example.dyndns.org <=> x.x.x.x succeeded
.Dec 16 00:10:48: DYNDNSUPD: Another update completed (outstanding=0, total=0)
.Dec 16 00:10:48: HTTPDNSUPD: Clearing all session 11 info
Dec-16 00:10:48 hostname=example.dyndns.org myip=x.x.x.x system=dyndns
cisco-IOS (using SSL) good x.x.x.x
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
... et un peut de pub pour payer l'hébergement ;)