R1 conf t int l0 ip add 1.1.1.1 255.255.255.255 int g0/0 ip add 10.10.1.1 255.255.255.252 no shut int g1/0 ip add 209.48.42.54 255.255.255.252 no shut int g6/0 ip add 192.168.0.1 255.255.255.252 no shut end conf t router bgp 1 bgp router-id 1.1.1.1 neighbor 209.48.42.53 remote-as 7 network 1.1.1.1 mask 255.255.255.255 network 209.48.42.52 mask 255.255.255.252 network 192.168.0.0 mask 255.255.255.252 neighbor 209.48.42.53 activate no neighbor 209.48.42.53 prefix-list bgp-in in no neighbor 209.48.42.53 prefix-list bgp-out out neighbor 192.168.0.2 remote-as 2 neighbor 192.168.0.2 activate address-family ipv4 network 25.25.25.0 mask 255.255.255.248 network 35.35.35.0 mask 255.255.255.248 exit router ospf 1 router-id 1.1.1.1 redistribute connected subnets redistribute static subnets redistribute bgp 1 subnets default-information originate net 192.168.0.0 255.255.255.252 area 100 net 10.10.1.0 255.255.255.252 area 100 net 1.1.1.1 255.255.255.255 area 100 end conf t ip prefix-list bgp-in permit 25.25.25.0/29 ip prefix-list bgp-in permit 35.35.35.0/29 ip prefix-list bgp-in permit 7.7.7.7/32 ip prefix-list bgp-out permit 25.25.25.0/29 ip prefix-list bgp-out permit 35.35.35.0/29 end conf t ip route 0.0.0.0 0.0.0.0 209.48.42.53 end ******************************************************* R2 conf t int l0 ip add 2.2.2.2 255.255.255.255 int g0/0 ip add 10.10.2.1 255.255.255.252 no shut int g1/0 ip add 216.68.218.66 255.255.255.252 no shut int g6/0 ip add 192.168.0.2 255.255.255.252 no shut end conf t router bgp 2 bgp router-id 2.2.2.2 neighbor 216.68.218.65 remote-as 7 neighbor 216.68.218.65 activate neighbor 216.68.218.65 prefix-list bgp-in in neighbor 216.68.218.65 prefix-list bgp-out out network 216.68.218.64 mask 255.255.255.252 neighbor 192.168.0.1 remote-as 1 neighbor 192.168.0.1 activate address-family ipv4 network 25.25.25.0 mask 255.255.255.248 network 35.35.35.0 mask 255.255.255.248 exit router ospf 1 router-id 2.2.2.2 redistribute connected subnets redistribute static subnets redistribute bgp 2 subnets default-information originate net 10.10.2.0 255.255.255.252 area 100 net 192.168.0.0 255.255.255.252 area 100 network 2.2.2.2 255.255.255.255 area 100 end conf t ip prefix-list bgp-in permit 25.25.25.0/29 ip prefix-list bgp-in permit 35.35.35.0/29 ip prefix-list bgp-in permit 7.7.7.7/32 ip prefix-list bgp-out permit 25.25.25.0/29 ip prefix-list bgp-out permit 35.35.35.0/29 end conf t ip route 0.0.0.0 0.0.0.0 216.68.218.65 end ******************************************************* R3 conf t int l0 ip add 3.3.3.3 255.255.255.255 int g0/0 ip add 10.10.1.2 255.255.255.252 no shut int g1/0 ip add 172.16.1.1 255.255.255.252 no shut int g2/0 ip add 10.10.1.5 255.255.255.252 no shut end conf t router ospf 1 router-id 3.3.3.3 net 10.10.1.4 255.255.255.252 area 100 net 172.16.1.0 255.255.255.252 area 100 net 10.10.1.0 255.255.255.252 area 100 net 3.3.3.3 255.255.255.255 area 100 end ******************************************************* R4 conf t int l0 ip add 4.4.4.4 255.255.255.255 int g0/0 ip add 10.10.2.2 255.255.255.252 no shut int g1/0 ip add 172.16.1.2 255.255.255.252 no shut int g2/0 ip add 10.10.2.5 255.255.255.252 no shut end conf t router ospf 1 router-id 4.4.4.4 net 10.10.2.4 255.255.255.252 area 100 net 172.16.1.0 255.255.255.252 area 100 net 10.10.2.0 255.255.255.252 area 100 net 4.4.4.4 255.255.255.255 area 100 end ******************************************************* R5 conf t int l0 ip add 5.5.5.5 255.255.255.255 int l1 ip add 25.25.25.1 255.255.255.248 int g1/0 ip add 192.168.1.1 255.255.255.252 no shut int g2/0 ip add 10.10.1.6 255.255.255.252 no shut end conf t router ospf 1 router-id 5.5.5.5 net 10.10.1.4 255.255.255.252 area 100 net 192.168.1.0 255.255.255.252 area 100 net 25.25.25.0 255.255.255.248 area 100 net 5.5.5.5 255.255.255.255 area 100 end ******************************************************* R6 conf t int l0 ip add 6.6.6.6 255.255.255.255 int l1 ip add 35.35.35.1 255.255.255.248 int g1/0 ip add 192.168.1.2 255.255.255.252 no shut int g2/0 ip add 10.10.2.6 255.255.255.252 no shut end conf t router ospf 1 router-id 6.6.6.6 net 10.10.2.4 255.255.255.252 area 100 net 192.168.1.0 255.255.255.252 area 100 net 35.35.35.0 255.255.255.248 area 100 net 6.6.6.6 255.255.255.255 area 100 end ******************************************************* R7 conf t int g0/0 ip add 209.48.42.53 255.255.255.252 no shut int g1/0 ip add 216.68.218.65 255.255.255.252 no shut int l0 ip add 7.7.7.7 255.255.255.255 no shut end conf t router bgp 7 bgp router-id 7.7.7.7 network 7.7.7.7 mask 255.255.255.255 neighbor 216.68.218.66 remote-as 2 network 216.68.218.64 mask 255.255.255.252 neighbor 216.68.218.66 activate neighbor 216.68.218.66 prefix-list bgp-in in neighbor 216.68.218.66 prefix-list bgp-out out neighbor 209.48.42.54 remote-as 1 neighbor 209.48.42.54 activate neighbor 209.48.42.54 prefix-list bgp-in in neighbor 209.48.42.54 prefix-list bgp-out out network 209.48.42.52 mask 255.255.255.252 end