بحث هذه المدونة الإلكترونية

الاثنين، ٢٦ سبتمبر ٢٠١١

Route-redistribution Trick

بسم الله والحمد لله والصلاة والسلام علي رسول الله وآله وصحبه وإخوانه وسلم

Route-redistribution Trick
1- redistribute RIP int OSPf ?    
في حالة عمل Redistribution  داخل الـRIP من أي routing protocol يقوم الـRIP بإعادة توزيعه بـMetric يساوي 255، وهو ما يعني أن هذا الـRoute غير صحيح أو بمعني أخر Infinity، لذلك يجب كتابة الـMetric في هذه الحالة.
R1(config)#router rip
R1(config-router)#redistribute ospf 100 metric 1

ثم إذا قمنا بعمل:

R2#show ip route
R    192.168.120.0/24 [120/1] via 172.16.10.1, 00:00:15, FastEthernet0/0
     192.168.10.0/30 is subnetted, 1 subnets
R       192.168.10.0 [120/1] via 172.16.10.1, 00:00:15, FastEthernet0/0
R    192.168.130.0/24 [120/1] via 172.16.10.1, 00:00:15, FastEthernet0/0
     172.16.0.0/30 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet0/0
     10.0.0.0/24 is subnetted, 2 subnets
C       10.10.10.0 is directly connected, Loopback0
C       10.10.11.0 is directly connected, Loopback1
سوف نجد أن R2 يستطيع الوصول إلي 192.168.130.0/24 و 192.168.120.0/24 و 192.168.10.0/24 وذلك نتيجة عمل الـRedistribution.
هذا الكلام أيضاً ينطبق علي الـEIGRP، ولكنه في هذه الحالة يقوم بإعطاء الـRoute في هذه الحالة Metric=0 وهو أيضاً نفس المعني أي Infinity أي أنه لا يستطيع الوصول إلي هذه الشبكة، وهذا علي جميع الـ Protocols ماعدا الـIS-IS.
ولا تنسوني والمسلمين من صالح الدعاء
وصلي الله وسلم وبارك علي المصطفي وآله وصحبه وإخوانه وسلم

الخميس، ١٥ سبتمبر ٢٠١١

Route Redistribution WithTags Lab


بسم الله والحمد لله والصلاة والسلام علي رسول الله وآله وصحبه وإخوانه وسلم

Route Redistribution WithTags Lab



Lab objectives:

1  1-   Enable routes at each side to be known by each routing protocol.


2  2-   Avoid routing-feedback loop.

 Download Lab file تحميل ملف اللاب


Download configuration تحميل الكونفجريشن   
 


ولا تنسوني والمسلمين من صالح الدعاء

وصلي الله وسلم وبارك علي المصطفي وآله وصحبه وإخوانه وسلم

Multi Point Route Redistribution Lab


بسم الله والحمد لله والصلاة والسلام علي رسول الله وآله وصحبه وإخوانه وسلم

Multi Point Route Redistribution Lab



يوجد العديد من النقاط تم تغطيتها في هذا اللاب علي النحو التالي:

Lab Objectives:

1-      Networks 192.168.10.0/30, 192.168.17.0  and 172.20.20.0/30 should not be advertised in OSPF domain.


R1#sho run
router ospf 100
 log-adjacency-changes
 redistribute rip subnets route-map RIP-TO-OSPF
!        
access-list 10 permit 192.168.10.0 0.0.0.3
access-list 10 permit 192.168.17.0 0.0.0.255
access-list 10 permit 172.20.20.0 0.0.0.3
!
route-map RIP-TO-OSPF deny 10
 match ip address 10
!        
route-map RIP-TO-OSPF permit 20
 set metric 5000
 set metric-type type-2


R3# the same configuration

R5#sho ip route
Gateway of last resort is not set
C    192.168.30.0/24 is directly connected, Loopback0
     172.16.0.0/30 is subnetted, 3 subnets
O       172.16.40.0 [110/129] via 172.16.30.1, 00:12:45, Serial0/0
C       172.16.30.0 is directly connected, Serial0/0
O       172.16.10.0 [110/65] via 172.16.30.1, 00:12:45, Serial0/0
O    192.168.20.0/24 [110/130] via 172.16.30.1, 00:12:45, Serial0/0
     10.0.0.0/30 is subnetted, 1 subnets
O E2    10.10.10.0 [110/5000] via 172.16.30.1, 00:07:19, Serial0/0
O E2 192.168.16.0/24 [110/5000] via 172.16.30.1, 00:07:19, Serial0/0
O E2 192.168.18.0/24 [110/5000] via 172.16.30.1, 00:07:19, Serial0/0

R6#sho ip route
Gateway of last resort is not set
O    192.168.30.0/24 [110/130] via 172.16.40.1, 00:08:12, Serial0/1
     172.16.0.0/30 is subnetted, 3 subnets
C       172.16.40.0 is directly connected, Serial0/1
O       172.16.30.0 [110/129] via 172.16.40.1, 00:08:12, Serial0/1
O       172.16.10.0 [110/65] via 172.16.40.1, 00:08:12, Serial0/1
C    192.168.20.0/24 is directly connected, Loopback0
     10.0.0.0/30 is subnetted, 1 subnets
O E2    10.10.10.0 [110/5000] via 172.16.40.1, 00:02:46, Serial0/1
O E2 192.168.16.0/24 [110/5000] via 172.16.40.1, 00:02:46, Serial0/1
O E2 192.168.18.0/24 [110/5000] via 172.16.40.1, 00:02:46, Serial0/1

2- R3 should use RIP to reach 10.10.10.0/30, no route-maps, distribute-lists or prefix-lists should be used.

R3(config)#router ospf 100
R3(config-router)#distance  ospf external 100 inter-area 100 intra-area 100
R3(config-router)#distance 100 10.10.10.0 0.0.0.3

R3(config-router)#do sho ip route
     10.0.0.0/30 is subnetted, 1 subnets
R       10.10.10.0 [120/1] via 172.20.20.1, 00:00:11, Serial1/0


3- 192.168.16.0/24 should be advertised in ospf with metric of 200 and metric type of 1.

R1#sho run
!
access-list 10 permit 192.168.10.0 0.0.0.3
access-list 10 permit 192.168.17.0 0.0.0.255
access-list 10 permit 172.20.20.0 0.0.0.3
access-list 20 permit 192.168.16.0 0.0.0.255
!        
route-map RIP-TO-OSPF deny 10
 match ip address 10
!        
route-map RIP-TO-OSPF permit 15
 match ip address 20
 set metric 200
 set metric-type type-1
!        
route-map RIP-TO-OSPF permit 20
 set metric 5000
 set metric-type type-2

R3# the same configuration

R3#sho ip route
O E1 192.168.16.0/24 [100/201] via 172.16.10.1, 00:04:18, FastEthernet0/0

R5#sho ip route
O E1 192.168.16.0/24 [110/264] via 172.16.30.1, 00:04:21, Serial0/0

R6#sho ip route
O E1 192.168.16.0/24 [110/265] via 172.16.40.1, 00:03:55, Serial0/1
 
4- Any other route redistributed in ospf should be redistributed with a metric of 5000 and type 2.
Included in question 2
5- Without redistributing ospf routes back into RIP, RIP domain routers should be able to reach any network in the ospf domain.

R1#sho run | sec rip
 redistribute rip subnets route-map RIP-TO-OSPF
router rip
 version 2
 passive-interface FastEthernet1/0
 network 192.168.10.0
 default-information originate

R3#sho run | sec rip
 redistribute rip subnets route-map RIP-TO-OSPF
router rip
 version 2
 passive-interface FastEthernet0/0
 network 172.20.0.0
 default-information originate
 no auto-summary

R2#sho ip route
R*   0.0.0.0/0 [120/1] via 192.168.10.1, 00:00:20, FastEthernet0/0

R4#sho ip route
R*   0.0.0.0/0 [120/1] via 172.20.20.2, 00:00:25, Serial1/0


لتحميل اللاب

 بسم الله 


 لتحميل الخطوات السابقة 


 بسم الله .docx
 بسم الله .pdf 


  
ولا تنسوني والمسلمين من صالح الدعاء
 وصلي الله وسلم وبارك علي المصطفي وآله وصحبه وإخوانه وسلم 


 

الخميس، ٨ سبتمبر ٢٠١١

routing feedback loop


بسم الله والحمد لله والصلاة والسلام علي رسول الله وآله وصحبه وإخوانه وسلم


Routing Feedback Loop

 هي لوب تحدث في الغالب علي الـ ASBRs، أي الراوترات التي تقوم بتشغيل أكثر من Routing Protocol في نفس الوقت وتقوم أيضاً بعمل Redistribution  بينهم، هنا إذا عرف ASBR طريق Route لشبكة معينة من البروتوكولين معاً وفي حالة تساوي الـSubnet Mask، هنا يقوم باستخدام الأقل في الـAdministrative Distance بغض النظر عن مدي مصداقية هذا الـRoute، علي سبيل المثال:
 
R2#sho ip route
Gateway of last resort is not set

     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.8 is directly connected, Serial0/0
O       192.168.10.12 [110/192] via 192.168.10.10, 00:01:27, Serial0/0
O       192.168.10.16 [110/128] via 192.168.10.10, 00:01:27, Serial0/0
     172.16.0.0/30 is subnetted, 2 subnets
O E2    172.16.1.4 [110/20] via 192.168.10.10, 00:01:27, Serial0/0
C       172.16.1.0 is directly connected, Serial0/2
O E2 192.168.1.0/24 [110/20] via 192.168.10.10, 00:01:14, Serial0/0
هنا نلاحظ أن R2  يستخدم دومين الـOSPF للوصول إلي شبكة 192.168.1.0 وذلك لأن الـAD أقل من الـRIP 
 هنا نقوم بعمل Route-map لمنع إستقبال أي updates عن 192.168.1.0 من دومين الـOSPf.
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R2(config)#route-map ospf_into_rip deny 10
R2(config-route-map)#match ip address 1
R2(config-route-map)#exit
R2(config)#route-map ospf_into_rip permit 20
R2(config-route-map)#exit
R2(config)#router rip
R2(config-router)#redistribute ospf 100 route-map ospf_into_rip
R2(config-router)#exit
   R2(config)#router ospf 100
R2(config-router)#redistribute rip subnets
R2#clear ip ospf process    
Reset ALL OSPF processes? [no]: y
R2#sho ip route
Gateway of last resort is not set
     192.168.10.0/30 is subnetted, 1 subnets
C       192.168.10.8 is directly connected, Serial0/0
     172.16.0.0/30 is subnetted, 2 subnets
R       172.16.1.4 [120/1] via 172.16.1.1, 00:00:00, Serial0/2
C       172.16.1.0 is directly connected, Serial0/2
R    192.168.1.0/24 [120/1] via 172.16.1.1, 00:00:00, Serial0/2

ولا تنسوني والمسلمين من صالح الدعاء

وصلي الله وسلم وبارك علي المصطفي وآله وصحبه وإخوانه وسلم

 

الجمعة، ٢ سبتمبر ٢٠١١

Route-Redistributiong GNS3 Lab File


بسم الله والحمد لله والصلاة والسلام علي رسول الله وآله وصحبه 

وإخوانه وسلم

Route-Redistributiong GNS3 Lab File


Download التحميل

 مش شايفين بعض في "R1, R2 ,R6 " سؤال:  هل لاحظتم أن
 طيب ليه يا إخوة؟ شاركوني بإجاباتكم OSPFدومين الـ
 Why R1,R2 and R6 does not see each other as OSPF neighbors although they can bing each other????
participate in this discussion
ولا تنسوني والمسلمين من صالح الدعاء

وصلي الله وسلم وبارك علي المصطفي وآله وصحبه وإخوانه 
وسلم