Tuesday, December 20, 2011

Frame-Relay Full Mesh

Three frame-relay type -
  • Hub and Spoke Design
  • Partial Mesh Design
  • Full Mesh Design
In three type above,configure frame-relay full mesh only..It is the most expensive option in all frame-relay technology.It can offer lowest delay and full redundancy since every site has a separate PVC to  every other site.


The above diagram is simple once.The topology goal are:
  • Configure the frame-relay provider switch which is just only for provider site
  • Configure the frame-relay interface encapsulation,ip addresses to each remote routers(Casie,Alexandria,Michelle)
  • Configure the frame relay route map for each remote router.
  • Lastly,each remote router must be pingable to another remote routers.
I configure frame-relay provider switch first look like that the following.
Router>en                                               //entering the  executable mode
Router#config t                                      //entering the global configuration mode
Router(config)#host FrameRelayProvider        //changing the host name
FrameRelayProvider(config)#do sh ip int brief //seeing the interface briefly 
interface                   IP-Address    OK? Method          Status                   Protocol  
Ethernet0/0              unassigned    YES unset    administratively down     down    
GigabitEthernet0/0  unassigned    YES unset    administratively down     down
Serial1/0                  unassigned    YES unset    administratively down     down   
Serial1/1                  unassigned    YES unset    administratively down     down   
Serial1/2                  unassigned    YES unset    administratively down     down   
Serial1/3                  unassigned    YES unset    administratively down     down   
ATM2/0                    unassigned    YES unset    administratively down     down   
POS3/0                     unassigned    YES unset    administratively down     down
FrameRelayProvider(config)#frame-relay ?
address                   Address Registration with neighbor
de-list                      Build a classification list to be used in setting the DE bit
switching                enable frame relay pvc switching
FrameRelayProvider(config)#frame-relay switching      //Router as a frame-relay switch
FrameRelayProvider(config)#int s1/0                             //entering the serial 1/0 interface
FrameRelayProvider(config-if)#encap frame            //changing the encapsulation type as frame-relay
FrameRelayProvider(config-if)#frame intf-type dce        //doing the interface as a dce
FrameRelayProvider(config-if)#no shut                        //doing interface to up
FrameRelayProvider(config-if)#int s1/1                       //entering the serial 1/1 interface
FrameRelayProvider(config-if)#encap frame            //changing the encapsulation type as frame-relay     
FrameRelayProvider(config-if)#frame intf-type dce      //doing the interface as a dce
FrameRelayProvider(config-if)#no shut                       //doing interface to up
FrameRelayProvider(config-if)#int s1/2                      //entering the serial 1/2 interface        
FrameRelayProvider(config-if)#encap frame            //changing the encapsulation type as frame-relay            
FrameRelayProvider(config-if)#frame intf-type dce         //doing the interface as a dce
FrameRelayProvider(config-if)#no shut                          // doing interface to up

Monday, December 19, 2011

Gns3 Configuration in Fedora Linux

         Gns3 ဆိုတာက Network Engineer ေတြသံုးတဲ့ Graphical Simulation Software ျဖစ္ပါတယ္။ အဓိက ကေတာ့Cisco Devices ေတြသံုးတဲ့ Enterprise Level အတြက္ပါ။Cisco IOS  အစစ္နဲ႔ emulate လုပ္တဲ့ အတြက္ေႀကာင့္ တကယ္ IOS Command အစစ္ေတြနဲ႔ရင္းႏွီးေစပါတယ္။ဒီေနရာမွာ Gns3 က open sources ျဖစ္တာေႀကာင့္ multi-platform run လို႔ရပါတယ္။အဲ့ေနရာမွာကြ်န္ေတာ့္အေနနဲ႔ Gns3 ကို Linux ပၚမွာ Run တာကိုပိုျပီး favor ျဖစ္ပါတယ္။အဲ့ဒီအအခ်က္ကို Ubuntu မွာ Gns3 ကို configuration ခ်တဲ့အေႀကာင္းေရး စဥ္ကလည္းထည့္ေရးဖူးပါတယ္။ဘာလို႔လဲဆိုေတာ့Gns3 က IOS အစစ္ေတြသံုးလို႔ Resources ေတြစားပါ တယ္။Router ေတြ ကို Power ႏိုးထားတဲ့အခါ CPU usage ကို idle-pc value သံုးျပီးေလ်ွာ့ခ်နိုင္ေပမယ့္ Physical Memory Usage ကိုေလွ်ာ့ခ်နိုင္ျခင္းမရွိပါ။ထို႔အတြက္ Physical Memory မ်ားေလေကာင္းေလပဲျဖစ္ ပါတယ္။အဲ့ေနရာမွာလူတိုင္းဟာ စက္အေကာင္းဆံုးေနာက္ဆံုးေပၚဆိုတာေတြ ကိုအေႀကာင္းမ်ိဳးမ်ိဳးေႀကာင့္ သံုးခ်င္မွသံုးနုိင္မွာပါ။ကြ်န္ေတာ္တို႔ဟာ ရွိတာေလးနဲ႔ပဲအဆင္ေျပေအာင္လုပ္ရမွာျဖစ္ပါတယ္။အဲ့ေနရာမွာ Linux ကေတာ္ေတာ္ေလးအေရးပါလာပါတယ္။အ ဓိကကေတာ့ physical memory စားတာအလြန္ပဲသက္ သာပါတယ္။physical RAM 2G ရွိတဲ့စက္တစ္လံုးမွာ windowXP ကို Run မယ္ဆုိရင္ 450M ကေန 500M ႀကားမွာစားပါတယ္။Window7 ကို Run မယ္ဆုိရင္ေတာ့ 700M ေလာက္အနည္းဆံုးစားမွာျဖစ္ပါတယ္။ဒီ အေျခေနက မည္သည့္  Application မွမဖြင့္ရေသးခင္ OS ကို initiate လုပ္ျပီးစအေျခေနမွာတင္အဲ့ေလာက္ စားပါတယ္။ဒါေပမယ့္ Linux အတြက္ဒီလိုအေျခေနမွာ 200M သာ သာေလးပဲစားတာေတြ႔ရပါတယ္။ဒီ အေႀကာင္းေတြေျပာေနတာက Linux ေပၚမွာ Run ရင္ဘယ္ လိုအားသာခ်က္ေတြရွိတယ္ဆိုတာသိေစခ်င္ လို႔ပါ။ဆိုလိုတာပံုမွန္စက္တစ္လံုးကို linux ေပၚမွာ Run ရင္ နုိင္နိုင္နင္းနင္း run နိုင္ပါတယ္။ window ေပၚမွာ ဆိုရင္ေတာ့ Router သံုးလံုးေက်ာ္တာနဲ႔အဆင္မေျပေတာ့ပါ။
    အခု Fedora Linux ေပၚမွာ Gns3 Configuration ခ်ပံုကိုေရးေပးပါ့မယ္။Ubuntu မွာထက္စာရင္ေတာ့အနည္း ငယ္ပိုခက္သလိုရွိပါတယ္။ဒါေပမယ့္တစ္ဆင့္ခ်င္းေသခ်ာလုပ္မယ္ဆိုရင္ေတာ့ျပသာနာမရွိပါ။ေအာက္ပါအဆင့္ မ်ားအတိုင္းတစ္ဆင့္ခ်င္းလုပ္ေဆာင္သြားရမွာပဲျဖစ္ပါတယ္။

1.Basic Packet Installation

WinTunHlaing@ns0~$su -
Password :
root@ns0~#
root@ns0~#yum install python python-devel xorg-x11-proto-devel libXext-devel gcc-c++ libXrender*


အေပၚကပံုေလးကိုႀကည့္ပါ။အဲ့ေနရာမွာ root access နဲ႔ Installation လုပ္ရမွာျဖစ္ပါတယ္။root နဲ႔လုပ္ေနတာမို႔ rick ေတာ့ရွိပါတယ္။ေသခ်ာဂရုစိုက္ျပီး Install လုပ္ရမွာျဖစ္ပါတယ္။

2.QT Installation and Configuration

root@ns0]#wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz
root@ns0]#tar -xzf qt-everywhere-opensource-src-4.7.4.tar.gz
root@ns0]#cd qt-everywhere-opensource-src-4.7.4


root@ns0qt-everywhere-opensource-src-4.7.4]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support

ဒီေနရာမွာကြ်န္ေတာ္ႀကားျဖတ္ေျပာခ်င္တာရွိပါတယ္။ဒီအဆင့္ကႀကာပါလိမ့္မယ္။ကုိယ့္စက္ရဲ့ Specification အေနထားေပၚမူနည္ျပီး ဆယ့္ငါးမိနစ္၊နာရီ၀က္ကေနတစ္နာရီထိႀကာနိုင္ပါတယ္။စိတ္ရွည္ရွည္နဲ႔သာေစာင့္ ပါ။

root@ns0qt-everywhere-opensource-src-4.7.4]#gmake
root@ns0qt-everywhere-opensource-src-4.7.4]#gmake install

အထက္ပါလုပ္အဆင့္မ်ားသည္လည္းအေပၚကလိုပဲႀကာမွာျဖစ္ပါတယ္။မျပီးမခ်င္းသာေစာင့္ပါေလ။အဲ့ဒီအဆင့္
ေတြျပီးသြားရင္ေတာ့ Path ေပးရမွာပါ။ေအာက္ကပံုေလးအတိုင္းပါပဲ။


root@ns0qt-everywhere-opensource-src-4.7.4]#PATH=/usr/local/Trolltech/Qt-4.7.4/bin:$PATH
root@ns0qt-everywhere-opensource-src-4.7.4]#export PATH

2.Sip Installation and Configuration

root@ns0]# wget http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.13.tar.gz
root@ns0]#tar -xvf sip-4.13.tar.gz
root@ns0]#cd sip-4.13
root@ns0 sip-4.13]#python configure.py
root@ns0 sip-4.13]#make
root@ns0 sip-4.13]#make install


3.PyQt Installation and Configuration

root@ns0]#wget http://ftp.pardus.org.tr/pub/source/2009/PyQt-x11-gpl-4.8.4.tar.gz
root@ns0]#tar xvf PyQt-x11-gpl-4.8.4.tar.gz
root@ns0]#cd PyQt-x11-gpl-4.8.4
root@ns0 PyQt-x11-gpl-4.8.4]#python configure.py -q /usr/local/Trolltech/Qt-4.7.4/bin/qmake
root@ns0 PyQt-x11-gpl-4.8.4]# make
root@ns0 PyQt-x11-gpl-4.8.4]#make install

ဒီေနရာမ်ာေအာက္အဆင့္သံုးဆင့္ကေတာ့ေတာ္ေတာ္ေလးပဲႀကာပါလိမ့္မယ္။မျပီးမခ်င္းေစာင့္ပါ။စိတ္ရွည္ဖုိ႔
လိုပါတယ္။ကြ်န္ေတာ္ကေတာ့ေကာ္ဖီေသာက္ရင္းေစာင့္ပါတယ္..။:)

4.GNS3 Installation and Configuration

ဒီအဆင့္ကေတာ့ Ubuntu မွာ Configuration ခ်တုန္းကလိုပဲျဖစ္ပါတယ္။အရင္ဆံုး Gns3 Offical Site မွာ GNS3-0.7.4-src.tar.gz file ေလးကို download ယူပါ။Desktop ေပၚမွာထားျပီး extract လုပ္ပါ။Command line ကေနလုပ္လည္းရပါတယ္။ဒါေပမယ့္ GUI နဲ႔ပဲလုပ္ပါမယ္။GNS3-0.7.4-src ဆိုတဲ့ Folder ေလးရလာပါမယ္။
gns3 ဆိုတဲ့ script file ေလးကို Double-Click ေခါက္ပီး Run လို႔ရပါျပီ။က်န္တာေတြကေတာ့ Ubuntu မွာတုန္း ကအတိုင္းျဖစ္ပါတယ္။


 Dynamips ကို start လုပ္ေပးရပါမယ္။Dyanamips ရဲ့Permission executable ထားေပးရပါမယ္။အဲ့ဒါကေတာ့အ လြန္အေရးႀကီးပါတယ္။မလုပ္ထားဖူးဆိုရင္Run လို႔ရမွာမဟုတ္ပါ။ေနာက္ပီ IOS ေတြ Configuration ခ်ေပးရပါမယ္။ေအာက္ကပံုေလးအတုိင္း Dyanmips success ျဖစ္ရင္ေတာ့ Router ေတြကို Work Space ေပၚ 
ဆြဲတင္ျပီး Run နိုင္ျပီျဖစ္ပါတယ္။



အေပၚကပံုေလး ကေတာ့ Router ေတြေကာင္းမြန္စြာအလုပ္လုပ္ျခင္းရွိမရွိစမ္းသပ္ထားျခင္းပဲျဖစ္ပါတယ္။ဒီ မွာျပသာ နာ တက္နိုင္တာက IOS နဲ႔ Router နဲ႔ Math မျဖစ္လို႔ Console မပြင့္တာမ်ိဳး၊Console ပြင့္ေသာ္လည္း Router ရဲ့ သက္ဆိုင္ရာ mode ေတြထဲကို၀င္လို႔မရတာမ်ိဳးျဖစ္တတ္ပါတယ္။အဲ့ဒါမ်ိဳးျဖစ္ခဲ့ရင္ IOS Firmware ကိုခ်ိန္းႀကည့္ပါ။အဆင္ေျပပါလိမ့္မယ္။ဒီေလာက္ဆိုရင္ Fedora ေပၚမွာ Gns3 ကို Configuration ခ်တာျပည့္စံု ပါျပီ။ကြ်န္ေတာ္တို႔ Linux OS ေတြေပၚမွာ GNS3 ကို Run မယ္ဆိုရင္အထက္မွာေရးခဲ့တဲ့အတိုင္း Advantages ရွိပါတယ္။Network ပိုင္းကိုေလ့လာေနတဲ့ Junior ညီငယ္၊ညီမငယ္ေလးေတြနဲ႔အျခားစိတ္၀င္စားသူမ်ားပါ
ေလ့လာနုိင္ရန္ကြ်န္ေတာ္အေနနဲ႔ Self-Study လုပ္ျပီးတင္ျပေပးလိုက္ပါတယ္။အကယ္လို႔ Linux ေပၚမွာ gns3 Configuration လုပ္တာနဲ႔ပတ္သတ္ျပီးအကူညီလိုအပ္ခဲ့ရင္ wintun101@gmail.com ကိုေမးပို႔ျပီးကူညီေတာင္း ခံနိုင္ပါတယ္။

ေလစားစြာျဖင့္
Win Tun Hlaing

Thursday, December 15, 2011

Frame-Relay Encapsulation

I want to configure CharyMying and Mandalay Router remotely.According to Topology,I will need dedicated point-to-point links(leased lines) to connect the branches.


Above Diagram is the simple topology.I use the frame-relay which is the packet switched technology because It is usually less expensive compared to leased lines.So,I use the cisco router as a frame-relay switch.The following is the topology goals;
  • 100,101 and 200,201 of pairs must be point to multi-point PVC.(PVC=perment virtual circuit supported by provider)
  • 102,103 pair is  must be point to point PVC.
  • 200.0.0.0/24 subnet is used for point to multi-point connections.
  • 20.0.0.0/24 subnet is used for point to point connections.
  • Lastly,All IP Address must be pingable.
I configure the frame relay switch first look like that the following;
Router>en                                                      //entering the enable router mode
Router#config t                                               //entering the global configuration mode
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname FR-Switch                        
FR-Switch(config)#do sh ip int brief     //Seeing the brief description of interfaces
Interface               IP-Address    OK?  Method          Status                   Protocol
FastEthernet0/0    unassigned    YES  unset     administratively down    down   
FastEthernet0/1    unassigned    YES  unset     administratively down    down   
Serial1/0               unassigned    YES  unset     administratively down    down   
Serial1/1               unassigned    YES  unset     administratively down    down   
Serial1/2               unassigned    YES  unset     administratively down    down   
Serial1/3               unassigned    YES  unset     administratively down    down   
Serial2/0               unassigned    YES  unset     administratively down    down   
Serial2/1               unassigned    YES  unset     administratively down    down   
Serial2/2               unassigned    YES  unset     administratively down    down   
Serial2/3               unassigned    YES  unset     administratively down    down
 FR-Switch(config)#frame-relay ?
  address      Address Registration with neighbor
  de-list        Build a classification list to be used in setting the DE bit
  switching   enable frame relay pvc switching
I'm using the router as a frame-relay switch,now.So,I must choice the frame-relay switching mode.And than,I must define the DLCI numbers to each interface for PVC.

FR-Switch(config)#frame-relay switching           //define the router as a frame-relay switch
FR-Switch(config)#interface serial1/0                //entering the serial0/0 interface
FR-Switch(config-if)#no shutdown                //doing up the interface
*Mar  1 00:20:52.639: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar  1 00:20:53.647: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
FR-Switch(config-if)#encapsulation ?
  atm-dxi                ATM-DXI encapsulation
  bstun                   Block Serial tunneling (BSTUN)
  frame-relay          Frame Relay networks
  hdlc                     Serial HDLC synchronous
  lapb                     LAPB (X.25 Level 2)
  ppp                     Point-to-Point protocol
  sdlc                     SDLC
  sdlc-primary        SDLC (primary)
  sdlc-secondary   SDLC (secondary)
  smds                   Switched Megabit Data Service (SMDS)
  stun                    Serial tunneling (STUN)
  x25                     X.25
FR-Switch(config-if)#encapsulation frame-relay    //choosing encapsulation type for interface
*Mar  1 00:23:34.791: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
FR-Switch(config-if)#frame-relay route ?
  <16-1007>        input dlci to be switched
FR-Switch(config-if)#frame-relay route 103 int s1/2 102  //assign dlci for outgoing
FR-Switch(config-if)#frame-relay route 101 int s1/2 100  //assign dlci for outgoing
FR-Switch(config-if)#int s1/2                           //entering the serial1/2 interface
FR-Switch(config-if)#no shut                           //doing up the interface
*Mar  1 00:28:56.751: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
*Mar  1 00:28:57.759: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up
FR-Switch(config-if)#encap fram             //choosing encapsulation as a frame-relay
*Mar  1 00:29:43.047: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to down
FR-Switch(config-if)#fram route 200 int s1/1 201  //assign dlci for outgoing
According to Topology,I would like to use remotely to the branches from hard office(Yangon Router) only.So,no need to connect between the branches.No need to configure dlci between the  interface of s1/0 and s1/1 of frame-relay switch.However,all interfaces of frame-relay switch must be DCE(Data Communication Equipment).

FR-Switch(config-if)#int s1/1                       //entering the s1/1 interface
FR-Switch(config-if)#no shut                       //doing up the interface
*Mar  1 00:38:27.695: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
*Mar  1 00:38:28.703: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
FR-Switch(config-if)#encap fram                 //choosing encapsulation as the frame-relay
FR-Switch(config-if)#frame-relay intf ?
  dce               Configure a FR DCE
  dte               Configure a FR DTE
  nni               Configure a FR NNI
FR-Switch(config-if)#frame-relay intf-type dce         //setting the interface as a dce
FR-Switch(config-if)#int s1/0                                  //entering the s1/0 interface
FR-Switch(config-if)#frame-relay intf-type dce          //setting the interface as a dce
*Mar  1 00:40:37.675: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
*Mar  1 00:40:52.039: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
*Mar  1 00:40:52.675: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down
FR-Switch(config)#int s1/2                                    //entering the s1/2 interface
FR-Switch(config-if)#frame relay intf-type dce         //setting the interface as a dce
*Mar  1 00:43:53.507: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up
*Mar  1 00:44:08.507: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to down
FR-Switch(config-if)#exi                        //exit from interface configuration mode
FR-Switch(config)#exi                           //exit from global configuration mode
FR-Switch#wr                                      //save the configuration to NVRAM.
Building configuration...
*Mar  1 00:45:24.839: %SYS-5-CONFIG_I: Configured from console by console[OK]

For CharyMying,
Router>en
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host CharyMying                      //setting up hostname
CharyMying(config)#do sh ip int brief              //seeing the interface brifely
Interface                    IP-Address          OK?  Method           Status                 Protocol
FastEthernet0/0            unassigned      YES  unset      administratively down   down    
FastEthernet0/1            unassigned      YES  unset      administratively down   down    
Serial1/0                       unassigned      YES  unset      administratively down   down    
Serial1/1                       unassigned      YES  unset      administratively down   down    
Serial1/2                       unassigned      YES  unset      administratively down   down    
Serial1/3                       unassigned      YES  unset      administratively down   down   
CharyMying(config)#int s1/0                   //entering the s1/0 interface
CharyMying(config-if)#no shut                //doing up the interface
CharyMying(config-if)#encap fram           //setting encapsulation to the interface
*Mar  1 00:48:11.539: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar  1 00:48:12.547: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
   Another two routes have to be configured look like above.After configurations finish, frame-relay connections must be active.


In the picture above,frame-relay connection not active first.This is because the alternate configuration of outgoing interface dlci have not configured yet.Configure them look like from the picture.They will be active as like in the figure above.Following is seeing lmi(local management interface) type.I have used default lmi(CISCO).:)


Too long post.I shall stop here because it would be so boring that no one would not pay any attention.The next steps configuring IP Address,Routing,Telnet would be in next post.

ေလးစားစြာျဖင့္
Win Tun Hlaing



Sunday, November 20, 2011

Applying Telnet(Ubuntu Linux to Windows)

Telnet နဲ႔ပတ္သတ္ျပီး Configuration လုပ္ပံုေတြ Window host ေတြအခ်င္းခ်င္းမွာ Telnet ကို Apply လုပ္ပံုေတြကို အရင္က Post ေတြမွာကြ်န္ေတာ္ေရးခဲ့ျပီးပါျပီ။အခုTelnet ကို Linux Host to Window၊ Window to Linux ဘယ္လို သံုးမယ္ဆိုတာကိုေရးေပးပါ့မယ္။အဲ့ေနရာမွာ Platform မတူတဲ့အတြက္ Linux နဲ႔ Window တစ္ခုခ်င္းကို Telnet အတြက္ Configure လုပ္ရမွာျဖစ္ပါတယ္။Window အတြက္ Configure လုပ္ပံုကေတာ့ အရင္ Post ေတြမွာေရးခဲ့ တဲ့အတိုင္းပါပဲ။အခုဒီမွာေတာ့ Linux အတြက္ Configure လုပ္ပံုကိုပဲအဓိကေရး ပါ့မယ္။Linux မွာ Disto မ်ားစြာရွိ တဲ့အနက္က Ubuntu Linux ကိုသံုးပါမယ္။ အဲ့ေတာ့ပထမဆံုးအေနနဲ႔ Telnet အတြက္လိုအပ္တဲ့ services package ေတြကို Install လုပ္ေပးရပါမယ္။install လုပ္ရာမွာေအာက္ကပံုေလးအ တိုင္း sudo apt-get install telnetd ဆိုတာ  ေလးကိုသံုးပါမယ္။telnetd ဆိုတာ Telnet အသံုးျပဳနိုင္ရန္လိုအပ္တဲ့ Ubuntu ရဲ့ binary package ပါပဲ။



 အေပၚကပံုေလးကေတာ့ telnetd ကို install လုပ္ေနတာပါ။Install လုပ္ျပီးသြားရင္ Telnet ကိုအသံုးျပဳနိုင္ပါျပီ။ သို႔ေသာ္လည္းအသံုးမျပဳခင္မွာ Telnet Services နဲ႔ဆိုင္တာေလးကိုေတာ့ restart လုပ္ေပးရပါအံုးမယ္။ေအက္ ကပံုေလးအတိုင္းပါပဲ။နွစ္မ်ိဳးလုပ္လို႔ရပါတယ္ Run Application ထဲမွာ /etc/init.d/openbsd-inetd restart ရိုက္ျပီး restart လုပ္လို႔ရသလို Terminal ေပၚကေန sudo /etc/init.d/openbsd-inetd restart ဆိုျပီးလည္းလုပ္လို႔ရပါတယ္


ျပီးရင္ကိုယ္ခ်ိတ္ဆက္ခ်င္တဲ့ host ရဲ့ IP Address ကိုသံုးျပီး window မွာခ်ိတ္ဆက္သလိုပဲခ်ိတ္ဆက္နိုင္ပါျပီ။
ခ်ိတ္ဆက္တဲ့ေနရာမွာ Linux host ot Linux host ခ်ိတ္ဆက္နုိင္သလို Window to Linux,Linux to Window ခ်ိတ္ဆက္နိုင္ပါတယ္။ေအာက္ကပံုေလးကိုႀကည့္ပါ။:)



 အေပၚကပံုေလးကေတာ့ Linux PC ကေနတစ္ဆင့္ window host ေတြရဲ့အေနထားေတြကိုႀကည့္တာပဲျဖစ္ပါ တယ္။ေအာက္ကပံုေလးကေတာ့ Window to Linux host ခ်ိတ္ဆက္တာျဖစ္ပါတယ္။


Telnet ကေနတစ္ဆင့္ Firewall Setting ေတြ၊Network Card ေတြရဲ့ IP Setting ေတြ၊Process Thread ေတြ စသည္တို႔ကို လိုအပ္သလိုႀကည့္ရွုျပင္ဆင္နိုင္ပါတယ္။ဒါ့အျပင္ကို Linux host မွာတစ္ဆင့္ WindowPC ေတြ ကိုေအာက္ပါပံုေလးအတိုင္း shutdown ခ်နိုင္ပါတယ္။အျပန္လွန္အားျဖင့္လည္း Window PC ကေန Linux PC ကို Shutdown လုပ္နုိင္ပါတယ္။command ပဲကြာပါလိမ့္မယ္။ :)


ေလးစားစြာျဖင့္
Win Tun Hlaing

Thursday, November 10, 2011

EIGRP Topology Using SSH in Gns3 via Ubuntu Linux

 SSH ဆိုတာကေတာ့ Secure Shell ျဖစ္ပါတယ္။သူ႔ရဲ့အလုပ္လုပ္ပံုနဲ႔ရြယ္ရြယ္ခ်က္ကေတာ့ Telnet နဲ႔ generally တူ ပါတယ္။Remote Device ေတြကို Monitoring လုပ္ဖို႔အတြက္ပါပဲ။သူလည္း Application Layer မွာအလုပ္ လုပ္တာ ပါပဲ။ဒါေပမယ့္ Presentation Layer နဲ႔နီးပါတယ္။Application, touching on Presentation လို႔ေျပာ ရမွာပါ။Telnet နဲ႔အ ဓိကဘာကြာလဲဆိုရင္ Telnet က Data ေတြကို Plain Text နဲ႔ transmit လုပ္ေနခ်ိန္မွာ Secure Shell(SSH) ကေတာ့ encrypt နဲ႔သြားပါတယ္။SSH က Port 22 နဲ႔အလုပ္လုပ္ပါတယ္။အခု EIGRP Topology တစ္ခုကို Gns3 မွာ SSH ကိုသံုးျပီး configuration လုပ္ႀကည့္တာေပါ့။


အေပၚကပံုေလးကေတာ့ Topology Simple ပံုေလးပါ။ကြ်န္ေတာ္တို႔က SSH ကေန Routing ကို Configure ခ် ခ်င္တာျဖစ္လုိ႔အရင္ဆံုး SSH ကို Enable ျဖစ္ေအာင္လုပ္ရပါမယ္။အဲ့ေနရာမွာ Telnet နဲ႔မတူတာအခ်ိဳ႕ရွိပါ တယ္။SSH enable လုပ္မယ္ဆိုရင္ေအာက္ပါအခ်က္ေတြလုိပါတယ္။အဲ့ဒါေတြကေတာ့....
  • Domain Name
  • Crypto Key
  • SSH Enable Password
တို႔ျဖစ္ပါတယ္။SSH Enable Password ဆိုတဲ့ေနရာမွာနွစ္မ်ိဳးရွိပါတယ္။ဒါကိုသူနဲ႔ဆိုင္ရာေနရာေရာက္မွဆက္ ပါမယ္။ေအာက္ကပံုေလးကေတာ့ Topology Simple ပံုေလးထဲက Router R3 ကုိConfiguration ခ်ထားပံုျဖစ္ပါ တယ္။


 အေပၚကပံုေလးကေတာ့ SSH ကို Configuration ခ်ထားတာပါ။ဒီေနရာမွာ SSH အေႀကာင္းကိုပဲအဓိကေျပာ ခ်င္တာျဖစ္လို႔ SSH ကို Configuration ခ်ပံုကိုပဲေအာက္မွာအေသးစိတ္ေရးပါ့မယ္။က်န္တာေတြကိုေတာ့ခ်န္ ထားခဲ့ပါမယ္။SSH Enable လုပ္ပံုကေတာ့..
Router>en
Router#config t                                          //Entering the global configuration mode
Router(config)ip domain-name uak.net       //Assign the Domain Name of the Router
Router(config)host ns0                               //Assign the Host Name of the Router
ns0(config)crypto key generate rsa             //Generating general purpose RSA Keys
The name for the key will be:ns0.uak.net
Choose the size of the key modulus in the range of 360 to 2048 for your
  General purpose keys.Choosing a key modulus greater than may take a
  a few minutes.
How many bits in the modulus [512] : 1024
% Generating 1024 bits RSA keys, keys will be non-exportable... [ok]
အခု Domain Name ရယ္ Crypto Key ရယ္ျပီးသြားပါျပီ။ေနာက္တစ္ခုက SSH အတြက္ Username နဲ႔ Password ပါ။အဲ့ေနရာမွာနွစ္မ်ိဳးသံုးလို႔ရပါတယ္။ပထမတစ္မ်ိဳးက...
ns0(config) line vty 0 15
ns0(config-line)login local    ဆိုပီးထားမယ္ဆိုရင္ Password မွာ Telnet မွာတုန္းကလိုပဲ Configure ခ်ရမွာျဖစ္ ပါတယ္။
ns0(config)username Jasmine password Sabae
 ေနာက္တစ္မ်ိဳးက line configuration မွာ 
ns0(config)line vty 0 15
ns0(config-line)transport input ssh   ဆိုပီးထားခဲ့မယ္ဆိုရင္ ေတာ့ Password မွာအေပၚကလို Configure လုပ္ လို႔မရေတာ့ပါ။ေအာက္ကပံုစံအတိုင္းလုပ္ေပးရမွာျဖစ္ပါတယ္။
ns0(config)username Jasmine secret Sabe  

ေနာက္တစ္ခုက ssh ကိုအေသးစိတ္ Configure ခ်တာပါ။ေအာက္မွာႀကည့္ပါ။
ns0(config)#ip ssh ?
  authentication-retries   Specify number of authentication retries
  break-string                break-string
  logging                       Configure logging for SSH
  maxstartups                Maximum concurrent sessions allowed
  port                           Starting (or only) Port number to listen on
  rsa                             Configure RSA keypair name for SSH
  source-interface         Specify interface for source address in SSH connections
  time-out                     Specify SSH time-out interval
  version                       Specify protocol version to be supported         

အဲ့ဒါေတြအထဲမွာမွ SSH Version ရယ္ authentication အႀကိမ္အေရတြက္ရယ္၊Time Out ျဖစ္မယ္ အခ်ိန္ရယ္ ကိုပဲျပင္ပါ့မယ္။ေအာက္မွာႀကည့္ပါ။
ns0(config)ip ssh version ?
<1-2>  Protocol version
ns0(config)ip ssh version 2                                    //Configure SSH version
ns0(config)ip ssh authentication-retries ?
<0-5>    Number of authentication retries
ns0(config)ip ssh authentication-retries  3               //Configure Authentication Times
ns0(config)#ip ssh time-out ?            
<1-120>  SSH time-out interval (secs)

ns0(config)ip ssh time-out 30                                 //Configure Time Out Interval
ေနာက္ထပ္ Router ေတြကိုလည္းအဲ့လိုပဲ Configuration ခ်ရမွာပါ။SSH Password ကေတာ့ ႀကိဳက္ရာပံုစံနဲ႔ သံုးနုိင္ပါတယ္။Router အားလံုးမွာ SSH Configuration ခ်ပီးသြားရင္ေတာ့ ကြ်န္ေတာ္တို႔ SSH ကိုသံုးပီး Routing Table ေတြကို Configure လုပ္လုိ႔ရပါျပီ။ေအာက္ကပံုေလးကိုႀကည့္ပါ။



ေနာက္ပီးေတာ့ကိုယ္ Generate လုပ္ထားတဲ့ crypto key ေတြ၊Configure ခ် ထားတဲ့ SSH status ေတြကိုလည္း တစ္ဖန္ျပည္ျပီးႀကည့္နုိင္ပါတယ္။အေပၚကပံုေလးအတိုင္းပါပဲ။:)
 SSH ဟာ authentication အတြက္ crypto key ေတြကိုသံုးတာျဖစ္လုိ႔ telnet ထက္စာရင္ပိုျပီး secure ျဖစ္ပါ တယ္။ဒါေပမယ့္ Telnet နဲ႔နွိုင္းယွဥ္ရင္ encrypt နဲ႔သြားတာျဖစ္လို႔ bandwidth ကိုပိုျပီး overhead ျဖစ္ေစပါတယ္။
အဲ့ေလာက္ဆိုရင္ SSH အတြက္လံုေလာက္ပီလို႔ထင္ပါတယ္။အေသးစိတ္ေလ့လာခ်င္ရင္ကြ်န္ေတာ္ Configure လုပ္ထားတဲ့ Simple ေလးကို ဒီေနရာ မွာယူနုိင္ပါတယ္။အာလံုးပဲအဆင္ေျပႀကပါေစ။:)

ေလးစားစြာျဖင့္
Win Tun Hlaing










Sunday, November 6, 2011

Telnet Tutorial(Part2)

Telnet Configuration ခ်ပံုကိုကြ်န္ေတာ္ ပထမ Post မွာေရးျပီးသြားပါျပီ။အခု Telnet ကိုဘယ္လိုသံုးမလဲ၊ဘယ္လို အသံုး၀င္လဲဆိုတာကိုေအာက္မွာတစ္ဆင့္ခ်င္းျပေပးပါ့မယ္။Start>Run>cmd မွာ telnet ဆိုပီးရိုက္ႀကည့္လိုက္ပါ။
ေအာက္ကပံုအတိုင္းေပၚလာရင္ေတာ့ Telnet ကိုသံုးလို႔ရပါျပီ။

Telnet က Terminal ေပၚမွာအေျခခံတာေႀကာင့္ Terminal လြယ္လြယ္ေျပာရင္ေတာ့ command prompt ေပါ့ အဲ့မွာ လုပ္လို႔ရတာေတာ္ေတာ္မ်ားမ်ားကို Telnet ကေနတစ္ဆင့္ျပဳလုပ္နုိင္မွာျဖစ္ပါတယ္။Telnet ကေနခ်ိတ္ဆက္ရာ မွာကုိယ္ခ်ိတ္ဆက္ခ်င္တဲ့ Remote Devices ရဲ့ host name ကိုသံုးပီးေတာ့ျဖစ္ေစ၊IP နဲ႔ပဲျဖစ္ေစခ်ိတ္ဆက္နိုင္ပါ တယ္။ေအာက္ကပံုကိုႀကည့္ပါ။remote device တစ္ခုခုကိုခ်ိတ္ဆက္ခ်င္တယ္ဆို ရင္ o ဆိုတာေလးကိုသံုးပါမယ္။သုညမဟုတ္ပါ။English Latter အိုျဖစ္ပါတယ္။သူ႔ရဲ့အဓိပါယ္ကေတာ့ connect ပါ။ပီးရင္ (to) ရဲ့ေနာက္ကေနကိုယ္ခ်ိတ္ဆက္ခ်င္တဲ့ device ရဲ့ host name သို႔ IP ကုိအသံုးျပဳနုိင္ပါတယ္။


ေပၚကပံုကေတာ့ ကေတာ့ Login Username နဲ႔ Password ေတာင္းေနတာပဲျဖစ္ပါတယ္။Username နဲ႔
Password မွန္သြားတာနဲ႔ ေအာက္ကပံုအတိုင္း Remote host ထဲကို၀င္သြားပီျဖစ္ပါတယ္။

အဲ့ေနရာမွာ တစ္ျပိဳင္နက္တည္းမွာ telnet ကိုသံုးပီး တစ္ခုထက္မကတဲ့ remote devices ေတြကို ထိန္းခ်ဳပ္နိုင္ ပါတယ္။ေအာက္ကပံုေလးကိုႀကည့္ပါ။


Telnet နဲ႔၀င္ထားတာေတာ့ဟုတ္ပါျပီ။ဘယ္လိုအသံုး၀င္မွာလဲ။အေပၚမွာေရးခဲ့တဲ့အတိုင္းပါပဲ။Terminal မွာလုပ္ လို႔ရတာေတာ္ေတာ္မ်ားမ်ားကို Telnet ကေနေဆာင္ရြက္နုိင္ပါတယ္။IP setting ေတြ၊Disk Drive အေျခေန၊ system information ေတြစတာေတြကို Telnet ကေနတစ္ဆင့္ႀကည့္ရွဳနိုင္ပါတယ္။ေအာက္ကပံုေလးကိုႀကည့္
ပါ။

ဒါ့အျပင္ telnet နဲ႔ထိန္းခ်ဳပ္ထားတဲ့ Remote Computer မွာ User ေတြဘာေတြသံုးေနလဲ tasklist command သံုး
ျပီးႀကည့္နိုင္ပါတယ္။လိုအပ္ရင္ေတာ့ taskkell ဆိုတာေလးကိုသံုးျပီး  process ကို Terminate လုပ္နိုင္ပါ တယ္။အဲ့ဒါေလးကိုေတာ့မလုပ္ျပေတာ့ပါဖူး။အဆဲခံရမွာစိုးလို႔ပါ :)။ေနာက္ပီး remote machine ရဲ့ IP Address တို႔၊Network Setting တို႔ Firewall Setting တို႔ကိုလည္း Telnet ကေနတစ္ဆင့္ျပင္လို႔ရပါတယ္။ေနာက္ဆံုး Remote Machine ကိုေတာင္ Telnet မွတစ္ဆင့္ ေအာက္မွာျပထားတဲ့ပံုေလးအတုိင္း  shutdown ခ်နိုင္ ပါေႀကာင္း....။:)


အခုခ်ိန္မွာ IT နဲ႔ပတ္သတ္ရင္ စိန္ေခၚမွုကသိပ္မ်ားေနပါတယ္။စိန္ေခၚမွဳဆိုတဲ့ေနရာမွာအလုပ္ကိုင္အခြင့္ လမ္းနဲ႔သင္ယူေလ့လာရန္အရင္းနွီးစသည္ျဖင့္ပါ၀င္ပါတယ္။Gtalk မွာ Chatting ရိုက္တာနဲ႔ Facebook မွာ Photo ေလးေတြႀကည့္တာေလာက္ကိုပဲ Internet သံုးတယ္လို႔သတ္မွတ္ေနရတဲ့ ကြ်န္ေတာ္တို႔အေျခေနမွာ junior ညီငယ္ညီမငယ္ေလးေတြနဲ႔ အျခားNetwork ကုိစိတ္၀င္စားေသာသူမ်ားအတြက္အေထာက္အကူျပဳ
နိုင္ရန္ Self-study ျပဳလုပ္ျပီး ေရးသားေပးလိုက္ပါတယ္။စာလံုးေပါင္းမွားတာမ်ိဳးရွိရင္ခြင့္လြတ္သီးခံေပးပါ။

ေလးစားစြာျဖင့္
Win Tun Hlaing

Telnet Tutorial

      Telnet ဆိုတာကေတာ့ TCP/IP Protocol Suite  ရဲ့အစိတ္ပိုင္းတစ္ခုျဖစ္ျပီး   OSI Model ရဲ့ Application    Layer မွာအလုပ္လုပ္ပါတယ္။သူ႔ရဲ့အဓိကရည္ရြယ္ခ်က္ကေတာ့ Remote Network Devices တြကို ထိန္းခ်ဳပ္ဖို႔ျဖစ္ပါ တယ္။Remote Network Devices  ဆိုတဲ့ေနရာမွာ Router, IP Camera, Web Server ,Remote Computer စသည္ျဖင့္ပါ၀င္နိုင္ပါတယ္။ အဲ့ဒါေတြအကုန္လံုး ကို Telnet ကေနတစ္ဆင့္ ထိန္းခ်ဳပ္လို႔ရပါတယ္။ေနာက္ ပီး Telnet က port 23 နဲ႔အလုပ္လုပ္ပါတယ္။ ဒါေႀကာင့္ကြ်န္ေတာ္တို႔က Telnet ကိုအသံုးျပဳမယ္ဆိုရင္ Port 23 ကိုဖြင့္ေပးထားရမွာျဖစ္ပါတယ္။ Telnet အသံုးျပဳပီး Window ရဲ့ Workgroup Network ေပၚမွာ computer တစ္လံုးနဲ႔တစ္လံုးကို ဘယ္လို control လုပ္မလဲ၊အဲ့လို control လုပ္လို႔ရေစ ရန္မည္သို႔ configuration ခ်မလဲ စသည့္အေႀကာင္းရာမ်ားကိုေအာက္မွာ တစ္ဆင့္ခ်င္းေဖာ္ျပေပးပါ့မယ္။
        Window ေပၚမွာ Telnet ကိုဖြင့္မယ္ဆိုရင္ပထမဆံုးက Telnet Service ကိုအရင္ဆံုး Install လုပ္ေပးရမွာပါ။ အဲ့ေနရာမွာ Window XP နဲ႔ Window7 ကမတူေတာ့ပါဖူး။အဲ့ေတာ့ Window7 ကိုအရင္ Configuration ခ် ႀကည့္တာေပါ့။ပထမဆံုး start>run ကေနတစ္ဆင့္ appwiz.cpl လို႔ရိုက္ပီး Add or Remove Program ကို သြားရပါမယ္။အဲ့ဒီကေန  Turn Windows features on or off ဆိုတာကိုသြားရပါမယ္။ေအာက္ကပံုေလးေတြ ကုိႀကည့္ပါ။


Turn Windows Features on or off ဆိုတဲ့ေနရာမွာ Telnet Server နဲ႔ Telnet Client ကို select လုပ္ပီး ok  ေပးရမွာျဖစ္ပါတယ္။အဲ့ဒါဆိုရင္ Telnet ကို Install လုပ္လုိ႔ပီးသြားပါပီေအာက္ကပံုေလးကိုႀကည့္ပါ။

Telnet ကို Install လုပ္ပီးသြားေပမယ့္ကြ်န္ေတာ္တို႔အသံုးျပဳနုိင္ျခင္းမရွိေသးပါ။ဘာလို႔လဲဆိုေတာ့ Telnet နဲ႔ ဆိုင္တဲ့ အျခား services ေတြကိုထပ္ပီးဖြင့္ေပးရအံုးမွာျဖစ္ပါတယ္။ေနာက္တစ္ဆင့္အေနနဲ႔ Start>Run က 
ေန lusrmgr.msc ကိုသြားပါမယ္။Local Users and Groups မွာ Group ထဲကို၀င္ပီး Telnet အတြက္ User ကိုေရြးခ်ယ္ေပးရမွာျဖစ္ပါတယ္။ေအာက္ကပံုေလးကိုႀကည့္ပါ။ေအာက္ကပံုမွာဆိုရင္ host name  ACER-PC မွာ Acer ဆိုတဲ့ User Account နဲ႔သံုးေနတာမို႔ ပံုမွာျပထားတဲ့အတုိင္းပဲေရြးလိုက္ပါမယ္။


ျပီးရင္ေတာ့ Start>Run ကေန services.msc ကိုသြားပီး Telnet services ကိုဖြင့္ေပးရမွာျဖစ္ပါတယ္။ Telnet က default အားျဖင့္ Desible ျဖစ္ပါတယ္။ဒါကိုကြ်န္ေတာ္တို႔က Automatic ထားပီးဖြင့္ေပးရမွာပါ။
ေအာက္ကပံုေလးကိုႀကည့္ပါ။Telnet service ကို enable မလုပ္ရေသးတဲ့ပံုပါ။

အေပၚကပံုကေတာ့ Telnet ကို Automatic ထားပီးဖြင့္ေပးလိုက္တာပဲျဖစ္ပါတယ္။ပီးသြားရင္ start လုပ္ေပး ရပါမယ္။အေပၚကဆင့္ေတြအကုန္ျပီးရင္တာ့ Telnet ကိုစတင္အသံုးျပဳနုိင္ျပီျဖစ္ပါတယ္။ဒီေနရာမွာ WindwoXP နဲ႔ Window7 မတူတာက windowXP က Telnet ကို default အားျဖင့္ install လုပ္ထားေပးပီး သားပါ။window7 မွာလို install ထပ္ပီးလုပ္စရာမလိုပါ။services.msc မွာ Telnet ကိုဖြင့္ေပးလုိက္တာနဲ႔သံုး လို႔ရပါပီ။ဒါဆိုရင္ Telnet ကိုအသံုးခ်ႀကည့္တာေပါ့။start>run ကေန cmd ကုိအရင္ဆံုးသြားရပါမယ္။ပီးရင္ Telnet ဆိုပီးရိုက္ႀကည့္လိုက္ပါ။Telnet ထဲ၀င္သြားရင္ေတာ့ လက္ရွိသံုးေနတဲ့ host ကေန telnet enableျဖစ္ တဲ့မည္သည့္ host ကိုမဆို ခ်ိတ္ဆက္လို႔ရပါပီ။အဲ့ေနရာမွာ ကိုယ္ခ်ိတ္ဆက္မယ့္ host ရဲ့ Username နဲ႔ Password ကိုေတာ့သိထားရမွာျဖစ္ပါတယ္။Telnet ကိုအသံုးျပဳပီးလက္ေတြ႕လုပ္ေဆာင္ပံုကိုေတာ့ေနာက္ ထပ္ post တစ္ခုအေနနဲ႔ထပ္တင္ေပးပါ့မယ္။Post ရွည္သြားမွာဆိုးလို႔ပါ။

ေလးစားစြာျဖင့္
Win Tun Hlaing





Tuesday, October 18, 2011

OSPF Topology in GNS3

Gns3မွာ OSPF Topology ေလးတစ္ခုလက္ေတြ႕လုပ္ႀကည့္ပါမယ္။ေအာက္ကပံုေလးက Topology simple ပံုေလးပါ။


ပံုေလးမွာ Router 3 လံုးသံုးထားပါတယ္။ပီးေတာ့ OSPF ကို multi-area ထားပါမယ္။ပီးေတာ့ Telnet နဲ႔ Remote ကေနလွမ္းပီး Configure လုပ္လို႔ရေအာင္ပါတစ္ခါတည္းလုပ္ပါမယ္။R1 ကို 2961series,R2 ကို 3600 series နဲ႔
R3 ကို 3700 series အသီးသီးသံုးပါမယ္။အခု Topology မွာ Serial link ေတြပါေနတာေႀကာင့္ အဲ့ဒီ serial link ေတြအတြက္ NM-4T ဆိုတဲ့ Module ကိုသံုးပါမယ္။ေနာက္ပီးကြ်န္ေတာ့္ရဲ့ပံုထဲမွာ Ethernet ေတြလည္းပါ
ပါတယ္။ဒါေႀကာင့္အဲ့အတြက္လည္း Ethernet Module ေတြလိုပါတယ္။ဒီမွာတာ့ GT96100-FE နဲ႔  NM-1FE-TX  နွစ္ခုထဲကႀကိဳက္တာသံုးလို႔ရပါတယ္။ကြ်န္ေတာ္ကဒီေနရာမွာ Interface Module ေတြ အေႀကာင္း ကိုေျပာ ခ်င္တာမ်ိဳးမဟုတ္ပဲ Topology ေလးကို Gns3 မွာအသံုးခ်ပံုကိုပဲအဓိကေျပာခ်င္တာပါ။ Nework  Module Interface ေတြနဲ႔ပတ္သတ္ပီးအေသးစိတ္ေလ့လာခ်င္ရင္ cisco website မွာေလ့လာလုိ႔ရပါ တယ္။NM-4T အတြက္ ဒီေနရာ ေလးမွာေလ့လာလို႔ရပါတယ္။

အေပၚကပံုေလးကေတာ့ Router ရဲ့ Module ေတြပဲျဖစ္ပါတယ္။အားလံုးပီးသြားရင္ကြ်န္ေတာ္တို႔ Router ေတြ ကို Power ႏိုးပါမယ္။Idle PC value Apply လုပ္ပါမယ္။အဲ့ဒါေတြကေတာ့ Gns3 Configuration ခ်ပံုမွာပါပီးပါျပီ။

 အေပၚကပံုေလးကေတာ့ Router R2 ကို Power ႏိုးထားတဲ့ပံုပါ။Router အားလံုး Power On ျပီးသြာင္းရင္ ပထမ ဆံုး Interface အသီးသီးကို Topology ပံုမွာပါတဲ့သက္ဆိုင္ရာ IP ေတြေပးပါမယ္။ပီးရင္ Router အသီးသီးကို Telenet နဲ႔ Enable Secret တို႔ကိုအသီးသီး Configure ခ်ပါမယ္။ေအာက္ကပံုေလးက Router1 ကို Configure
 ခ်ထားတဲ့ပံုပါ။


Router အသီးသီးရဲ့ Configure ခ်ပံုေတြကိုေအာက္မွာေရးေပးထားပါတယ္။
For Router1,
Router>enable                                                                    //enter the priviliage mode
Router#configure terminal                                                  //enter the configuration mode
Router(config)hostname R1                                               //setup host name to Router
R1(config)interface fastethernet0/0                                    //enter into the fast ethernet interface
R1(config-if)ip address 192.168.10.1 255.255.255.0     //setup the ip address to the fast ethernet  interface
R1(config-if)no shutdown                                              //start the interface into up
R1(config-if)interface serial1/0                                      //enter to the serial interface
R1(config-if)ip address 10.10.10.1 255.255.255.0       //setup the ip address to the interface
R1(config-if)clock rate 64000                                      //setup the clock rate for DTE
R1(config-if)no shutdown                                            //start the serial interface into up
R1(config-if)interface lo0                                             //start the look back interface
R1(config-if)ip address 1.1.1.1 255.255.255.0           //setup the look back interface ip address
R1(config-if)exit                                                         //exit from interface mode
R1(config)username HninSi password Rose               //setup the User name and password to login
R1(config)enable secret 1234                                   //setup the enable secret for Router
R1(config)line vty 0 15                                             //enter the virtual terminal line
R1(config-line)login local
R1(config-line)end                                                   //exit from the line
R1#write memory                                                   //saving configurations to the NVRAM

For Router2,
Router>enable                                                                     //enter the priviliage mode
Router#configure terminal                                                    //enter the configuration mode
Router(config)hostname R2                                                //setup host name to Router
R2(config)interface fastethernet0/0                                     //enter into the fast ethernet interface
R2(config-if)ip address 192.168.30.1 255.255.255.0        //setup the ip address to the fast ethernet  interface
R2(config-if)no shutdown                                                 //start the interface into up
R2(config-if)interface serial1/0                                         //enter to the serial interface
R2(config-if)ip address 10.10.10.2 255.255.255.0         //setup the ip address to the interface
R2(config-if)no shutdown                                               //start the serial interface into up
R2(config-if)interface serial1/1                                       //enter to the serial interface
R2(config-if)ip address 172.16.0.1 255.255.255.0        //setup the ip address to the serial interface
R2(config-if)clock rate 64000                                       //setup the clock rate for DTE
R2(config-if)no shutdown                                             //starting the serial interface into up
R2(config-if)interface lo0                                             //start the look back interface
R2(config-if)ip address 2.2.2.2 255.255.255.0           //setup the look back interface ip address
R2(config-if)exit                                                         //exit from interface mode
R2(config)username Sabae password jasmine            //setup the User name and password to login
R2(config)enable secret asdfg                                   //setup the enable secret for Router
R2(config)line vty 0 15                                             //enter the virtual terminal line
R2(config-line)login local
R2(config-line)end                                                   //exit from the line
R2#write memory                                                   //saving configurations to the NVRAM


အေပၚကပံုေလးကေတာ့ Router3 ကိုConfigure ခ်ထားပံုေလးပါ။Configuration ခ်တဲ့ေနရာမွာပထမဆံုးအေန ကေတာ့ Router ရဲ့ Console ကေန၀င္ပီးခ်ေပးရမွာျဖစ္ပါတယ္။ေနာက္အႀကိမ္မ်ားမွာေတာ့ Telnet ကေနလွမ္း configure လို႔ရပါျပီ။ပီးရင္ကိုယ္ IP ေပးထားတဲ့ Interface ေတြရဲ့အေျခေနေလးကိုတစ္ခ်က္ေလာက္ျပန္ႀကည့္ ႀကည့္ပါမယ္။ေအာက္ကပံုေလးကေတာ့ Interface ေတြရဲ့ Status ေတြကိုျပန္ႀကည့္ထားတဲ့ပံုပါ။


လက္ရွိအေျခေနထိ Network ေတြကို Route မလုပ္ရေသးပါဘူး။ဒါေႀကာင့္ Direct ျဖစ္ေနတဲ့ Network ရဲ့ Interface IP ကလြဲရင္ က်န္တဲ့ Remote Network ရဲ့ Interface IP ေတြကို ping လုပ္လို႔ရမွာမဟုတ္ပါ။ဆိုလိုတာ က Router1 ကေန 10.10.10.2 ကို ping လုပ္လို႔ရပါမယ္။ဘာလို႔လဲဆိုေတာ့ Direct Network ျဖစ္ေနလို႔ပါ။အခု telnet နဲ႔၀င္ရင္လည္း Direct Network ရဲ့ Interface ကေနတစ္ဆင့္ပဲ၀င္ရမွာျဖစ္ပါတယ္။ဘာလို႔လဲဆိုေတာ့ Route မလုပ္ရေသးလို႔ပါ။Route လုပ္ပီးရင္ေတာ့ ႀကိဳက္ရာ Remote Network ရဲ့ InterfaceIP ကေန၀င္လို႔ရပါျပီ ဒါဆိုရင္အခု OSPF နဲ႔ Route လုပ္ပါမယ္။Router1 ကေနပဲက်န္တာေတြအကုန္လံုးကို telnet နဲ႔ Configure လုပ္ ပါမယ္။ေအာက္မွာ Configure လုပ္တဲ့ Command ေလးေတြပါ။

For Routing,
R1>en
R1#config t
R1(config)router ospf 1
R1(config-router)net 192.168.10.0 0.0.0.255 area 0
R1(config-router)net 10.10.10.0 0.0.0.255 area 0
R1(config-router)net 1.1.1.0 0.0.0.255 area 0
R1(config-router)end
R1#wr
R1#telnet 10.10.10.2
Trying 10.10.10.2

User Access Vertification
Username:Sabae
Password:jasmine
R2>en
Password:asdfg
R2#config t
R2(config)router ospf 1
R2(config-router)net 10.10.10.0 0.0.0.255 area 0
R2(config-router)net 172.16.0.0 0.0.0.255 area 1
R2(config-router)net 2.2.2.0 0.0.0.255 area 0
R2(config-router)net 192.168.30.0 0.0.0.255 area 0
R2(config-router)end
R2#wr
R2#telnet 172.16.0.2
Trying 172.16.0.2

User Access Vertification
Username :Chary
Password : flower
R3>en
Password:ilu123
R3#config t
R3(config)router ospf 1
R3(config-router)net 172.16.0.0 0.0.0.255 area 1
R3(config-router)net 3.3.3.0 0.0.0.255 area 1
R3(config-router)net 192.168.50.0 0.0.0.255 area 1
R3(config-router)end
R3#wr

 အခုဆိုရင္ Router ေတြအားလံုးကို Telnet ကေနတစ္ဆင့္ OSPF Routing ကို Configure ခ်ျပီးပီျဖစ္ပါတယ္။ျပီး ရင္ Routing table ေတြရဲ့အေျခေနေတြ၊Interface ေတြရဲ့အေျခေနေတြ၊Neighbor Router ေတြရဲ့အေျခေနသည္ တို႔ ကိုျပန္လည္ check up လုပ္နုိင္ပါတယ္။လိုအပ္ရင္ telnet ကေနတစ္ဆင့္ပဲ configure ခ်နိုင္ပါတယ္။
ေအာက္ကပံုကေတာ့ Router ေတြရဲ့ Routing Table Statue ကိုႀကည့္ထားတဲ့ပံုပါ။အဲ့ေနရာမွာတကယ့္လက္ေတြ႔ မွာဆိုရင္ေတာ့ Router အားလံုးရဲ့ status ကိုတစ္ခါတျပိဳင္တည္းႀကည့္ခ်င္တယ္ဆိုရင္ telnet နဲ႔မွပဲရမွာပါ။ ဒီမွာတာ့ simulation လုပ္ေနတာျဖစ္လို႔ computer တစ္လံုးတည္းကေနတစ္ျပိဳင္တည္းႀကည့္နုိင္ပါတယ္။



အေပၚကပံုကေတာ့ Router ေတြရဲ့ Interface အသီးသီး ကို telnet ကေနတစ္ဆင့္ႀကည့္ထားတဲ့ပံုပါ။ဒီေနရာမွာ OSPF Routing Information ေတြကိုျပန္ႀကည့္တဲ့ command ေတြထဲကမွအသံုးမ်ားတာေတြကိုေအာက္မွာေေရး ထားေပးပါတယ္။
R1#show ip ospf interface s0/0
R1#show ip ospf neighbor
R1#show ip protocol
R1#show ip route
R1#show ip ospf database

အထက္ပါ command မ်ားအနက္ show ip route command သည္ routing table ကိုႀကည့္ေသာ command ျဖစ္ပီး အျခားေသာ Routing Protocol မ်ားတြင္လည္းအသံုးျပဳနိုင္ေပသည္။show ip ospf neighbor သည္ neighbor router မ်ား၏ adjacency state ကိုႀကည့္ရွုေသာ command ျဖစ္သည္။


အထက္မွပံုမွာ sh ip ospf interface နွင့္ sh ip neighbor တို႔ကို အသံုးျပဳထားပံုျဖစ္သည္။sh ip ospf interface command ဟာဆိုရင္ Interface IP address,Area Assignment,Process ID,Router ID,Network type,Cost Priority,DR/DBR election information,Hello and Dead timer intervals,Adjacent neighbor information တို႔ကိုျပ သေပးပါတယ္။အခုဒီပံုမွာ R2 ဟာ OSPF Topology အရ Area border Router ျဖစ္ပါတယ္။ကြ်န္ေတာ့္အေနနဲ႔ Topology သေဘာကိုေျပာခ်င္တာမ်ိဳးမဟုတ္ပဲ Gns3 မွာ OSPF Topology တစ္ခုကိုဘယ္လို apply လုပ္တယ္ ဆိုတာကိုပဲေျပာခ်င္တာျဖစ္ပါတယ္။အခုဟာက simulation လုပ္ေနတာျဖစ္လုိ႔ လက္ေတြ႕နဲ႔ေတာ့အနည္းငယ္ ကြဲလြဲပါတယ္။သုိ႔ေသာ္လည္း cisco ios image အစစ္ေတြကို emulate လုပ္ထားတာမို႔အစစ္နည္းပါးအတိုင္း function ေတြကိုအသံုးခ်လို႔ရေစပါတယ္။ေနာက္မ်ားအခ်ိန္ရရင္ အျခားေသာအေႀကာင္းရာမ်ားျဖစ္တဲ့ Access List တည္ေဆာက္ပံုတို႔၊NAT တုိ႔ Virtual LAN စသည္တို႔ကိုလည္းGns3 ေပၚမွာဘယ္လို apply လုပ္တယ္ဆို တာေရးေပးပါအံုးမယ္။

ေလးစားစြာျဖင့္
Win Tun Hlaing


Wednesday, October 12, 2011

Gns3 Configuration in Ubuntu Linux

Gns3 ကို Ubuntu Linux မွာ Configuration ခ်မယ္ဆိုရင္ဘာေတြလိုအပ္မလဲဆိုေတာ့.....
1.GNS3-0.7.4-scr.tar.gz
2.Cisco IOS Firmwares
3.dynamips
4.Necessary Package Files
ေတြပဲျဖစ္ပါတယ္။အဲ့ဒါေတြထဲကနံပတ္တစ္ကေနသံုးအထိကို www.gns3.net မွာသြားျပီးယူလို႔ရပါတယ္။ နံပတ္ေလးျဖစ္တဲ့ NecessaryPackageFiles ေတြကိုေတာ့ PackageManager ကေနကိုယ့္ဘာ သာပဲတင္ေပးမွာျဖစ္ပါတယ္။


အေပၚကပံုေလးကေတာ့ GNS3-0.7.4-scr.tar.gz file ေလးျဖစ္ပါတယ္။အဲ့ဒီ tar.gz file ေလးကို Desktop    ေပၚမွာပဲ extract လုပ္လိုက္ပါ။ဒါဆို GNS3-0.4.4-src ဆိုတဲ့ Folder ေလးတစ္ခုရလာပါ မယ္။ကြ်န္ေတာ္တို႔က အဲ့ Folder ေလးထဲကို၀င္ပီး Configuration ခ်ေပးရမွာပါ။ အဲ့ဒီအတြက္လိုအပ္တဲ့ package အခ်ိဳ႕ကို Package Manager ကေနရွာပီးတင္လိုက္ပါမယ္။လိုအပ္တာကေတာ့ python-qt4 ဆို တဲ့ package ေလးပါပဲ။ရွိေနပီးသားဆိုရင္ေတာ့မလိုေတာ့ပါဘူး။မရွိေသးရင္ေတာ့တင္ေပးရပါမယ္။


အေပၚကပံုကေတာ့ python-qt4 ကို Package Manager ကေန Search လုပ္တဲ့ပံုပါ..။ဒီမွာေတာ့အရင္ တည္းကရွိေနပီးသားျဖစ္လို႔ထပ္တင္စရာမလိုေတာ့ပါဘူး။ပီးရင္ေစာတုန္းက extract လုပ္ထားတဲ့ GNS3-0.7.4-scr Folder ေလးထဲကိုသြားပါ။အဲ့မွာ gns3 ဆိုတဲ့ notepad လို script ေလးကို right-click> properties ကိုသြားပီး Permission tab မွာ Allow executing files as a program ဆိုတာေလးကိုအ မွန္ျခစ္ေပးရပါမယ္။ေနာက္ပီးေတာ့ dynamips ဆိုတာေလးလိုပါေသးတယ္။အဲ့ေကာင္က window မွာဆို ရင္ေတာ့ install လုပ္စဥ္ကတည္းကပါလာေပမယ့္ linux မွာေတာ့ကိုယ့္ဘာသာ configureခ်ေပးရ မွာျဖစ္ပါတယ္။ကြ်န္ေတာ္ကေတာ့ dynamips-0.2.8-RC2-x86.bin ဆိုတာေလးကိုသံုးပါမယ္။ အဲ့ေကာင္
ေလးကို ေစာတုန္းက extract လုပ္ထားတဲ့ GNS3-0.7.4-scr ဆိုတဲ့ Folder ေလးထဲကိုပဲထည့္ပါမယ္။ ဒါေပမယ့္ဒါကေသေတာ့မဟုတ္ပါ။ကိုယ္ႀကိဳက္တဲ့ file system ေအာက္မွာထားလို႔ရပါတယ္။ပီးရင္ dynam ips-0.2.8-RC2-x86.bin ကို Right-Click>Properties မွာ Permission ကို Executable ျဖစ္ေအာင္ ထားေပးရပါမယ္။ေအာက္ကပံုေလးကိုႀကည့္ပါ။


 အဲ့ဒါဆိုရင္ကြ်ေတာ္တို႔ gns3 ကို Ubuntu ေပၚမွာစပီး Run လို႔ရပါပီ။gns3 script ေလးကို Double-Click နဲ႔သာ run လုိက္ပါ။prompt ေလးတစ္ခုက်လာရင္ Run ဆိုတာေလးနဲ႔ run ရပါမယ္။ေအာက္ကပံုကိုႀကည့္ ပါ။

အဲ့ဒါဆိုရင္ေနာက္တစ္ဆင့္က IOS image ေတြကို Configuration ခ်ေပးရမွာပဲျဖစ္ပါတယ္။အဲ့အဆင့္ ကေတာ့ window ကပံုစံနဲ႔တူတူပဲျဖစ္ပါတယ္။ဒါေႀကာင့္မို႔အေသးစိတ္မျပေတာ့ပါဘူး။IOS image ေတြကို Configure မခ်ရေသးခင္မွာ Router ေတြကို Work Space ကိုဆြဲတင္လို႔ရမွာမဟုတ္ပါ။ေအာက္ကပံုလးကို တစ္ခ်က္ႀကည့္ႀကည့္ပါ။


အေပၚကပံုေလးကိေတာ့ IOS ေတြကို Configuration ခ်ထားတဲ့ပံုပါ
ေနာက္ပီးgns3 က cisco ios အစစ္ေတြကိုသံုးပါတယ္။အဲ့အတြက္ system ရဲ့ Resources ေတြကိုအလြန္ပဲ သံုးစြဲပါတယ္။ေနာက္အေရးႀကီးတဲ့တစ္ခ်က္ရွိပါေသးတယ္။အဲ့ဒါက dynamip ပါ။သူကဘာလဲဆိုေတာ့ ios emulator ပါ။ios ကို run လို႔ရေအာင္လုပ္ေပးထားတဲ့ program လို႔ပဲေျပာရမွာေပါ့ဗ်ာ။အဲ့ဒီprogram ေလး success ျဖစ္မွ IOS ေတြအလုပ္လုပ္မွာပါ။Fail ျဖစ္ရင္ေတာ့အလုပ္လုပ္မွာမဟုတ္ပါ။ေအာက္ကပံုကိုႀကည့္ပါ


အေပၚကပံုကေတာ့ Router ေတြကို Work Space ေပၚကိုဆြဲတင္ထားပံုျဖစ္ပါတယ္။အေပၚကအဆင့္ေတြ အားလံုးပီးသြားရင္ေတာ့ Router တစ္လံုးကို Power နွုိးႀကည့္လိုက္ပါမယ္။Power ႏိုးလိုက္ပီဆိုတာနဲ႔ gns3 က CPU Resources ေတြကိုအလြန္သံုးစြဲေတာ့မွာပါ။ေအာက္ကပံုကိုႀကည့္ပါ။
ဒါေပမယ့္ Gns3 မွာ Idle PC ဆိုတာရွိပါတယ္။အဲ့ဒါေလးကိုသံုးပီး CPU Loading ကိုေလ်ွာ့ခ်ႏိုင္ပါတယ္။ သို႔ေသာ္လည္း memory loading ကိုေတာ့ ေလွ်ာ့ခ်နိုင္ျခင္းမရွိပါဖူး။ဒါေႀကာင့္ gns3 ကိုသံုးမယ္ဆိုရင္ physical memory မ်ားေလေကာင္းေလပဲျဖစ္ပါတယ္။အဲ့ေနရာမွာကြ်န္ေတာ့္အေနနဲ႔ဆိုရင္ေတာ့ linux ကို ပိုပီး favour ျဖစ္ပါတယ္။ဘာလို႔လဲဆိုရင္သူက window ထက္စာရင္ memory စားတာေတာ္ေတာ္ေလး နည္းပါတယ္။ဒါေႀကာင့္ gns3 run ရင္ေတာ္ေတာ္ေလးအဆင္ေျပတာေတြ႔ရပါတယ္။

အေပၚကပံုကေတာ့ Idle PC ကို Router ေပၚမွာ Apply လုပ္ပီးတဲ့ပံုပါ။Idle PC apply လုပ္ပံုကေတာ့ Router ေပၚမွာ Right Click>Idle PC ဆိုတာေလးကိုနွိပ္ေပးရမွာပါ။ပီးရင္သူ႔ဘာသာ Aoto တြက္ပီးေပၚ လာတဲ့ prompt ေလးထဲက star ျပထားတာေလးကိုေရြးပီး apply လုပ္ေပးလုိက္ရင္ပါပီ။ပီးရင္ေတာ့ကြ်န္
 ေတာ္တို႔ Router ရဲ့ Console ထဲကို၀င္လို႔ရပါပီ။အဲ့လို၀င္တဲ့ေနရာမွာ gns3 မွာပါတဲ့ default အတိုင္းသံုး ရင္လည္းရပါတယ္။ကြ်န္ေတာ္ကေတာ့ Ubuntu Linux မွာသံုးေနတာျဖစ္လို႔ Gnome Terminal ကိုပဲသံုးပါ မယ္။အဲ့ဒီအတြက္ Edit>Preference ေအာက္က General မွာ Terminal Setting ဆိုတာကိုသြားပါ။အဲ့မွာ Terminal Command ဆိုတဲ့အကြက္ေလးထဲမွာ ......
gnome-termanal -t %d -e 'screen -L telnet %h %p' >dev/null/ 2>&1 & ဆိုပီးထည့္ေပးပါ။
ေအာက္ကပံုေလးကိုႀကည့္ပါ..။
 ပီးရင္ေတာ့ Right-Click>Console ကေန Router ထဲကို၀င္ပီး management လုပ္လို႔ရပီျဖစ္ပါတယ္။
 အေပၚကပံုေလးကေတာ့ Router ထဲကို၀င္ထားတဲ့ပံုျဖစ္ပါတယ္။ေအာက္ကပံုေလးေတြကေတာ့ gns3 မွာပါ တဲ့ features ေလးေတြပါ..။

window မွာ configuration ခ်ပံုေလးကိုေတာ့ http://www.fileserve.com/file/QJKhKf4 မွာယူလို႔ရပါ တယ္။အဲ့မွာေတာ့ပံုပိုမ်ားလို႔post အေနနဲ႔တင္ဖို႔အဆင္မေျပတာေႀကာင့္ word နဲ႔ပဲေရးပီး file hosting မွာပဲသြားတင္လိုက္ရတာပါ။

ကြ်န္ေတာ့္အေနနဲ႔ junior ညီငယ္ညီမငယ္ေလးေတြအဆင္ေျပေအာင္ကိုယ္သိသေလာက္ကို
self-studyလုပ္ပီးေဖာ္ျပေပးလိုက္ပါတယ္။အခုခ်ိန္မွာအားလံုးသိႀကတဲ့အတုိင္းပဲစိန္ေခၚမွုေတြ
ကအရမ္းမ်ားေနပါတယ္။ေငြေႀကးအရေသာ္လည္းေကာင္း၊နည္းပညာအရေသာ္လည္းေကာင္း
စသည္ျဖင့္ေပါ့။ေငြမရွိလို႔သင္တန္းကတက္ခ်င္ေပမယ့္မတက္နိုင္၊သင္တန္းတက္ျပန္ေတာ့လည္း
guide line မရွိလို႔အဆင္မေျပစသည္ျဖင့္ေပါ့။ေနာက္မ်ားအားလပ္လို႔ရွိရင္ gns3 ေပၚမွာ Topology
ေတြ Apply လုပ္ပံုေလးေတြကိုလည္းသိသေလာက္ေရးေပးပါအံုးမယ္။configuration ခ်ရာမွာလိုအပ္မယ့္ files ေလးေတြကိုလည္း တစ္စုတစ္စည္းတည္းျဖစ္ေအာင္connection ေကာင္းတဲ့အခ်ိန္မွာတင္ေပးပါ့မယ္။

ေလးစားစြာျဖင့္
Win Tun Hlaing