On this lab you will use redistribution to announce a large number of networks into the BGP routing process. You will also use route-maps to set the origin of BGP routes to "IGP" instead of "incomplete".
In this task, you will remove all networks from your BGP defenitions (from task 1) and announce them by using redistribution from IGP into BGP with a route-map, which sets the origin code to "IGP". Make sure that 102.168.20.0/24 and 192.168.21.0/24 is not announce into BGP.
Step 1. Remove all BGP networks statements from previous activity.
WG1R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
WG1R1(config)#router bgp 1
WG1R1(config-router)#no network 192.168.1.0
WG1R1(config-router)#no network 197.1.0.0 mask 255.255.0.0
WG1R1(config-router)#^Z
Step 2. Telnet to router Good and verify that it no longer receives your network.
Step 3. Configure an access-list that permits all your networks except those that are shared among workgroups.
WG1R1(config)#access-list 1 deny 192.168.1.0
WG1R1(config)#access-list 1 deny 192.168.21.0
WG1R1(config)#access-list 1 permit any
Step 4. Configure a route-map. Use the access-list with a match comand in the route-map. Use the set command in the route-map to set the origin to "IGP".
WG1R1(config)#route-map SetOrigin permit 10
WG1R1(config-route-map)#match ip address 1
WG1R1(config-route-map)#set origin igp
WG1R1(config-route-map)#^Z
Step 5. Configure redistribution from IGP into BGP by using the previously configure route-map.
WG1R1(config)#router bgp 1
WG1R1(config-router)#redistribute ospf 1 route-map SetOrigin
Verification:
Login to router Good and verify that it receives proper networks from you.
Good>show ip bgp
BGP table version is 38, local router ID is 199.199.199.199
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0/30 192.168.20.1 0 0 1 i
*> 192.168.1.4/30 192.168.20.1 128 0 1 i
*> 192.168.1.8/30 192.168.20.1 192 0 1 i
*> 197.1.1.0 192.168.20.1 0 0 1 i
*> 197.1.2.1/32 192.168.20.1 65 0 1 i
*> 197.1.3.1/32 192.168.20.1 65 0 1 i
Network Next Hop Metric LocPrf Weight Path
*> 197.1.4.1/32 192.168.20.1 129 0 1 i
*> 197.1.5.1/32 192.168.20.1 129 0 1 i
*> 197.1.6.1/32 192.168.20.1 193 0 1 i
*> 197.1.7.1/32 192.168.20.1 193 0 1 i
*> 197.1.8.0 192.168.20.1 0 0 1 i
No comments:
Post a Comment