MP-BGP: BGP لـ IPv6 بالـ Address Families
BGP واحد يحمل IPv4 و IPv6 وغيرهم، بفضل الـ address families، يعني Multiprotocol BGP. نبني جلسة eBGP على عناوين IPv6 بين R2 و ISP-A، ونفعّلها تحت address-family ipv6، ونعلن شبكة IPv6، ونقرا show bgp ipv6 unicast، ونعرف ليش الجار ما يتبادل شي بدون activate.
نص شرح المعلم والكود الذي كتبه ونتيجة تشغيله، بنفس ترتيب الدرس.
enable
configure terminal
hostname R1
no ip domain-lookup
interface g0/0/0
ip address 10.0.12.1 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.14.1 255.255.255.0
no shutdown
interface lo0
ip address 1.1.1.1 255.255.255.255
interface lo1
ip address 172.16.1.1 255.255.255.0
ip ospf network point-to-point
end
enable
configure terminal
router ospf 1
router-id 1.1.1.1
network 10.0.12.0 0.0.0.255 area 0
network 1.1.1.1 0.0.0.0 area 0
end
enable
configure terminal
router bgp 65001
bgp router-id 1.1.1.1
neighbor 10.0.14.4 remote-as 65003
neighbor 2.2.2.2 remote-as 65001
neighbor 2.2.2.2 update-source lo0
neighbor 2.2.2.2 next-hop-self
network 172.16.1.0 mask 255.255.255.0
endenable
configure terminal
hostname R2
no ip domain-lookup
interface g0/0/0
ip address 10.0.12.2 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.23.2 255.255.255.0
no shutdown
interface lo0
ip address 2.2.2.2 255.255.255.255
interface lo1
ip address 172.16.2.1 255.255.255.0
ip ospf network point-to-point
end
enable
configure terminal
router ospf 1
router-id 2.2.2.2
network 10.0.12.0 0.0.0.255 area 0
network 2.2.2.2 0.0.0.0 area 0
end
enable
configure terminal
router bgp 65001
bgp router-id 2.2.2.2
neighbor 10.0.23.3 remote-as 65002
neighbor 1.1.1.1 remote-as 65001
neighbor 1.1.1.1 update-source lo0
neighbor 1.1.1.1 next-hop-self
network 172.16.2.0 mask 255.255.255.0
end
enable
configure terminal
ipv6 unicast-routing
interface g0/0/1
ipv6 address 2001:db8:23::2/64
ipv6 enable
interface lo1
ipv6 address 2001:db8:2::1/64
ipv6 enable
endenable
configure terminal
hostname R3
no ip domain-lookup
interface g0/0/0
ip address 10.0.23.3 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.34.3 255.255.255.0
no shutdown
interface lo0
ip address 3.3.3.3 255.255.255.255
interface lo1
ip address 203.0.113.1 255.255.255.0
end
enable
configure terminal
router bgp 65002
bgp router-id 3.3.3.3
neighbor 10.0.23.2 remote-as 65001
neighbor 10.0.34.4 remote-as 65003
network 203.0.113.0 mask 255.255.255.0
end
enable
configure terminal
ipv6 unicast-routing
interface g0/0/0
ipv6 address 2001:db8:23::3/64
ipv6 enable
interface lo1
ipv6 address 2001:db8:3::1/64
ipv6 enable
endenable
configure terminal
hostname R4
no ip domain-lookup
interface g0/0/0
ip address 10.0.34.4 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.14.4 255.255.255.0
no shutdown
interface lo0
ip address 4.4.4.4 255.255.255.255
interface lo1
ip address 198.51.100.1 255.255.255.0
end
enable
configure terminal
router bgp 65003
bgp router-id 4.4.4.4
neighbor 10.0.14.1 remote-as 65001
neighbor 10.0.34.3 remote-as 65002
network 198.51.100.0 mask 255.255.255.0
endحيّاك الله. BGP في الأصل كان لـ IPv4 بس. وبدل ما يسوون بروتوكول جديد لكل نوع عناوين، أضافوا الـ address families. يعني نفس عملية BGP، ونفس الجيران، تقدر تحمل IPv4، و IPv6، و VPNv4 حق MPLS، وغيرهم. وهذا اسمه Multiprotocol BGP، أو MP-BGP.
والقواعد: الجار يتعرّف تحت router bgp عادي، بعنوانه و remote-as. وتحت كل address-family، تكتب activate للجار عشان يتبادل هذا النوع. والـ network يتكتب تحت الـ address-family حقه. ونقطة مهمة: جلسة على عنوان IPv4 تقدر تحمل مسارات IPv6، والعكس. لكن الأوضح والأشهر: جلسة IPv6 للـ IPv6. المعمل: نفس الشبكة، وأضفنا IPv6 على الـ link بين R2 و R3، وعلى loopback في كل واحد. نبني الجلسة على R2.
configure terminal
router bgp 65001
neighbor 2001:db8:23::3 remote-as 65002
address-family ipv6 unicast
neighbor 2001:db8:23::3 activate
network 2001:db8:2::/64
end
show bgp ipv6 unicast summaryconfigure terminal
router bgp 65002
neighbor 2001:db8:23::2 remote-as 65001
address-family ipv6 unicast
neighbor 2001:db8:23::2 activate
network 2001:db8:3::/64
endالجار two thousand one colon D B eight colon twenty three double colon three قايم، و PfxRcd واحد. نشوف الجدول.
show bgp ipv6 unicastشبكتنا two thousand one colon D B eight colon two double colon slash sixty four محلية، و two thousand one colon D B eight colon three double colon slash sixty four من R3 بـ AS path six five zero zero two. ونفس الأعمدة والعلامات حق IPv4. والفخ المشهور: في IOS، أي جار تكتبه يتفعّل افتراضياً في IPv4 unicast. يعني جارنا الـ IPv6 هذا فاتح جلسة IPv4 كمان بدون فايدة. والممارسة الصحيحة: no bgp default ipv4-unicast، وبعدها تفعّل كل جار يدوياً في الـ address family اللي تبغاه. الحين دورك. R2 لازم يعلن لـ R3 شبكة IPv6 ثانية: سوّ loopback اثنين على R2 بالعنوان two thousand one colon D B eight colon twenty two double colon one slash sixty four، وأعلنها في BGP. وتأكد إن R3 تعلّمها. وقّف الفيديو، وجرّب.
على R2: interface lo2 ← ipv6 address 2001:db8:22::1/64، وبعدها router bgp 65001 ← address-family ipv6 unicast ← network 2001:db8:22::/64. بعدها show bgp ipv6 unicast على R3.
الحل.
configure terminal
interface lo2
ipv6 address 2001:db8:22::1/64
router bgp 65001
address-family ipv6 unicast
network 2001:db8:22::/64
endshow bgp ipv6 unicastR3 تعلّم two thousand one colon D B eight colon twenty two double colon slash sixty four. ولاحظ: الـ network في IPv6 زي IPv4، لازم الشبكة تكون في جدول التوجيه بالضبط، وإلا ما تنعلن. الخلاصة: MP-BGP عملية وحدة لكل الأنواع، والجار يتعرّف مرّة، ويتفعّل تحت كل address family. والدرس الجاي نختم محور BGP بدرس تشخيص.
03 / دروس الكورس (74)
- 01حيّاكم الله: من ENCOR إلى ENARSI
- 02كيف يختار الراوتر المسار: Longest Match و Administrative Distance
- 03الـ Prefix List: فلترة بالشبكة وبطول الـ prefix
- 04الـ Route Map: لغة السياسات في التوجيه
- 05الـ Distribute List: الفلترة في EIGRP وفي OSPF
- 06الـ Redistribution: ربط EIGRP مع OSPF
- 07مشاكل الـ Redistribution في أكثر من نقطة: Tags تمنع الـ Loop
- 08الـ Summarization: مسار واحد بدل أربعة، و Null0
- 09منع الـ Loops: Split Horizon و Route Poisoning
- 10الـ Policy Based Routing: توجيه حسب المصدر
- 11الـ VRF-Lite: أكثر من Routing Table في راوتر واحد
- 12الـ BFD: اكتشاف العطل في جزء من الثانية
- 13تشخيص أعطال التوجيه: طريقة منظمة على شبكة خربانة
- 14EIGRP: شروط الجيرة وتشخيص الجار اللي ما يطلع
- 15EIGRP: الـ Metric بالأرقام، وكيف تتحكم في المسار
- 16EIGRP: الـ DUAL و الـ Feasible Successor
- 17EIGRP Named Mode: كل الإعدادات في مكان واحد
- 18EIGRP: الـ Variance و Unequal-Cost Load Balancing
- 19EIGRP Stub: حماية الشبكة من الـ Queries
- 20EIGRP: الـ Leak-Map والـ Offset-List
- 21EIGRP: الـ Authentication بـ MD5 و SHA-256
- 22EIGRP for IPv6: الـ Classic والـ Named
- 23تشخيص EIGRP: ثلاث مشاكل في طريق واحد
- 24OSPF: حالات الجيرة، و Hello، و MTU
- 25OSPF: أنواع الشبكات و الـ DR و الـ BDR
- 26OSPF: أنواع الـ LSAs وقراءة الـ Database
- 27OSPF: ترتيب تفضيل المسارات وقاعدة الـ Backbone
- 28OSPF: الـ Stub و Totally Stubby Areas
- 29OSPF: الـ NSSA و LSA النوع سبعة
- 30OSPF: التلخيص في الـ ABR والـ ASBR
- 31OSPF: الفلترة الصحيحة بين الـ Areas
- 32OSPF: الـ Virtual Link لـ Area مفصولة
- 33OSPF: الـ Cost والـ Reference Bandwidth
- 34OSPF: الـ Authentication بـ MD5 و SHA
- 35OSPFv3: الـ OSPF حق IPv6
- 36تشخيص OSPF: جيران ما يطلعون
- 37BGP: الجلسات وحالاتها
- 38BGP: الـ iBGP بين الـ Loopbacks
- 39BGP: الـ Next Hop في الـ iBGP و next-hop-self
- 40BGP: الـ Route Reflector بدل الـ Full Mesh
- 41BGP: خوارزمية اختيار أفضل مسار
- 42BGP: التحكم في الترافيك الطالع بالـ Weight والـ Local Preference
- 43BGP: التحكم في الترافيك الداخل بالـ AS Path Prepend والـ MED
- 44BGP: الفلترة بالـ Prefix List وخطر الـ Transit
- 45BGP: الـ Regular Expressions و AS Path Filter
- 46BGP: الـ Communities و no-export
- 47BGP: حماية الجلسات بالـ Password و TTL Security
- 48MP-BGP: BGP لـ IPv6 بالـ Address Familiesانت هنا
- 49تشخيص BGP: جلسات واقعة ومسار مو valid
- 50MPLS و LDP: Core بدون BGP
- 51MPLS Layer 3 VPN: الـ VRF و RD و RT و VPNv4
- 52تشخيص MPLS VPN: من الـ Core لفوق
- 53DMVPN: الـ mGRE و NHRP
- 54DMVPN: التوجيه فوق النفق و Phase 2
- 55DMVPN: الـ Phase 3 والحماية بـ IPsec
- 56AAA: TACACS+ و RADIUS وتشخيص الدخول
- 57الـ ACLs: الترتيب، والـ Sequence Numbers، والمكان الصح
- 58الـ Time-Based ACL: صلاحيات حسب الوقت
- 59الـ ACLs في IPv6 وفخ الـ Neighbor Discovery
- 60الـ uRPF: الحماية من العناوين المزوّرة
- 61الـ CoPP: حماية الـ Control Plane
- 62حماية الـ Management Plane: SSH و Access-Class
- 63IPv6 First-Hop Security: RA Guard و DHCPv6 Guard و Source Guard
- 64الدخول على الأجهزة والـ Backup بـ TFTP
- 65SNMP: من v2c المكشوف إلى SNMPv3
- 66الـ Syslog: مستويات الخطورة ووين تروح الرسائل
- 67الـ Debug بشرط: بدون ما تغرق الراوتر
- 68DHCP و الـ Relay: تشخيص أجهزة ما تاخذ عنوان
- 69DHCPv6: Stateful و Stateless والـ Relay
- 70الـ IP SLA و Object Tracking: Failover ذكي بين مزوّدين
- 71الـ Flexible NetFlow: مين يتكلم مع مين
- 72Catalyst Center Assurance: التشخيص من لوحة وحدة
- 73مشروع التشخيص الكامل: الشركة طاحت من الإنترنت
- 74الخاتمة: الاستعداد لاختبار ENARSI و وش بعده