Showing posts with label LAB. Show all posts
Showing posts with label LAB. Show all posts

Sunday, 22 October 2017

BGP LAB

BGP နဲ့ပက်သက်ပြီး LAB တစ်ခုကို လုပ်ကြည့်ရအောင်။ ဒီ LAB ကို ပြီးခဲ့တဲ့ Workshop တုန်းက လုပ်ဖို့ အတွက် စီစဉ်ထားတာဖြစ်ပါတယ်။ BGP အကြောင်းအရာဖက်က ကြည့်မယ်ဆိုရင် အခြေခံ သဘောတရား လောက်သာပါမှာ ဖြစ်ပါတယ်။ ဒါပေမဲ့ BGP အတွက် လုပ်ရင်းနဲ့ တခြားသိထား လေ့လာထားတဲ့ အရာတွေဟာ ဘယ်လို အသုံးဝင်လာမလဲ ဆိုတာတွေကို ပြန်ပြီး ပေါင်းစပ်မိဖို့အတွက်ကိုလည်း ရည်ရွယ် ထားပါတယ်။ 



ဒီပုံမှာ အဖွဲ့အစည်း နှစ်ခုဟာ ISP ကို BGP နဲ့ ချိတ်ဆက်ထားပြီးတော့ သူတို့ရဲ့ Public IP Address တွေကို ISP ကနေ တဆင့် Advertise လုပ်ထားပါတယ်။ AS100 နဲ့ AS200 ဟာ Public IP အချင်းချင်းသာ ဆက်သွယ်လို့ ရမှာ ဖြစ်ပါတယ်။ ပေးထားတဲ့ နမူနာ အတိုင်း လိုက်လုပ်ကြည့်ရင်း တခြား စဉ်းစားစရာ တွေကို စဉ်းစားကြည့်ရင်း သိထားတာတွေကို ပြန်အသုံးချကြည့်တာပေါ့။

- EIGRP မှာ no auto-summary မပါရင် ဘယ်လိုအကျိုးသက်ရောက်မှုတွေ ဖြစ်လာနိုင်သလဲ။
- AS100/AS200 နဲ့ ကြားက Subnet ကို အတွင်းက Router တွေက သိဖို့လိုသလား။
- Static IP route ကို Null 0 သုံးထားခြင်းဟာ Routing ကိုထိခိုက်စေနိုင်လား။ ဘာကြောင့် သုံးထားသလဲ။
- အတွင်းက Router တွေကနေ Source IP မပါပဲနဲ့ ဘာကြောင့် အပြင်ထွက်လို့ မရသလဲ။ အပြင်ထွက်လို့ရဖို့အတွက် ဘာကို အသုံးပြုရမလဲ။

BGP နဲ့ ပက်သက်ပြီး တော့ စဉ်းစားစရာတွေကတော့
- ISP နဲ့ Peer လုပ်တဲ့အခါမှာ တိုက်ရိုက်ချိတ်ထားတဲ့ Interface IP အစား Loopback IP သုံးမယ်ဆိုရင် ဘယ်လိုလုပ်ရမလဲ။
- Network statement နဲ့ Advertise လုပ်လိုက်တာနဲ့ Network advertisement အတွက် လုံလောက်ပြီလား။
- BGP default weight နဲ့ Local preference Value က ဘာလဲ။ ဘယ်လို သိနိုင်မလဲ။
- AS200 မှာ Route-reflector သုံးထားတဲ့ အကျိုးကျေးဇူးက ဘာဖြစ်နိင်မလဲ။
- iBGP တွေမှာ next-hop-self ဘာကြောင့် သုံးရတာလဲ။
- Neighbour ကနေ Prefix ဘယ်နှစ်ခု လက်ခံရသလဲဆိုတာကို ဘယ်လိုသိနိုင်မလဲ။
- BGP best route ဖြစ်ကြောင်းကို ဘာကိုကြည့်ရင် သိနိုင်သလဲ။
- Prefix တစ်ခုဟာ ဘယ် AS ကနေ အစပြုလာသလဲဆိုတာ ဘယ်လိုသိနိုင်မလဲ။

ဒီမေးခွန်းတွေကို ဖြေနိုင်ပြီဆိုရင် Routing နဲ့ BGP အခြေခံကို နားလည်သဘောပေါက်ထားပြီလို့ ယူဆလို့ ရပါပြီ။

ကိုဖြိုး။



Configuring Interfaces IP address for IGP and BGP
ISP
interface FastEthernet0/0
 ip address 121.121.121.1 255.255.255.252
 
interface FastEthernet0/1
 ip address 122.122.122.1 255.255.255.252

A1
interface Loopback1
 ip address 100.100.100.1 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.100.1 255.255.255.0
 
interface FastEthernet0/1
 ip address 121.121.121.2 255.255.255.252
 
A2
interface Loopback1
 ip address 100.100.100.2 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.100.2 255.255.255.0
 
B1
interface Loopback1
 ip address 200.200.200.1 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.200.1 255.255.255.0
 
interface FastEthernet0/1
 ip address 122.122.122.2 255.255.255.252

B2
interface Loopback1
 ip address 200.200.200.2 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.200.2 255.255.255.0
 
B3
interface Loopback1
 ip address 200.200.200.3 255.255.255.255
 
interface FastEthernet0/0
 ip address 192.168.200.3 255.255.255.0

Configuring IGP in AS 100 and AS 200 and verify peers/routes
AS100 (EIGRP)
A1(config)#router eigrp 100
A1(config-router)#network 100.100.100.1 0.0.0.0
A1(config-router)#network 192.168.100.1 0.0.0.0
A1(config-router)#no auto-summary
 
A2(config)#router eigrp 100
A2(config-router)#network 100.100.100.2 0.0.0.0
A2(config-router)#network 192.168.100.2 0.0.0.0
A2(config-router)#no auto-summary
 
A1#sh ip eigrp neighbors
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   192.168.100.2           Fa0/0             13 00:01:38   20   200  0  9
 
A1#sh ip route eigrp
     100.0.0.0/32 is subnetted, 2 subnets
D       100.100.100.2 [90/409600] via 192.168.100.2, 00:00:15, FastEthernet0/0
 
A2#sh ip eigrp neighbors
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                           
                                            (sec)         (ms)       Cnt Num
0   192.168.100.1           Fa0/0             14 00:02:00  432  2592  0  10
 
A2#sh ip route eigrp
     100.0.0.0/32 is subnetted, 2 subnets
D       100.100.100.1 [90/409600] via 192.168.100.1, 00:00:56, FastEthernet0/0

AS200 (OSPF)
 
B1(config)#router ospf 1
B1(config-router)#router-id 200.200.200.1
B1(config-router)#network 200.200.200.1 0.0.0.0 are 0
B1(config-router)#network 192.168.200.1 0.0.0.0 are 0

B2(config)#router ospf 1
B2(config-router)#router-id 200.200.200.2
B2(config-router)#network 200.200.200.2 0.0.0.0 are 0
B2(config-router)#network 192.168.200.2 0.0.0.0 are 0
 
B3(config)#router ospf 1
B3(config-router)#router-id 200.200.200.3
B3(config-router)#network 200.200.200.3 0.0.0.0 are 0
B3(config-router)#network 192.168.200.3 0.0.0.0 are 0
 
B1#sh ip ospf neighbor
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
200.200.200.2     1   FULL/BDR        00:00:34    192.168.200.2   FastEthernet0/0
200.200.200.3     1   FULL/DROTHER    00:00:37    192.168.200.3   FastEthernet0/0
 
B1#sh ip route ospf
     200.200.200.0/32 is subnetted, 3 subnets
O       200.200.200.2 [110/11] via 192.168.200.2, 00:01:46, FastEthernet0/0
O       200.200.200.3 [110/11] via 192.168.200.3, 00:01:06, FastEthernet0/0
 
B2#sh ip ospf neighbor
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
200.200.200.1     1   FULL/DR         00:00:38    192.168.200.1   FastEthernet0/0
200.200.200.3     1   FULL/DROTHER    00:00:30    192.168.200.3   FastEthernet0/0
 
B2#sh ip route ospf
     200.200.200.0/32 is subnetted, 3 subnets
O       200.200.200.1 [110/11] via 192.168.200.1, 00:01:59, FastEthernet0/0
O       200.200.200.3 [110/11] via 192.168.200.3, 00:01:19, FastEthernet0/0
 
B3#sh ip ospf neighbor
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
200.200.200.1     1   FULL/DR         00:00:35    192.168.200.1   FastEthernet0/0
200.200.200.2     1   FULL/BDR        00:00:34    192.168.200.2   FastEthernet0/0
 
B3#sh ip route ospf
     200.200.200.0/32 is subnetted, 3 subnets
O       200.200.200.1 [110/11] via 192.168.200.1, 00:01:51, FastEthernet0/0
O       200.200.200.2 [110/11] via 192.168.200.2, 00:01:51, FastEthernet0/0
Configuring EBGP between ISP and AS 100, AS 200 
 
ISP(config)#int l1
ISP(config-if)#ip add 120.120.120.120 255.255.255.255
 
ISP(config)#router bgp 120
ISP(config-router)#bgp router-id 120.120.120.120
ISP(config-router)#neighbor 121.121.121.2 remote-as 100
ISP(config-router)#neighbor 122.122.122.2 remote-as 200
ISP(config-router)#network 120.120.120.120 mask 255.255.255.255
 
A1(config)#router bgp 100
A1(config-router)#bgp router-id 100.100.100.1
A1(config-router)#neighbor 121.121.121.1 remote-as 120
 
B1(config)#router bgp 200
B1(config-router)#bgp router-id 200.200.200.1
B1(config-router)#neighbor 122.122.122.1 remote-as 120
 
ISP#sh ip bgp summary | B Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
121.121.121.2   4   100      14      16        2    0    0 00:02:46        0
122.122.122.2   4   200       5       6        2    0    0 00:01:05        0
 
A1#sh ip bgp su | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
121.121.121.1   4   120      17      15        2    0    0 00:03:10        1
 
B1#sh ip bgp su | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
122.122.122.1   4   120       6       5        2    0    0 00:01:49        1
Configuring iBGP in AS 100 and AS 200 
 
A1(config)#router bgp 100
A1(config-router)#neighbor 192.168.100.2 remote-as 100
A1(config-router)#neighbor 192.168.100.2 next-hop-self
 
A2(config)#router bgp 100
A2(config-router)#bgp router-id 100.100.100.2
A2(config-router)#neighbor 192.168.100.1 remote-as 100
A2(config-router)#neighbor 192.168.100.1 next-hop-self
 
A1#sh ip bgp summary | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
121.121.121.1   4   120      69      67        2    0    0 00:55:21        1
192.168.100.2   4   100       4       5        2    0    0 00:00:45        0
 
A2#sh ip bgp summary | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
192.168.100.1   4   100       5       4        2    0    0 00:00:50        1
 
B1(config)#router bgp 200
B1(config-router)#neighbor 192.168.200.2 remote-as 200
B1(config-router)#neighbor 192.168.200.2 next-hop-self
B1(config-router)#neighbor 192.168.200.2 route-reflector-client
B1(config-router)#
B1(config-router)#neighbor 192.168.200.3 remote-as 200
B1(config-router)#neighbor 192.168.200.3 next-hop-self
B1(config-router)#neighbor 192.168.200.3 route-reflector-client
 
B2(config)#router bgp 200
B2(config-router)#bgp router-id 200.200.200.2
B2(config-router)#neighbor 192.168.200.1 remote-as 200
B2(config-router)#neighbor 192.168.200.1 next-hop-self
 
B3(config)#router bgp 200
B3(config-router)#bgp router-id 200.200.200.3
B3(config-router)#neighbor 192.168.200.1 remote-as 200
B3(config-router)#neighbor 192.168.200.1 next-hop-self
 
B1#sh ip bgp su | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
122.122.122.1   4   120      62      61        2    0    0 00:57:34        1
192.168.200.2   4   200       5       6        2    0    0 00:01:29        0
192.168.200.3   4   200       4       5        2    0    0 00:00:33        0
 
B3#sh ip bgp summary | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
192.168.200.1   4   200       5       4        2    0    0 00:00:51        1
 
B2#sh ip bgp summary | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
192.168.200.1   4   200       7       6        2    0    0 00:02:04        1

Advertise Public IP range to ISP and verify routing test between AS100 and 200
 
A1(config)#router bgp 100
A1(config-router)#network 100.100.100.0 mask 255.255.255.0
A1(config-router)#exit
A1(config)#
A1(config)#ip route 100.100.100.0 255.255.255.0 null 0
 
B1(config)#router bgp 200
B1(config-router)#network 200.200.200.0 mask 255.255.255.0
B1(config-router)#exit
B1(config)#
B1(config)#ip route 200.200.200.0 255.255.255.0 null 0
 
ISP#sh ip bgp su | b Nei
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
121.121.121.2   4   100      75      78        4    0    0 01:02:50        1
122.122.122.2   4   200      66      68        4    0    0 01:01:10        1
 
ISP#sh ip bgp
BGP table version is 4, local
router ID is 120.120.120.120
Status codes: s suppressed, d
damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
 
   Network          Next Hop            Metric LocPrf Weight Path
*> 100.100.100.0/24 121.121.121.2            0             0 100 i
*> 120.120.120.120/32
                    0.0.0.0                  0         32768 i
*> 200.200.200.0    122.122.122.2            0             0 200 i
 
A2#sh ip bgp
BGP table version is 4, local
router ID is 100.100.100.2
Status codes: s suppressed, d
damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP,? - incomplete
 
   Network          Next Hop            Metric LocPrf Weight Path
*>i100.100.100.0/24 192.168.100.1            0    100      0 i
*>i120.120.120.120/32
                    192.168.100.1            0   100      0 120 i
*>i200.200.200.0    192.168.100.1            0   100      0 120 200 i
 
B3#sh ip bgp
BGP table version is 4, local
router ID is 200.200.200.3
Status codes: s suppressed, d
damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP,? - incomplete
 
   Network          Next Hop            Metric LocPrf Weight Path
*>i100.100.100.0/24 192.168.200.1            0    100      0 120 100 i
*>i120.120.120.120/32
                    192.168.200.1            0   100      0 120 i
*>i200.200.200.0    192.168.200.1            0   100      0 i
 
A2#ping 200.200.200.3 source
100.100.100.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echosto 200.200.200.3, timeout is 2 seconds:
Packet sent with a sourceaddress of 100.100.100.2
!!!!!
Success rate is 100 percent
(5/5), round-trip min/avg/max = 40/49/56 ms
 
B3#ping 100.100.100.2 source 200.200.200.3
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.2, timeout is 2 seconds:
Packet sent with a source address of 200.200.200.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/68 ms


Sunday, 7 May 2017

eve



Network simulator/emulator များကို စာမေးပွဲဖြေဖို့ လေ့ကျင့်ဖို့ အတွက် အသုံးပြုကြသလို လုပ်ငန်းခွင် အတွက် လည်း စမ်းသပ်ဖို့၊ ကြိုတင်စီစဉ်ဖို့အတွက် စသဖြင့် အသုံးပြုလို့ရပါတယ်။ အရင်ကဆို Network Change တစ်ခုလုပ်ဖို့အတွက် အတော်စီစဉ်ရသလို ဘာဖြစ်လာမယ်၊ ဘာတွေပြောင်းသွားမယ်ဆိုတာကို အတွေ့အကြုံရှိသူ၊ ကျွမ်းကျင်သူတွေသာ သိကြပါတယ်။ အခုနောက်ပိုင်း Simulator တွေကောင်းမှုကြောင့် ဘာပြောင်းလိုက်ရင် ဘာဖြစ်မယ်ဆိုတာကို ကြိုပြီး မြင်နိုင်လာပြီး Change တွေကို ပိုပြီးတော့ စိတ်ချလက်ချ လုပ်လို့ရလာပါတယ်။ အရင်က Network simulator တွေဟာ အကန့်အသတ်တွေရှိခဲ့ပေမယ့် အခု နောက်ပိုင်း Virtualization နည်းပညာကြောင့် အတော်များများကို လုပ်ဆောင်နိုင်လာတာ တွေ့ရပါတယ်။ တကယ့်လုပ်ငန်းခွင် မှာလည်း Network Appliance တွေနေရာမှာ VM အနေနဲ့ အသုံးပြုတဲ့ XXXv တွေ အသုံးပြုလာကြတာကိုတွေ့ရပါတယ်။

ဒီတော့ စမ်းသပ်တဲ့ LAB တွေနဲ့ အပြင်လုပ်ငန်းခွင်မှာ အသုံးပြုရတဲ့ ပုံစံရဲ့ ကွာခြားမှုဟာ ကျဉ်းမြောင်း လာပါတယ်။ Cisco ဆိုရင် CCIE Exam တစ်ခုလုံးကို တကယ့် ပစ္စည်းတွေနဲ့ သုံးခဲ့ပေမယ့် အခုဆိုရင် အကုန်လုံးကို VM တွေနဲ့ ပြောင်းလဲခဲ့တာကိုတွေ့ရပါတယ်။ Cisco ကိုယ်တိုင်ထုတ်တဲ့ VIRL ဟာဆိုရင်လည်း အလွန်ကောင်းတဲ့ Network Emulator တစ်ခုဖြစ်ပါတယ်။ ဒါပေမယ့် နှစ်စဉ်ကြေး ပေးသုံးရတဲ့ အတွက် အသုံးပြုသူနဲကြပါတယ်။ သူ့လောက်နီးပါး အလုပ်လုပ်နိုင်တဲ့ UNL ကို အသုံးများပါတယ်။ GNS3 မှာလည်း VirtualBox နဲ့ တွဲပြီး VM တွေကို ပေါင်းစပ်ပြီး အသုံးပြုလို့ရပါတယ်။ ဒါပေမယ့် Virtualization အပေါ်မှာ အခြေခံပြီး တည်ဆောက်ထားတဲ့ UNL က ပိုပြီးတော့ လုပ်ဆောင်နိုင်တာ တွေ့ရပါတယ်။ အခုဆိုရင်တော့ UNL ကနေ eve (Emulated Virtual Environment) ဆိုပြီး ထပ်ပြီး မွန်းမံလိုက်တဲ့ အခါမှာတော့ ပိုပြီး ကောင်းလာပါတယ်။ VIRL က Cisco အဓိကဖြစ်ပြီးတော့ eve က တော့ တခြားအမျိုးအစား image များကိုပါ အသုံးပြုလို့ရပါတယ်။

eve မှာ အသုံးပြုလို့ရတဲ့ image တွေကို ဒီမှာကြည့်နိုင်ပါတယ်။

http://www.eve-ng.net/index.php/documentation/supported-images

Cisco နဲ့ Juniper အပြင် တခြားနာမည်ကြီး တံဆိပ်နဲ့ ပစ္စည်းတွေကိုပါ အသုံးပြုလို့ရပါတယ်။ အဲဒီအရာတွေ အားလုံးပေါင်းစပ်ပြီး Enterprise တစ်ခုမှာ လက်တွေ့ သုံးနေတဲ့ Network တစ်ခုပုံစံမျိုးတောင် လုပ်ကြည့် လို့ရပါတယ်။

စတင်အသုံးပြုနိုင်ဖို့အတွက် လုပ်ဆောင်ရတာ အနည်းငယ် အခက်အခဲရှိနိုင်ပေမယ့် သူရဲ့  Documentation အတိုင်း ကြည့်ပြီး လိုက်လုပ်ရင် အဆင်ပြေသွားပါလိ်မ့်မယ်။ လိုအပ်တဲ့ image တွေကို ရှာဖို့တော့ လိုပါ လိမ့်မယ်။  ဒါပေမယ့် အင်တာနက်ပေါ်မှာ နဲနဲလောက် အားစိုက် ရှာလိုက်ရင် ရနိုင်ပါတယ်။ ကွန်ပျူတာ ကတော့ အနဲဆုံး 8GB RAM ရှိမှသာ အဆင်ပြေပါလိ်မ့်မယ်။ အနဲဆုံး 2GB ရှိရင် IOS တွေသုံးလို့ရပြီ ဆိုပေမယ့် အဆင်မပြေလောက်ပါဘူး။ IOS XR လိုအမျိုးအစားတွေ ဆိုရင် ပိုဆိုးပါတယ်။ IOS XR ၂ လုံးကို VMware Workstation ပေါ်မှာ အသုံးပြုတာ RAM 10GB ကျော်အထိသုံးသွားတာတွေ့ရပါတယ်။ ဒါကတော့ Cisco VIRL မှလည်း အတူတူပါပဲ။ Nexus ၂ လုံးလောက်သုံးလိုက်တာနဲ့ 10GB လောက် ရောက်သွား ပါတယ်။ VIRL လိုနှစ်စဉ်ကြေး မပေးရတာကတော့ အကုန်အကျသက်သာစေပါတယ်။ သူရဲ့ အလုပ်အတွက်၊ နောက်ထပ်ရပ်တည် လုပ်ဆောင်မှုတွေ အတွက် Paypal ကနေတော့ အလှုငွေ ထည့်ပေး လို့ရပါတယ်။

How to Guide တွေ How to Video တွေပါ လုပ်ထားပေးတဲ့အတွက်လည်း အဆင်ပြေပါတယ်။ GNS3 နဲ့ VIRL လိုပဲ လုပ်ဆောင်မှုကောင်းပြီး လုပ်ငန်းခွင်အတွက်ရော လေ့လာဖို့အတွက်ပါ အသုံးတည့်တဲ့ Network Emulator တစ်ခုဖြစ်တဲ့ အတွက် စမ်းသပ်အသုံးပြုကြည့်သင့်တယ်လို့ထင်ပါတယ်။ ဒါ့အပြင် အိုင်တီ နယ်ပယ်မှာ ဆက်လက်ရပ်တည် နေမည့် သူတွေအဖို့ Virtualization ရဲ့ အရေးပါပုံ အသုံးတည့်ပုံတွေကို ပိုပြီး မြင်လာနိုင်ပါတယ်။ System သမားပဲဖြစ်ဖြစ် Network သမားပဲ ဖြစ်ဖြစ် Security ဖက်ကပဲ ဖြစ်ဖြစ် Virtualization ကို မသိထားရင် ဆားမပါပဲ ဟင်းချက်ရသလို၊ စားနေရသလို ဖြစ်လာပါလိ်မ့်မယ်။

http://www.eve-ng.net/

ကိုဖြိုး

Saturday, 1 August 2015

VIRL

Virtual Internet Routing Lab (VIRL) အကြောင်းကိုကြားစကပင် စမ်းသပ်ချင်နေတာကြာပါပြီ။ အချိန်မရတာရယ်၊ ကွန်ပြူတာအဆင်သင့်မရှိတာရယ်နဲ့ မစမ်းဖြစ်သေးတာ။ အခု 16GB RAM နဲ့ကွန်ပြူတာရတာနဲ့ ပြီးခဲ့တဲ့အပတ်ကမှစမ်းသပ်ဖြစ်လိုက်ပါတယ်။ ၁နှစ်လိုင်စင်နဲ့ Personal Editon ကို $199.99 ရှိပြီး၊ Academic Edition ကိုတော့ $79.99 ပေးရပါတယ်။ ကျောင်းတခုခုတက်နေတဲ့ အထောက်အထားနဲ့ဆို Academic Edition ဝယ်လို့ရပါတယ်။ ဘာမှကွာခြားမှုမရှိပဲ သက်သက်ဈေးချရောင်းပေးတာပါ။ VIRL ဟာ Cisco ကအသုံးပြုတဲ့ Network Simulation System ဖြစ်ပြီး အခုမှ အပြင်ကိုထုတ်ရောင်းတာဖြစ်ပါတယ်။ VIRL ကိုအသုံးပြုဖို့အတွက် 4Cores CPU နဲ့ 8GB RAM အနည်းဆုံးလိုအပ်ပါတယ်။ VMware အပေါ်မှာသုံးဖို့အဓိကပြုလုပ်ထားတဲ့ Ubuntu VM ဖြစ်ပြီး VMware Fusion/ Workstation/ Player နဲ့ ESXi စတဲ့ Hypervisors တွေအားလုံးမှာအသုံးပြုလို့ရပါတယ်။ Non-Hypervisor version အနေနဲ့လည်းသုံးလို့ရတယ်လို့ရေးထားပါတယ်။

ဝယ်တဲ့အချိန်မှာ ကိုယ်ကဘယ် VMware အပေါ်မှာသုံးမယ်ဆိုတာရွေးရပါတယ်။ ဒါပေမယ့် နောက်ပိုင်းအဆင်မပြေလို့ပြောင်းချင်တယ်ဆိုရင်လည်း VIRL Support email ကိုအကူအညီတောင်းလိုက်ရင် ကိုယ်တောင်းတဲ့ အမျိုးအစားကို Download ထပ်လုပ်နိုင်ပါတယ်။ လိုင်စင်ကတော့တခုပါပဲ။ ရွေးတုံးက ESXi ရွေးလိုက်ပြီး Workstation ပေါ်မှာ ESXi ထပ်တင်တော့ ကွန်ပြူတာရဲ့စွမ်းဆောင်ရည်ကို အကုန်အသုံးပြုလို့မရတာနဲ့ ESXi package ကို workstation အနေနဲ့ပြောင်းသုံးတာတော့ရပါတယ် ဒါပေမယ့် VIRL Support က Workstation version ကသက်သက်ရှိတယ် ထပ်ပို့ပေးမယ်ဆိုတာ နဲ့ Workstation ကိုပဲပြန်ပြောင်းသုံးလိုက်ရတာပေါ့။ အပြင်က Internet Download တွေအနေနဲ့လည်းအလုပ်တော့ဖြစ်မယ်ထင်တာပဲ ဒါပေမယ့် လိုင်စင်ဆာဗာနဲ့ အနည်းဆုံးတပတ်တကြိမ်ဆက်သွယ်မှ Simulation ထပ်သုံးလို့ရမယ်ဆိုတဲ့အတွက် လိုင်စင်မရှိရင် တပတ်လောက်ပဲအသုံးပြုနိုင်မယ်လို့ထင်ရတာပဲ။

VIRL အပေါ်မှာ IOSv IOSvL2 IOSXRv NX-OSv CSR1000v နဲ့ ASA1000v စတဲ့ အမျိုးအစားတွေအသုံးပြုလို့ရပါတယ်။ တနည်းအားဖြင့် IOS Router/ Layer 2 Switch/ IOS XE Router/ IOS XR Router / Nexus Switch နဲ့ ASA Firewall စတာတွေကိုအသုံးပြုနိုင်ပါတယ်။ နောက်တခုကတော့ Simulation ပြုလုပ်ရာမှာ GNS3 တို့ IOU တို့လိုကိုယ်တိုင် Configuration ထည့်စရာမလိုပဲ လိုချင်တဲ့ IP range, AS Number စတဲ့အချက်အလက်တွေထည့်ပေးရုံနဲ့ Configuration တွေကိုသူ့အလိုလိုထည့်ပေးပါတယ်။ ဆိုချင်တာကတော့ ကိုယ်တိုင်မလုပ်ချင်ရင် မလုပ်တတ်ရင် သူဘယ်လ်ိုရေးထားလဲဆိုတဲ့ Configuration ကိုပြန်ပြီးလေ့လာလို့ရပါတယ်။ ဘယ်လောက်တောင်သေသပ်မှုရှိလည်းဆိုရရင် Interface description တွေကအစ သပ်သပ်ရပ်ရပ်နဲ့ ထည့်ပေးပါတယ်။ အပြင်မှာ အလုပ်ထဲကသူတွေတောင်ဖြစ်သလိုရေးကြတာ အများကြီးပါ။ နောက်တခုကတော့ စပြီး VM တည်ဆောက်ကတည်းက လိုအပ်တဲ့ VLAN နဲ့ အပြင်ကချိတ်ဆက်ဖို့အတွက်ကို VLAN လေးခုထည့်ပေးထားရတဲ့အတွက် Simulation အသုံးတဲ့အခါမှာ အတွင်းက Router switch တွေကို Console ကနေဝင်သုံးစရာမလိုပဲ Network ထဲက ဘယ်ကွန်ပြူတာကမဆို Telnet နဲ့လှမ်းအသုံးပြုလို့ရပါတယ်။ GNS3 မှာဆိုအဲဒီလိုအသုံးပြုဖို့ Cloud နဲ့ချိတ်၊ PC ရဲ့ NIC နဲ့ပြန်တွဲ၊ စတာတွေထပ်လုပ်ပေးရပါတယ်။ Titanium နဲ့ GNS အပေါ်မှာ Nexus သုံးလို့ရပေမယ့် ကိုယ်ပဲသေချာမလုပ်တတ်တာလား Source ကပဲမကောင်းတာကြောင့်လားမသိ ခဏခဏပြဿနာပေးပါတယ်။ VIRL မှာတော့ Nexus ကိုအဆင်ပြေစွာအသုံးပြုနိုင်ပါတယ်။

Nexus ရပြီဆိုလို့ပျော်မသွားပါနဲ့အုံး။ N7K ရဲ့ Layer 3 နဲ့ တခြားအခြေခံ Layer 2 လုပ်ဆောင်ပုံတွေပဲရတာပါ။ တကယ့် Nexus မှာအသုံးပြုချင်တဲ့ FEx VPC OTV စတဲ့ အနှစ်တွေမရပါဘူး၊ နောက်ပိုင်းမှာတော့ ထည့်ပေးဖို့အစီအစဉ်ရှိတယ်လို့လဲသိရပါတယ်။ အဲဒါတွေအတွက်အဓိကဝယ်လိုက်မိရင်တော့ ကြေကွဲရုံပေါ့။ အသုံးပြုရတာကတော့ GNS3 လောက်မလွယ်ကူတာကတော့ အသေချာပါ ဒါပေမယ့် နောက်ပိုင်းအသုံးပြုရင်းနဲ့ ကျွမ်းကျင်သွားရင်တော့ အသုံးပြုလို့ပိုကောင်းလာမယ်လို့ထင်ပါတယ်။ ပြီးခဲ့တဲ့ အပတ်ကတော့ INE နဲ့ VIRL ပေါင်းလုပ်တဲ့ပွဲမှာ INE က ဘရိုင်ယန် အသုံးပြုသွားပုံကတော့ အားရစရာပါပဲ။ မတက်လိုက်ရတဲ့ သူတွေအတွက် ပြန်ကြည့်လို့ရအောင် ကူးထားတဲ့ ဗွီဒီယိုကို VIRL Youtube မှာတင်ထားပါတယ်။ INE ကတော့ သူတို့ရဲ့ LAB တွေကို Physical အစား Virtual ဘက်ကိုပြောင်းပြီးအသုံးပြုသွားမယ်လိုဆိုပါတယ်။ သူရဲ့ သင်ခန်းစာတွေ၊ လေ့ကျင့်စရာတွေကိုလည်း VIRL နဲ့အသုံးပြုလို့ရအောင် ထုတ်လုပ်သွားမယ်လို့ပြောပါတယ်။ ဒီအတိုင်းဆိုရင်တော့ နောက်ပိုင်း INE LAB session တွေဈေးချပေးနိုင်မယ့်အလားအလာရှိပါတယ်။ Cisco ရဲ့ CCIE LAB ကတောင် Virtual ဖက်ကိုပြောင်းပြီးတဲ့နောက် သင်ကြားရေးဖက်မှာ Virtual ဖက်ကိုလိုက်ပြောင်းလာတာ သဘာဝကျပါတယ်။ အခုလို Cisco က VIRL ကိုအပြင်ကိုပေးသုံးလိုက်တာကလည်း ပိုပြီးအဆင်ပြေသွားတာပေါ့။ ဒါပေမယ့် ၁၅ လုံးသာအများဆုံးအသုံးပြုလို့ရတဲ့အတွက် အတိုင်းအတာတခုအထိ အဆင်ပြေပေမယ့် တခြားလိုအပ်တွေအတွက်ကတော့ အဖြေရှာဖို့လိုနေအုံးမှာပါ။

အခုမှစပြီးအသုံးပြုမှာဖြစ်တဲ့အတွက် သူရဲ့ တခြားအားသာချက်၊ အားနည်းချက်တွေကို မရေးနိုင်သေးပါဘူး၊ ဒါပေမယ့် CCNP နဲ့ CCIE RnS အတွက်ကတော့လုံလောက်တဲ့ Simulation တခုလို့တော့ပြောလို့ရပါတယ်။ နောက်ပိုင်းစမ်းသပ်ရင်း တွေ့လာမယ့်အကြောင်းအရာတွေကိုတော့ အဆင်ပြေရင်ပြေသလို ပြောပြပေးပါမယ်။ နောက်တခုကတော့ လိုင်စင်က တနှစ်စာပဲဖြစ်တဲ့အတွက် ကိုယ့်ကို တိတိကျကျအချိန်ပေးထားသလိုမျိုး တနှစ်အတွင်းမှာ အားစိုက်ပြီးလုပ်ဖြစ်တာပေါ့။ (ထင်ရတာပဲ)။

VIRL
http://virl.cisco.com/about-virl-2/#details

INE & VIRL Web Seminar
 http://youtu.be/1BjBEVl24eA


ကိုဖြိုး




Saturday, 25 July 2015

လုပ်ငန်းခွင်အတွက် QOS LAB



QOS နဲ့MQC အကြောင်းသဘောပေါက်ပီဆိုရင် လွယ်ကူရှင်းလင်းတဲ့ LAB ကလေးတွေလုပ်ကြည့်ရင်း ပိုပီးနားလည်လာအောင် လေ့လာဖို့ အကြံပေးလိုပါတယ်၊ Configuration ရေးတာလဲရေးတာပေါ့ ဒါပေမယ့် ကိုယ်ရေးထားတာ အလုပ်ဖြစ်မဖြစ်ဘယ်လိုကြည့်ရလဲ၊ ဘယ်တာတွေကြည့်ရမလဲဆိုတာကို စဉ်းစားကြည့်ပါ။
Netflow အကြောင်းသိထားရင်ပိုပီးလေ့လာလို့ကောင်းပါတယ်။ ပီးခဲ့တဲ့ပို့စ်မှာပြောခဲ့သလိုပဲ Router ၃လုံးနဲ့ထပ်စမ်းကြည့်တာပေါ့၊

R1-> R2 -> R3 | R1 ကို Source အနေနဲ့ထား၊ R3 မှာ Http service enable လုပ်၊ R2 ကနေ R3 ကိုချိတ်ထားတဲ့ Interface မှာ Policy-map နဲ့Netflow ကိုသုံးမယ်၊ Class ၂ခုလောက်ခွဲလိုက်၊ Telnet နဲ့ Http ဆိုပီး၊ Telnet ကို DSCP နဲ့ match ပီး priority ပေး၊ Http ကိုတော့ ACL နဲ့match ပီး Bandwidth ရဲ့၅၀% ပေးလိုက် တာပေါ့။ Link က 2MB ရှိတဲ့ Link ဆိုပါတော့၊

အရင်ဆုံး Telnet traffic ဟာ DSCP ဘယ်လောက် သတ်မှတ်ထားလဲဆိုတာသိဖို့လိုပါတယ်၊ ကိုယ်သတ်မှတ်စရာမလိုဘူး၊ နဂိုတည်းကပါပီးသား၊ ဘယ်လိုကြည့်ရမလဲဆိုရင် R3 ကို R1 ကနေ Telnet လုပ်ပီး R2 မှာ Netflow result ကိုကြည့်ရင်းနဲ့သိနိုင်ပါတယ်။ ဒါပေမယ့် DSCP ကိုမမြင်ရပဲ TOS ပဲတွေ့မှာဆိုတော့ TOS to DSCP mapping ကိုသိရမှာပေါ့၊ TOS/Ports တွေကို Hex နဲ့ပြတာဆိုတော့ Hex to Decimal ပြောင်းဖို့အတွက် Calculator သုံးကြတာပေါ့။

Http အတွက်ကတော့ ACL ပဲသုံးမယ်ဆိုတော့ Extended ACL ရေးပီး www/port 80 ကိုထည့်ပေးလိုက်ရင်ရပါပီ။ Interface bandwidth ကို 2MB ပေးပီး Policy map မှာ bandwidth percent 50 ပေးလိုက်ရင် http class အတွက်လုံလောက်ပါပီ။ ပြီးရင် R1 ကနေ Test လုပ်ပီး R2 ကနေ Show commands တွေနဲ့ကြည့်ကြတာပေါ့၊



ဒီ LAB တစ်ခုကနေ ဆက်စပ်ပီးလေ့လာစရာတွေ သတိထားမိမယ်လို့ထင်ပါတယ်။

R2 configuration
ip access-list extended web-server
permit tcp any host 192.168.2.3 eq www
class-map match-any Telnet
match dscp cs6
class-map match-any Web
match access-group name web-server
!
policy-map Web-access-policy
class Web
bandwidth percent 50
class Telnet
priority 256
interface FastEthernet0/1
bandwidth 2048
ip address 192.168.2.2 255.255.255.0
ip flow ingress
ip flow egress
duplex auto
speed auto
service-policy output Web-access-policy

Test Telnet from R1 and checking Netflow on R2


In the red box, source and destination ports can be seen in Hex. Convert it into decimal to see the ports.
Same for TOS value in the yellow box. Telnet packet marked with CO which is DSCP CS6

For TOS to DSCP mapping, please refer to the last page of this document below;
or find the TOS-COS-DSCP mapping table from internet

For ports,
Run Calculator, change the view to programmer view.
8F18 Hex in decimal is 36632
0017 Hex in decimal is 23 which is Telnet port



 Verify using show commands and you will see traffic matching Telnet class

 Test similar way by using port 80 and verify with show command too


The result below showed the complete policy-map result on the interface. The rest of the traffic not matching above two classes will be put under default class. You may notice that the allocated bandwidth for web-service is 1024, calculated based on 50% of interface bandwidth. Good Luck!


ကိုဖြိုး

Friday, 24 July 2015

LAB LAB LAB



တလောက Switching အတွက် လက်တွေ့နည်းနေလို့မေးနေတဲ့ပိုစ့်တစ်ခုတွေ့လိုက်တယ်၊ ကိုယ်တိုင်လဲ ဒီလို အခက်ခဲကြုံခဲ့တော့ ကိုယ်ချင်းစာပါတယ်၊ စာကိုဒီအတိုင်းဖတ်တာထက် လက်တွေ့လုပ်ပီးဖတ်ရတာက ပိုကောင်းပါတယ်၊ ပိုလဲသိနိုင်တယ်၊တစ်ချို့ဟာတွေက စာထဲမှာ ရှင်းပြထားပေမယ့် လက်တွေ့လုပ်တဲ့အခါ ကိုယ်သိတာ၊နားလည်တာ နဲ့အနည်းငယ်ကွဲလွဲတာ တွေတွေ့ဖူးမှာပါ၊
အလုပ်ထဲမှာ ဆိုရင်လဲ Design/ Environment ပေါ်မူတည်ပီး ကြုံတဲ့ ရလဒ်တွေ ကွဲပြားတတ်ပါတယ်၊
လက်တွေ့လုပ်ရာမှာလဲ Simulation နဲ့real device ကိုသုံးရတာလဲကွာသေးတယ်၊ CCNA လုပ်တုန်းကဆို LAB/Simulation ကရှားတော့ Boson Netsim ဘဲသုံးရတယ်၊ Real Device နဲ့သုံးရတဲ့အချိန်ကနဲတော့၊
OS တက်လာတာတောင် CIsco IOS ဆိုပီးတက်လာတာမဟုတ်၊ Boson ဆိုပီးတက်လာတာ :)

CCIE ဖြေဖို့လေ့ကျင့်တုံးကလဲ Simulation မျိုးစုံ LAB မျိုးစုံလုပ်ခဲ့တာဘဲ၊ GNS မပေါ်ခင်က Linux ပေါ်မှာ Net ဖိုင်ကိုရေးပီးသုံးရတယ်၊ နောက်ပိုင်း GNS က GUI နဲ့ဆိုတော့ အတော်သက်သာသွားတယ်၊ PC ကောင်းကောင်းတစ်လုံးတော့လိုတာပေါ့၊ ဒီမှာတော့ SGD 1000- 1500 လောက်သုံးရတယ်။
နောက်ပိုင်းမှာ Online Rack ငှားတာတွေရလာတော့ ပိုပီးအဆင်ပြေလာတယ်၊ Routing and Switching အတွက်က ကိုယ်ပိုင်ဝယ်ပီးလုပ်လဲရတယ် SGD 5000 – 10000 ကြားမှာသုံးရမယ်၊
Security/Wireless/Data Center ဆိုရင်တော့ဝယ်သုံးဖို့ရာ မလွယ်တော့ဘူး၊ Nexus တစ်လုံးတောင် ဝယ်ဖို့မဖြစ်နိင်ဘူး အတော်ဝင်ငွေကောင်းမှ။
ဒီတော့ Online Rack Rental တွေကိုဘဲ အားထားရတော့တယ်၊ သူလဲ ၄ နာရီတစ်ချိန်စာ ကို အနည်းဆုံး USD 15 လောက်ပေးရတယ်။ ဒါပေမယ့် CCNA/CCNP အတွက်ဆို Simulation များများနဲ့Online Rack အနည်းငယ်ဝယ်ပီးလေ့ကျင့်ရင် လုံလောက်မယ်ထင်ရတာဘဲ၊ အပြင်ကို Telnet/SSH တို့လှမ်းသုံးလို့ရမယ်ထင်တယ်
သင်တန်းတက်နိုင်သူတွေအဖို့တော့ သင်တန်းတွေမှာ လဲလေ့ကျင့်နိုင်တာပေါ့။

အကြောင်းအမျိုးမျိုးကြောင့် ငွေကြေးမသုံးနိုင်သူများ၊(ရှက်စရာမဟုတ်ပါ၊စာသင်နေချိန် အလုပ်ဝင်ကစအချိန်တွေမှာ အများစုကြုံနေကြပါ)၊ သင်တန်းမတက်နိုင်တဲ့သူတွေ အတွက် Online Free Rack တွေရှိကြောင်း Share ပေးလိုပါတယ်၊ Free service ဟာ Free service ဖြစ်တဲ့အတွက် ဝယ်သုံးရတာ၊ သင်တန်းတက်ရတာနဲ့တော့ ကွာတာပေါ့။

သိပီးသားလဲဖြစ်မှာပါ၊ မသိသေးသူများအတွက်
Switch ၈လုံးနဲ့ချိတ်ထားတဲ့ Network တစ်ခုပါ၊ Switching လက်တွေ့လုပ်ချင်သူတွေအတွက် ကွက်တိပါဘဲ၊ အသုံးပြုသူတွေများတဲ့ အတွက် Switch ၃ လုံးလောက်ယူဖို့လက်မြန်ဖို့လိုပါတယ်၊
.sg ဆိုပေမယ့် ချိတ်ဖို့ပေးထားတဲ့ IP က US ဘက်မှာဆိုတော့ Singapore ကနေ 250ms လောက်ရှိပါတယ် စမ်းသုံးကြည့်တာ သိပ်နှေးတယ်လို့မထင်ပါဘူး၊

Cisco/Juniper Routers များနဲ့ချိတ်ထားတဲ့ Network ပါ၊
Routing စမ်းချင်သူတွေအဖို့အဆင်ပြေမှာပါ၊ Nexus လဲပါတော့ ပိုပြီးကောင်းတာပေါ့
တခြား Site တွေလဲ ရှိအုံးမှာပါ အချိန်ပေးပီး လိုက်ရှာနိုင်ရင်ပေါ့၊

ကိုဖြိုး