0% found this document useful (0 votes)
119 views12 pages

OSPF Configuration Guide

This document contains configuration files for several routers implementing a single-area OSPF routing protocol. The routers are configured with interface IP addresses, OSPF parameters including router IDs, cost metrics, networks to advertise, and other options. Default routes and priority settings are also configured on some routers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views12 pages

OSPF Configuration Guide

This document contains configuration files for several routers implementing a single-area OSPF routing protocol. The routers are configured with interface IP addresses, OSPF parameters including router IDs, cost metrics, networks to advertise, and other options. Default routes and priority settings are also configured on some routers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Polytechnic University of the

Philippines College of Engineering


Computer Engineering Department

CMPE 40083
Enterprise Networking, Security
and Automation

MP1 Source Codes

Submitted by:
BALDEVINO, Nathaniel V. – CpE 3-
4

Submitted to:

Engr. Jake A. Binuya


Professor

August 19, 2021


OSPF Boston, Buffalo, Bangor enable secret skills
service password
ROUTER BOSTON int fa0/0
ip add 172.16.30.1 255.255.255.0
en
no shut
conf t
exit
hostname Boston
int serial 0/0/1
line console 0
ip add 172.16.20.2 255.255.255.252
logg synch
clock rate 64000
password cisco
no shut
login
exit
exit
int serial 0/0/0
enable secret skills
ip add 172.16.40.1 255.255.255.252
service password
clock rate 64000
int fa0/0
no shut
ip add 172.16.10.1 255.255.255.0
exit
no shut
router ospf 1
exit
router-id 2.2.2.2
int serial 0/0/0
network 172.16.30.0 0.0.0.255 area 0
ip add 172.16.20.1 255.255.255.252
network 172.16.20.0 0.0.0.3 area 0
no shut
network 172.16.40.0 0.0.0.3 area 0
exit
exit
router ospf 1
do wr
router-id 1.1.1.1
network 172.16.10.0 0.0.0.255 area 0
network 172.16.20.0 0.0.0.3 area 0 Switch 2
exit en
do wr conf t
hostname S2
Switch 1 int vlan 1
ip add 172.16.30.2 255.255.255.0
en
no shut
conf t
exit
hostname S1
ip default-gateway 172.16.30.1
int vlan 1
do wr
ip add 172.16.10.2 255.255.255.0
no shut
exit
ip default-gateway 172.16.10.1 ROUTER BANGOR
do wr en
conf t
hostname Bangor
ROUTER BUFFALO line console 0
logg synch
en
password cisco
conf t
login
hostname Buffalo
exit
line console 0
enable secret skills
logg synch
service password
password cisco
int fa0/0
login
ip add 172.16.50.1 255.255.255.0
exit
no shut
exit
int serial 0/0/1
ip add 172.16.40.2 255.255.255.252
no shut
exit
router ospf 1
router-id 3.3.3.3
network 172.16.50.0 0.0.0.255 area 0
network 172.16.40.0 0.0.0.3 area 0
exit
do wr

Switch 3
en
conf t
hostname S3
int vlan 1
ip add 172.16.50.2 255.255.255.0
no shut
exit
ip default-gateway 172.16.50.1
do wr

OSPF Cancun, Acapulco, Mazatlan


ROUTER CANCUN ip add 172.16.30.1 255.255.255.0
en no shut
conf t exit
hostname Cancun int serial 0/0/1
line console 0 ip add 172.16.20.2 255.255.255.252
logg synch clock rate 64000
password cisco no shut
login exit
exit int serial 0/0/0
enable secret skills ip add 172.16.40.1 255.255.255.252
service password clock rate 64000
int fa0/0 no shut
ip add 172.16.10.1 255.255.255.0 exit
no shut router ospf 1
exit router-id 2.2.2.2
int serial 0/0/0 network 172.16.30.0 0.0.0.255 area 0
ip add 172.16.20.1 255.255.255.252 network 172.16.20.0 0.0.0.3 area 0
no shut network 172.16.40.0 0.0.0.3 area 0
exit exit
router ospf 1 do wr
router-id 1.1.1.1
network 172.16.10.0 0.0.0.255 area 0 Switch 2
network 172.16.20.0 0.0.0.3 area 0 en
exit conf t
do wr hostname S2
int vlan 1
Switch 1 ip add 172.16.30.2 255.255.255.0
en no shut
conf t exit
hostname S1 ip default-gateway 172.16.30.1
int vlan 1 do wr
ip add 172.16.10.2 255.255.255.0
no shut
exit MAZATLAN
ip default-gateway 172.16.10.1 en
do wr conf t
hostname Mazatlan
line console 0
ROUTER ACAPULCO logg synch
en password cisco
conf t login
hostname Acapulco exit
line console 0 enable secret skills
logg synch service password
password cisco int fa0/0
login ip add 172.16.50.1 255.255.255.0
exit no shut
enable secret skills exit
service password int serial 0/0/1
int fa0/0 ip add 172.16.40.2 255.255.255.252
no shut Switch 3
exit en
router ospf 1 conf t
router-id 3.3.3.3 hostname S3
network 172.16.50.0 0.0.0.255 area 0 int vlan 1
network 172.16.40.0 0.0.0.3 area 0 ip add 172.16.50.2 255.255.255.0
exit no shut
do wr exit
ip default-gateway 172.16.50.1
do wr

2.2.13 Packet Tracer - Point-to-Point Single-Area OSPFv2 Configuration


Router R1 network 10.1.1.9 0.0.0.0 area 0
enable passive-interface g0/0/0
configure terminal end
router ospf 10
router-id 1.1.1.1 Router R3
network 192.168.10.0 0.0.0.255 area 0 enable
network 10.1.1.0 0.0.0.3 area 0 configure terminal
network 10.1.1.4 0.0.0.3 area 0 router ospf 10
passive-interface g0/0/0 router-id 3.3.3.3
end interface GigabitEthernet0/0/0
ip ospf 10 area 0
Router R2 interface Serial0/1/0
enable ip ospf 10 area 0
configure terminal interface Serial0/1/1
router ospf 10 ip ospf 10 area 0
router-id 2.2.2.2 router ospf 10
network 192.168.20.1 0.0.0.0 area 0 passive-interface g0/0/0
network 10.1.1.2 0.0.0.0 area 0 end

2.3.11 Packet Tracer - Determine the DR and BDR


Router RA
enable
configure terminal
int gig 0/0
ip ospf priority 200

Router RB
enable
configure terminal
int gig 0/0
ip ospf priority 100

Router RC
enable
configure terminal
int gig 0/0
ip ospf priority 1

2.4.11 Packet Tracer - Modify Single-Area OSPFv2


Router R1
en
conf t
int ser 0/0/0
ip ospf hello 15
ip ospf dead 60
bandwidth 64
Router R2
en
conf t
int ser 0/0/0
ip ospf hello 15
ip ospf dead 60

2.5.3 Packet Tracer - Propagate a Default Route in OSPFv2


Router R2
en
conf t
ip route 0.0.0.0 0.0.0.0 ser
0/1/0
router ospf 1
default-information originate

2.6.6 Packet Tracer - Verify Single-Area OSPFv2


Router R3
en
conf t
int giga 0/0
ip ospf priority 1

Router R4
en
conf t
int giga 0/0/0
ip add 192.168.1.2 255.255.255.0
ip ospf priority 0
no shut
exit
router ospf 10
router-id 4.4.4.4
log-adjacency-changes
passive giga 0/0/1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.11.0 0.0.0.255 area 0

2.7.1 Packet Tracer - Single-Area OSPFv2 Configuration


ROUTER P2P-1
enable
configure terminal
interface Serial0/1/1
ip ospf cost 50
interface Serial0/2/0
ip ospf hello-interval 20
ip ospf dead-interval 80
router ospf 10
auto-cost reference-bandwidth 1000
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.8 0.0.0.3 area 0
network 10.0.0.12 0.0.0.3 area 0
end
ROUTER P2P-2
enable
configure terminal
router ospf 10
log-adjacency-changes
passive-interface GigabitEthernet0/0/0
passive-interface GigabitEthernet0/0/1
auto-cost reference-bandwidth 1000
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.4 0.0.0.3 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
end

ROUTER P2P-3
enable
configure terminal
router ospf 10
log-adjacency-changes
passive-interface GigabitEthernet0/0/0
auto-cost reference-bandwidth 1000
network 10.0.0.4 0.0.0.3 area 0
network 10.0.0.8 0.0.0.3 area 0
network 192.168.3.0 0.0.0.15 area 0
end
ROUTER BC-1
enable
configure terminal
interface GigabitEthernet0/0/0
ip ospf priority 255
ip ospf 10 area 0
interface Serial0/1/0
ip ospf hello-interval 20
ip ospf dead-interval 80
ip ospf 10 area 0
router ospf 10
router-id 6.6.6.6
passive-interface Serial0/1/1
auto-cost reference-bandwidth 1000
default-information originate
ip route 0.0.0.0 0.0.0.0 Serial0/1/1
end

ROUTER BC-2
enable
configure terminal
interface GigabitEthernet0/0/0
ip ospf 10 area 0
interface GigabitEthernet0/0/1
ip ospf 10 area 0
router ospf 10
router-id 5.5.5.5
passive-interface GigabitEthernet0/0/0
auto-cost reference-bandwidth 1000
end
ROUTER BC-3
enable
configure terminal
interface GigabitEthernet0/0/0
ip ospf 10 area 0
interface GigabitEthernet0/0/1
ip ospf 10 area 0
router ospf 10
router-id 4.4.4.4
passive-interface GigabitEthernet0/0/0
auto-cost reference-bandwidth 1000
end

You might also like