SOURCECODEBD.NET

Live Experience

5. ROUTE FILTERING USING PREFIX-LIST

HOW TO ROUTE FILTERING USING PREFIX-LIST
 
Interface IP Address Configuration  
    
R1  
    
Interface   IP Address   Subnet Mask  
S 0             1.1.1.1          255.0.0.0  
E 0             10.1.1.1        255.0.0.0  
    
R2  
    
Interface   IP Address   Subnet Mask  
S 1             1.1.1.2          255.0.0.0  
S 0             2.2.2.1          255.0.0.0  
E 0             20.1.1.1        255.0.0.0  
    
R3  
    
Interface         IP Address      Subnet Mask  
S 1                   2.2.2.2              255.0.0.0  
E 0                   30.1.1.1            255.0.0.0  
Loopback 0    192.168.0.1     255.255.255.0  
Loopback 1    192.168.1.1     255.255.255.0  
Loopback 2    192.168.2.1     255.255.255.0  
Loopback 3    192.168.3.1     255.255.255.0  
Loopback 4    192.168.4.1     255.255.255.0  
Loopback 5    192.168.5.1     255.255.255.0  
Loopback 6    192.168.6.1     255.255.255.0  
Loopback 7    192.168.7.1     255.255.255.0
 
 
Task 1  
    
  Configure RIP on all the routers as per the scenario . The Requirement is to block  
  networks belonging to 192.168.0.0/22 (192.168.0.0,  192.168.1.0,192.168.2.0,  
  192.168.3.0) to R1 from R3  using Prefix-List.  
 
R2  
  
Ip prefix-list ccnp seq 5 deny 192.168.0.0/22 ge 24 le 24  
Ip prefix-list ccnp seq 10 permit 0.0.0.0/0 le 32   
  
Router rip   
Distribute-list prefix ccnp out serial 1  
  
Verification:  
  
R1#show ip route  
 
The output does not display 192.168.0.0/22 range of networks, but does not block other  
routes.
You are here: Home / RIP / HOW TO ROUTE FILTERING USING PREFIX-LIST