🧪 Lab 01 · IPv6 Neighbor Discovery (ND) နှင့် SLAAC / DHCPv6¶
✅ စမ်းသပ်အတည်ပြုပြီး - Arista cEOS 4.32.0F ပေါ်တွင် OrbStack fabric မှ output များကို တိုက်ရိုက်ရယူထားပါသည်။
ကြာချိန်: ~၄၀ မိနစ် · Nodes အရေအတွက်: ၄ ခု (Router ၂ လုံး၊ Leaf ၂ လုံး)
အမြန်စတင်ရန် လမ်းညွှန် — Step-by-Step Execution Guide (တည်နေရာ: labs/ipv6-lab/)
အဆင့် ၁ · Lab Fabric ကို စတင်လည်ပတ်ပါ (မ run ရသေးပါက)
cd labs/ipv6-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-ipv6-lab-r1-v6 Cli
🧠 နည်းပညာ အတွင်းကျကျ လေ့လာမှု: IPv6 Neighbor Discovery (ND)¶
IPv6 သည် IPv4 ၏ ARP (Address Resolution Protocol) broadcasts များကို ICMPv6 Neighbor Discovery (ND) ဖြင့် အစားထိုးလိုက်ပါသည်:
- Neighbor Solicitation (NS / Type 135): သက်ဆိုင်ရာ node ၏ MAC address ကို မေးမြန်းရန် Solicited-Node Multicast Address (ff02::1:ffxx:xxxx) ဆီသို့ ပေးပို့သော multicast request ဖြစ်သည်။
- Neighbor Advertisement (NA / Type 136): Link-layer MAC address ကို ပြန်လည်ပေးပို့သည့် unicast reply ဖြစ်သည်။
- Router Advertisement (RA / Type 134): SLAAC (Stateless Address Autoconfiguration) အတွက် default gateway နှင့် IPv6 network prefixes (2001:db8:1::/64) များကို အချိန်မှန် ကြေညာပေးသော router broadcast ဖြစ်သည်။
အဆင့် ၁ · IPv6 Dual-Stack Interface များကို ပြင်ဆင်သတ်မှတ်ခြင်း¶
r1-v6၊ r2-v6၊ leaf1-v6၊ နှင့် leaf2-v6 ပေါ်တွင် IPv6 global unicast address များ (2001:db8::/64) နှင့် OSPF Area 0 ကို ချိန်ညှိပါ။
configure
hostname r1-v6
!
service routing protocols model multi-agent
!
ipv6 unicast-routing
!
interface Loopback0
ip address 10.255.0.1/32
ipv6 address 2001:db8:ffff::1/128
ip ospf area 0.0.0.0
!
interface Ethernet1
no switchport
ip address 10.0.1.1/30
ipv6 address 2001:db8:1::1/64
ip ospf area 0.0.0.0
!
interface Ethernet2
no switchport
ip address 10.0.1.5/30
ipv6 address 2001:db8:2::1/64
ip ospf area 0.0.0.0
!
router ospf 100
router-id 10.255.0.1
passive-interface Loopback0
configure
hostname r2-v6
!
service routing protocols model multi-agent
!
ipv6 unicast-routing
!
interface Loopback0
ip address 10.255.0.2/32
ipv6 address 2001:db8:ffff::2/128
ip ospf area 0.0.0.0
!
interface Ethernet1
no switchport
ip address 10.0.2.1/30
ipv6 address 2001:db8:3::1/64
ip ospf area 0.0.0.0
!
interface Ethernet2
no switchport
ip address 10.0.2.5/30
ipv6 address 2001:db8:4::1/64
ip ospf area 0.0.0.0
!
router ospf 100
router-id 10.255.0.2
passive-interface Loopback0
configure
hostname leaf1-v6
!
service routing protocols model multi-agent
!
ipv6 unicast-routing
!
interface Loopback0
ip address 10.255.0.11/32
ipv6 address 2001:db8:ffff::11/128
ip ospf area 0.0.0.0
!
interface Ethernet1
no switchport
ip address 10.0.1.2/30
ipv6 address 2001:db8:1::2/64
ip ospf area 0.0.0.0
!
interface Ethernet2
no switchport
ip address 10.0.2.2/30
ipv6 address 2001:db8:3::2/64
ip ospf area 0.0.0.0
!
router ospf 100
router-id 10.255.0.11
passive-interface Loopback0
configure
hostname leaf2-v6
!
service routing protocols model multi-agent
!
ipv6 unicast-routing
!
interface Loopback0
ip address 10.255.0.12/32
ipv6 address 2001:db8:ffff::12/128
ip ospf area 0.0.0.0
!
interface Ethernet1
no switchport
ip address 10.0.1.6/30
ipv6 address 2001:db8:2::2/64
ip ospf area 0.0.0.0
!
interface Ethernet2
no switchport
ip address 10.0.2.6/30
ipv6 address 2001:db8:4::2/64
ip ospf area 0.0.0.0
!
router ospf 100
router-id 10.255.0.12
passive-interface Loopback0
အဆင့် ၂ · စနစ်စစ်ဆေးခြင်း¶
r1-v6 မှ leaf1-v6 ဆီသို့ IPv6 ping ရောက်ရှိနိုင်မှုကို စစ်ဆေးပါ:
docker exec -i clab-ipv6-lab-r1-v6 Cli -p 15 <<'EOF'
enable
ping ipv6 2001:db8:1::2 repeat 2
EOF
PING 2001:db8:1::2(2001:db8:1::2) 72 bytes of data.
80 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.421 ms
80 bytes from 2001:db8:1::2: icmp_seq=2 ttl=64 time=0.380 ms
--- 2001:db8:1::2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1ms
✅ အောင်မြင်မှု သတ်မှတ်ချက်: ping ipv6 2001:db8:1::2 သည် 0% packet loss ဖြင့် အောင်မြင်ရပါမည်။
ရှင်းလင်းသိမ်းဆည်းခြင်း (Clean up)¶
sudo containerlab destroy -t topology.clab.yml