Monday, August 11, 2014

OSPF basic: router-id, DR & BDR, Redistributing statics, E2 metric, summarization at ABR and ASBR, reference-bandwidth




Q1> Define router-id before setting ospf network.
R1 - R5:
conf t
router ospf 1
router-id 1.1.1.1

Q2> R1 will act as an ASBR by redistributing a series of static routes into the OSPF network.
These routes shouldn't increment their metric as they pass through the network and should have an initial OSPF cost of 200.
(E1 route increment their metric, and E2 doesn't increment their metric)
R1:
conf t
router ospf 1
redistribute static subnets metric 200 metric-type 2

Q3> R1 must be DR, R2 and R3 must not be DR or BDR
R1:
conf t
int f0/0
ip ospf priority 200
R2 and R3:
conf t
int f0/0
ip ospf priority 0

Q4> Implement summarization at the ABRs in the network to make the routing tables throughout the networks as efficient as possible.
R2:
conf t
router ospf 1
area 10 range 10.10.0.0 255.255.252.0
R3:
conf t
router ospf 1
area 20 range 10.20.0.0 255.255.252.0

Q5> Implement summarization at the ASBR. The summary route should have the same attributes as the orginal,
individual routes redistributed into the network.
R1:
conf t
router ospf 1
summary-address 172.16.0.0 255.255.252.0

Q6> The organization plans to upgrade to Gigabit Ethernet in the coming months,
OSPF should accurately calculate its metric assuming Gigabit Ethernet will be the fastest link in the network.
R1 - R5:
conf t
router ospf 1
auto-cost reference-bandwidth 1000

----------------------------------------------------------------------------------------------------

Configuration

R1

interface FastEthernet0/0
 ip address 172.30.0.1 255.255.255.0
 ip ospf priority 200
 speed 10
 full-duplex
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 auto-cost reference-bandwidth 1000
 summary-address 172.16.0.0 255.255.252.0
 redistribute static metric 200 subnets
 network 172.30.0.1 0.0.0.0 area 0
!
ip forward-protocol nd
ip route 172.16.0.0 255.255.255.0 Null0
ip route 172.16.1.0 255.255.255.0 Null0
ip route 172.16.2.0 255.255.255.0 Null0
ip route 172.16.3.0 255.255.255.0 Null0

R2

interface FastEthernet0/0
 ip address 172.30.0.2 255.255.255.0
 ip ospf priority 0
 speed 10
 full-duplex
!
interface Serial0/0
 bandwidth 500
 ip address 172.30.10.2 255.255.255.0
 clock rate 2000000
!
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 auto-cost reference-bandwidth 1000
 area 10 range 10.10.0.0 255.255.252.0
 network 172.30.0.2 0.0.0.0 area 0
 network 172.30.10.2 0.0.0.0 area 10

R3

interface FastEthernet0/0
 ip address 172.30.0.3 255.255.255.0
 ip ospf priority 0
 speed 10
 full-duplex
!
interface Serial0/0
 bandwidth 500
 ip address 172.30.20.3 255.255.255.0
 clock rate 2000000
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 auto-cost reference-bandwidth 1000
 area 20 range 10.20.0.0 255.255.252.0
 network 172.30.0.3 0.0.0.0 area 0
 network 172.30.20.3 0.0.0.0 area 20

R4

interface Loopback1
 ip address 10.20.0.1 255.255.255.0
!
interface Loopback2
 ip address 10.20.1.1 255.255.255.0
!
interface Loopback3
 ip address 10.20.2.1 255.255.255.0
!
interface Loopback4
 ip address 10.20.3.1 255.255.255.0
!
interface Serial0/0
 bandwidth 500
 ip address 172.30.20.4 255.255.255.0
 clock rate 2000000
!
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 auto-cost reference-bandwidth 1000
 network 10.0.0.0 0.255.255.255 area 20
 network 172.30.20.4 0.0.0.0 area 20

R5

interface Loopback1
 ip address 10.10.0.1 255.255.255.0
!
interface Loopback2
 ip address 10.10.1.1 255.255.255.0
!
interface Loopback3
 ip address 10.10.2.1 255.255.255.0
!
interface Loopback4
 ip address 10.10.3.1 255.255.255.0
!
interface Serial0/0
 bandwidth 500
 ip address 172.30.10.5 255.255.255.0
 clock rate 2000000
!
router ospf 1
 router-id 5.5.5.5
 log-adjacency-changes
 auto-cost reference-bandwidth 1000
 network 10.0.0.0 0.255.255.255 area 10
 network 172.30.10.5 0.0.0.0 area 10

No comments:

Post a Comment