Border Gateway Protocol - 4

အခုမှ စ ဖတ်မယ့်သူတွေအနေနဲ့ Border Gateway Protocol 1,2,3 ကို အောက်က လင့်တွေမှာ ဖတ်နိုင်ပါတယ်။

http://www.ictformyanmar.com/2016/05/border-gateway-protocol-1.html

http://www.ictformyanmar.com/2016/05/border-gateway-protocol-2.html

http://www.ictformyanmar.com/2016/05/border-gateway-protocol-3.html

BGP Case Studies တွေကို လေ့လာတဲ့အခါ အောက်ကပုံမှာ ပြထားသလိုမျိုး eBGP ကို Load Balancing လုပ်ရတာမျိုးကိုတွေ့ရမှာပါ။


ပုံမှန်အားဖြင့် eBGP router ၂ လုံးကို Parallel Link နဲ့ အခုလို ချိတ်ထားတဲ့အခါမှာ BGP က link တခုကိုပဲ ရွေးပြီး packet တွေကို send မှာဖြစ်ပြီး load balancing ရမှာ မဟုတ်ပါဘူး။
ဒီအတွက် loopback interface ဆိုတာကို သုံးဖို့လိုလာပါတယ်။ ဒါပေမယ့် loopback ကိုသုံးဖို့ ဆိုတာမှာ သူ့ကို create , configure လုပ်လိုက်ရုံနဲ့မရပါဘူး။ နောက်တဆင့်လိုပါသေးတယ်။
ဘာလိုတာလဲ ဆိုတာကို လေ့လာကြည့်ရအောင်။

ပထမဆုံးအနေနဲ့ Router Interface နဲ့ IP Address တွေကို configure လုပ်ပြီး eBGP ၊ static route တွေကို configure လုပ်ပါ။
(ကိုယ့်ဖာသာ ကိုယ် လုပ်ကြည့်ကြည့်ပါ။)
ကျတော်ကတော့ ဒီမှာ Static Route နဲ့ eBGP ပိုင်းကိုပဲ configure လုပ်ပြထားပါတယ်။

R1(config)#
R1(config)#router bgp 100
R1(config-router)#neighbor 192.168.2.2 remote-as 200
R1(config-router)#neighbor 192.168.2.2 update-source loopback 0
R1(config-router)#neighbor 192.168.2.2 ebgp-multihop 2
R1(config-router)#

R2(config)#
R2(config)#router bgp 200
R2(config-router)#neighbor 192.168.1.1 remote-as 100
R2(config-router)#neighbor 192.168.1.1 update-source loopback 0
R2(config-router)#neighbor 192.168.1.1 ebgp-multihop 2
R2(config-router)#

စက္ကန့်အနည်းငယ်စောင့်ပြီးတာနဲ့ eBGP neighbor up ဖြစ်တာကိုတွေ့ပါမယ်။

R1(config-router)#
*Jun  2 14:40:09.215: %BGP-5-ADJCHANGE: neighbor 192.168.2.2 Up

R2(config-router)#
*Jun  2 14:40:09.115: %BGP-5-ADJCHANGE: neighbor 192.168.1.1 Up

အိုကေ...ကျတော်တို့လိုချင်တဲ့ load balancing ရပါပြီ။

R1#show ip route static
S     192.168.2.0/24 [1/0] via 172.16.21.2
                     [1/0] via 172.16.12.2

R2#show ip route static
S     192.168.1.0/24 [1/0] via 172.16.21.1
                     [1/0] via 172.16.12.1

ဒီပို့စ်ရဲ့ အဓိက ဇာတ်လိုက်တွေကတော့ update-source ဆိုတဲ့ command နဲ့ loopback ပါပဲ။
ပုံမှန်အားဖြင့် iBGP တွေမှာသာ loopback ကို အသုံးပြုကြပေမယ့် အခုလိုမျိုး eBGP load balancing လိုဟာအတွက်လည်း loopback ကို အသုံးချတာပေါ့ဗျာ။

ဒီမှာ ပြချင်တာက loopback interface နဲ့ update-source ဆိုတာပါပဲ။

ဆက်ပါအုံးမယ်။

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





No comments :

Post a Comment