Mini-Project-OSPF-and-BGP-Lab-Manual-v2
Mini-Project-OSPF-and-BGP-Lab-Manual-v2
(Lab Manual)
Networkwalks Academy
1 www.networkwalks.com [email protected]
Task
Configure loopbacks and other interfaces on Routers & assign IP addresses according to above
topology.
Configure OSPF in above shown network according to below requirements:
• Area0 should be configured as OSPF Backbone Area (leave all links as default type
broadcast)
• Area1 should have all links as Broadcast OSPF links (default type)
• Area2 should have all links as Point-to-Point OSPF links
• R6 in Area2 should be configured as ASBR. Configure redistribution on R6 between OSPF
network & BGP
• Area3 should be configured as OSPF Stub Area
• Area4 should be configured as OSPF Totally Stub Area
Configure BGP on R6 and R7 as shown in above topology:
• BGP AS number in R6’s network is: AS100
• BGP AS number in R7's network is: AS200
Related Info:
‐ All Loopback IP’s, Interface IP’s and Gateways are mentioned in this topology Diagram
2 www.networkwalks.com [email protected]
Solution
R1
interface loopback 0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 1
!
interface fa0/0
ip address 128.128.128.1 255.255.255.0
ip ospf 1 area 1
no shutdown
!
router ospf 1
R2
interface loopback 0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
!
interface fa0/0
ip address 128.128.128.2 255.255.255.0
ip ospf 1 area 1
no shutdown
!
interface fa0/1
ip address 23.23.23.2 255.255.255.0
ip ospf 1 area 0
no shutdown
!
router ospf 1
R3
interface loopback 0
ip address 3.3.3.3 255.255.255.255
3 www.networkwalks.com [email protected]
ip ospf 1 area 0
!
interface fa0/0
ip address 23.23.23.3 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa0/1
ip address 34.34.34.3 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa1/0
ip address 153.153.153.3 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa2/0
ip address 103.103.103.3 255.255.255.0
ip ospf 1 area 0
no shutdown
!
router ospf 1
R4
interface loopback 0
ip address 4.4.4.4 255.255.255.255
ip ospf 1 area 0
!
interface fa0/0
ip address 34.34.34.4 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa0/1
ip address 45.45.45.4 255.255.255.0
ip ospf 1 area 2
ip ospf network point-to-point
no shutdown
!
router ospf 1
4 www.networkwalks.com [email protected]
R5
interface loopback 0
ip address 5.5.5.5 255.255.255.255
ip ospf 1 area 2
!
interface fa0/0
ip address 45.45.45.5 255.255.255.0
ip ospf 1 area 2
ip ospf network point-to-point
no shutdown
!
interface fa0/1
ip address 56.56.56.5 255.255.255.0
ip ospf 1 area 2
ip ospf network point-to-point
no shutdown
!
router ospf 1
R6
interface loopback 0
ip address 6.6.6.6 255.255.255.255
ip ospf 1 area 2
!
interface fa0/0
ip address 56.56.56.6 255.255.255.0
ip ospf 1 area 2
ip ospf network point-to-point
no shutdown
!
interface fa0/1
ip address 67.67.67.6 255.255.255.0
no shutdown
!
router ospf 1
redistribute bgp 100 subnets
!
5 www.networkwalks.com [email protected]
router bgp 100
neighbor 67.67.67.7 remote-as 200
network 6.6.6.6 mask 255.255.255.255
redistribute ospf 1
R7
interface loopback 0
ip address 7.7.7.7 255.255.255.255
!
interface loop7
ip address 7.77.77.77 255.255.255.255
!
interface loop77
ip address 7.177.177.177 255.255.255.255
!
interface fa0/0
ip address 67.67.67.7 255.255.255.0
no shutdown
!
router bgp 200
neighbor 67.67.67.6 remote-as 100
network 7.7.7.7 mask 255.255.255.255
network 7.77.77.77 mask 255.255.255.255
network 7.177.177.177 mask 255.255.255.255
R8
interface loopback 0
ip address 8.8.8.8 255.255.255.255
ip ospf 1 area 1
!
interface fa0/0
ip address 128.128.128.8 255.255.255.0
ip ospf 1 area 1
no shutdown
!
router ospf 1
6 www.networkwalks.com [email protected]
R10
interface loopback 0
ip address 10.10.10.10 255.255.255.255
ip ospf 1 area 0
!
interface fa0/0
ip address 103.103.103.10 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa0/1
ip address 110.110.110.10 255.255.255.0
ip ospf 1 area 3
no shutdown
!
router ospf 1
area 3 stub
R11
interface loopback 0
ip address 11.11.11.11 255.255.255.255
ip ospf 1 area 3
!
interface fa0/0
ip address 110.110.110.11 255.255.255.0
ip ospf 1 area 3
no shutdown
!
router ospf 1
area 3 stub
R15
interface loopback 0
ip address 15.15.15.15 255.255.255.255
ip ospf 1 area 0
7 www.networkwalks.com [email protected]
!
interface fa0/0
ip address 153.153.153.15 255.255.255.0
ip ospf 1 area 0
no shutdown
!
interface fa0/1
ip address 156.156.156.15 255.255.255.0
ip ospf 1 area 4
no shutdown
!
router ospf 1
area 4 stub no-summary
R16
interface loopback 0
ip address 16.16.16.16 255.255.255.255
ip ospf 1 area 4
!
interface fa0/0
ip address 156.156.156.16 255.255.255.0
ip ospf 1 area 4
no shutdown
!
router ospf 1
area 4 stub no-summary
8 www.networkwalks.com [email protected]
Verification
VERIFICATION 1: Verify the connectivity and routes using show commands on all Routers:
#show ip route
#show ip route ospf
#show ip route bgp
#show ip ospf neighbors
#show ip ospf database
#show ip ospf int brief
#show ip bgp
#show ip bgp summary
VERIFICATION 2: Verify the connectivity and routes using Ping from all Routers towards all other
Router loopbacks
-End-
9 www.networkwalks.com [email protected]