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