How to configure Dynamic DNS in Cisco Routers?



ကျတော် Cisco Router တွေ Installation and Configuration လုပ်ပေးရတဲ့ အခါ Dynamic DNS Setting တွေ ပါလာခဲ့ရင် အစပိုင်းတုန်းက တော်တော်လေးခေါင်းကိုက်ခဲပါတယ်။

ဘယ်လိုလုပ်ရမယ်ဆိုတာ သေချာမသိလို့ပါ။

ဒီတော့ ကိုယ့်လို တခြားသူတွေ ခေါင်းမကိုက်စေချင်လို့ အဆင်ပြေတဲ့ နည်းလမ်းလေး ပြန်လည်ဝေမျှချင်ပါတယ်။

ကဲ...စလိုက်ရအောင်...
Router Console ကိုဝင်ပြီးပြီဆိုပါစို့...အောက်က အတိုင်း လုပ်ကြည့်လိုက်ရအောင်...

Router>enable

Router#configure terminal

Router(config)# ip ddns update method method-name

(ddns update method ကို DynDNS ဆိုတဲ့ name နဲ့ သုံးပါမယ်။
 Example. Router(config)# ip ddns update method DynDNS)

Router(DDNS-update-method)# interval maximum days hours minutes seconds

(Update လုပ်မယ့် အချိန်ကို သတ်မှတ်ပေးတာပါ Day Hour Minute Second.
 Example. Router(DDNS-update-method)# interval maximum 2 0 0 0)

Router(DDNS-update-method)# ddns

(DDNS ကို update method အဖြစ်သုံးပါမယ်)

Router(DDNS-update-method)# internal

(Internal cache ကို update method အနေနဲ့ သုံးပါမယ်)

Router(DDNS-update-method)# http

( HTTP ကို update method အနေနဲ့ သုံးပါမယ်)

Router(DDNS-HTTP)# add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=


Router(DDNS-HTTP)# remove http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=

(hostname နဲ့ mapped IP ကို url ကနေ တဆင့်ပြောင်းလဲမှုတွေလုပ်ဖို့ အပေါ်က  အဆင့် ၂ ခု ကို configure လုပ်ပေးရပါမယ်။
 username , password များနေရာမှာ Dynamic DNS Service Provider က ပေးထားတဲ့ username , password ကို ထည့်ပေးပါ။ URL ကိုလည်း အပေါ်မှာ ပြထားသလို အပြည့်အစုံ ထည့်ပေးရပါမယ်။ ဒီနေရာမှာ အကြံပေးချင်တာကတော့ command တခုလုံးကို copy ကူးပြီး လိုအပ်တဲ့နေရာတွေမှာ edit လုပ်ပါ။ ပြီးမှ command ထဲကို paste ပြန်လုပ်ပါ။ )

Router(DDNS-HTTP)# exit
Router(DDNS-update-method)# exit

Router(config)# interface interface-type number

(WAN နဲ့ Link လုပ်ထားတဲ့ Interface ကို Configure လုပ်ပါမယ်။
 Example. Router(config)# interface FastEthernet0

Router(config-if)# ip ddns update hostname hostname

(hostname နေရာမှာ မိမိ register လုပ်ထားတဲ့ Dynamic DNS Service Provider ရဲ့ url ကို ထည့်ပေးပါ။
 Example. Router(config-if)# ip ddns update hostname abc.dyndns.org)


Router(config-if) ip ddns update name

( Name နေရာမှာ အပေါ်မှာ သတ်မှတ်ခဲ့တဲ့ update method name ကို ပြန်ထည့်ပေးပါ။
  Example. Router(config-if) ip ddns update DynDNS)

Router(config)# exit


ပြီးရင်တော့ configuration ကို save လုပ်ပါ။

Sample Configuration အပြည့်အစုံ ကို အောက်မှာ ကြည့်ပါ။

Router> enable
Router# configure terminal
Router(config)# ip ddns update method DynDNS
Router(DDNS-update-method)# interval maximum 2 0 0 0
Router(DDNS-update-method)# ddns
Router(DDNS-update-method)# internal
Router(DDNS-update-method)# http
Router(DDNS-HTTP)# add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=
Router(DDNS-HTTP)# remove http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=
Router(DDNS-HTTP)# exit
Router(DDNS-update-method)# exit
Router(config)# interface FastEthernet0
Router(config-if)# ip ddns update hostname abc.dyndns.org
Router(config-if) ip ddns update DynDNS
Router(config)# exit


ကဲ...ဒါပါပဲဗျာ။ တကယ်တော့ ဒီ Configuration တွေထဲမှာ Option တွေ ပါပါသေးတယ်။ ဒါပေမယ့် အသုံးများတာကိုပဲ ပြန်လည်ဝေမျှပေးထားတာပါ။

သက်ဆိုင်ရာ Dynamic DNS Service Provider အလိုက်၊ သက်ဆိုင်ရာ Cisco Router အမျိုးအစားအလိုက် အနည်းငယ် ကွဲပြားမှုလေးတွေရှိပါတယ်။

အဆင်ပြေသလို အသုံးပြုနိုင်ပါစေ။

ပျော်ရွှင်ပါစေဗျာ။
(Be knowledgeable, pass it on then)

No comments :

Post a Comment