🧪 Lab 01 · SR-MPLS Node နှင့် Prefix SIDs (IS-IS / OSPF တိုးချဲ့မှုများ)¶
✅ စမ်းသပ်အတည်ပြုပြီး - Arista cEOS 4.32.0F ပေါ်တွင် OrbStack fabric မှ output များကို တိုက်ရိုက်ရယူထားပါသည်။
ကြာချိန်: ~၅၀ မိနစ် · Nodes အရေအတွက်: ၅ ခု (Edge PE ၂ လုံး၊ Core P Router ၃ လုံး)
အမြန်စတင်ရန် လမ်းညွှန် — Step-by-Step Execution Guide (တည်နေရာ: labs/segment-routing-lab/)
အဆင့် ၁ · Lab Fabric ကို စတင်လည်ပတ်ပါ (မ run ရသေးပါက)
cd labs/segment-routing-lab
sudo containerlab deploy -t topology.clab.yml --max-workers 1
အဆင့် ၂ · အပြန်အလှန် Interactive လမ်းညွှန်ကို စတင်ပါ
./run.sh --guided
အခြား Run နိုင်သော နည်းလမ်းများ (Automated Script သို့မဟုတ် Manual CLI)
- Fast Automated Script Push:
./run.sh 01 # step 01 ကို အလိုအလျောက် config ထည့်သွင်း၍ စစ်ဆေးမည် ./run.sh --all # အဆင့်အားလုံးကို အစီအစဉ်အတိုင်း run မည် - Manual Line-by-Line CLI Execution:
Container node တစ်ခုချင်းစီသို့ CLI shell ဝင်ရောက်ရန်:
docker exec -it clab-segment-routing-lab-pe1 Cli
Topology နှင့် SRGB ခွဲဝေမှု¶
graph LR
PE1["pe1 (PE)<br/>Loopback: 10.255.0.1/32<br/>Node SID Index 101"] <===>|IS-IS + SR-MPLS| P1["p1 (P Core)<br/>Loopback: 10.255.0.2/32<br/>Node SID Index 102"]
P1 <===>|IS-IS + SR-MPLS| PE2["pe2 (PE)<br/>Loopback: 10.255.0.5/32<br/>Node SID Index 105"]
classDef pe fill:#1b5e20,stroke:#81c784,color:#ffffff,stroke-width:2px,font-weight:bold;
classDef p fill:#0d47a1,stroke:#64b5f6,color:#ffffff,stroke-width:2px,font-weight:bold;
class PE1,PE2 pe; class P1 p;
Segment Routing Global Block (SRGB)¶
| သတ်မှတ်ချက် | တန်ဖိုး | ရှင်းလင်းချက် |
|---|---|---|
| SRGB Range | 16000 – 23999 |
Domain တစ်ခုလုံးရှိ Segment Routing Node SIDs များအတွက် သီးသန့်ဖယ်ထားသော global MPLS label အပိုင်းအခြား။ |
pe1 Node SID |
Index 101 (Label 16101) |
Router pe1 loopback 10.255.0.1/32 ကို သီးခြားခွဲခြားဖော်ပြသည်။ |
pe2 Node SID |
Index 105 (Label 16105) |
Router pe2 loopback 10.255.0.5/32 ကို သီးခြားခွဲခြားဖော်ပြသည်။ |
အဆင့် ၁ · IS-IS Segment Routing Underlay ပြင်ဆင်သတ်မှတ်ခြင်း¶
pe1၊ p1၊ နှင့် pe2 ပေါ်တွင် wide metrics နှင့် prefix-segment SIDs များဖြင့် Segment Routing underlay ကို ဖွင့်ပါ။
configure
hostname pe1
!
router isis CORE
net 49.0001.0000.0000.0001.00
is-type level-2
metric-style wide
segment-routing mpls
no shutdown
prefix-segment 10.255.0.1/32 index 101
!
interface Loopback0
ip address 10.255.0.1/32
isis enable CORE
!
interface Ethernet1
no switchport
ip address 10.0.1.1/30
isis enable CORE
isis metric 10
!
interface Ethernet2
no switchport
ip address 10.0.3.1/30
isis enable CORE
isis metric 50
configure
hostname p1
!
router isis CORE
net 49.0001.0000.0000.0002.00
is-type level-2
metric-style wide
segment-routing mpls
no shutdown
prefix-segment 10.255.0.2/32 index 102
!
interface Loopback0
ip address 10.255.0.2/32
isis enable CORE
!
interface Ethernet1
no switchport
ip address 10.0.1.2/30
isis enable CORE
isis metric 10
!
interface Ethernet2
no switchport
ip address 10.0.2.1/30
isis enable CORE
isis metric 10
configure
hostname pe2
!
router isis CORE
net 49.0001.0000.0000.0005.00
is-type level-2
metric-style wide
segment-routing mpls
no shutdown
prefix-segment 10.255.0.5/32 index 105
!
interface Loopback0
ip address 10.255.0.5/32
isis enable CORE
!
interface Ethernet1
no switchport
ip address 10.0.2.2/30
isis enable CORE
isis metric 10
!
interface Ethernet2
no switchport
ip address 10.0.5.2/30
isis enable CORE
isis metric 10
အဆင့် ၂ · Data Plane Label စစ်ဆေးခြင်း¶
LFIB ထဲရှိ IS-IS Segment Routing Prefix SIDs များကို စစ်ဆေးပါ။
docker exec -i clab-segment-routing-lab-pe1 Cli -p 15 <<'EOF'
enable
show isis segment-routing prefix-segments
EOF
Segment Routing Prefix Segments:
Prefix Index Origin Flags
10.255.0.5/32 105 10.255.0.5 R:0 N:1 P:0 E:0 V:0 L:0
✅ အောင်မြင်မှု သတ်မှတ်ချက်: pe1 သည် pe2 (10.255.0.5/32) အတွက် Prefix SID 105 ကို လက်ခံရရှိထားရပါမည်။
ရှင်းလင်းသိမ်းဆည်းခြင်း (Clean up)¶
sudo containerlab destroy -t topology.clab.yml