Configuring OSPF and EIGRP Routing Protocols on Cisco Routers
OSPF Configuration
HQ1 Configuration
Router>en
Router#conf t
Router(config)#host HQ1
HQ1(config)#banner motd #propiedad privada#
HQ1(config)#line vty 0 4
HQ1(config-line)#pass cisco
HQ1(config-line)#login
HQ1(config-line)#exi
HQ1(config)#line conso 0
HQ1(config-line)#pass cisco
HQ1(config-line)#login
HQ1(config-line)#exi
HQ1(config)#enable secret prueba
HQ1(config)#int s0/0
HQ1(config-if)#ip add 200.0.0.6 255.255.255.252
HQ1(config-if)#no sh
HQ1(config)#int f0/0
HQ1(config-if)#ip add 126.0.0.1 255.255.255.248
HQ1(config-if)#no sh
HQ1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HQ1(config)#ip ro
HQ1(config)#ip route 0.0.0.0 0.0.0.0 200.0.0.5
HQ1(config)#router ospf 1
HQ1(config-router)#network 126.0.0.0 0.0.0.7 area 0
HQ1(config-router)#router-id 1.1.1.1
HQ1(config-router)#Reload or use "clear ip ospf process" command, for this to take effect
HQ1(config-router)#exi
HQ1(config)#int f0/0
HQ1(config-if)#ip ospf cost 8
HQ1(config-if)#ip ospf priority 1
HQ1(config-if)#ip ospf priority 8
HQ1(config-if)#exi
HQ1(config)#router ospf 1
HQ1(config-router)#passive-interface default
HQ1(config-router)#no passive-interface f0/0
HQ1(config-router)#exi
HQ1(config)#int f0/0
HQ1(config-if)#ip ospf priority 255
HQ1(config-if)#exi
HQ1(config)#router ospf 1
HQ1(config-router)#default-information originate
HQ2 Configuration
Router>en
Router#conf t
Router(config)#host HQ2
HQ2(config)#banner motd #propiedad privada#
HQ2(config)#int f0/0
HQ2(config-if)#ip add 126.0.0.2 255.255.255.248
HQ2(config-if)#no sh
HQ2(config-if)#exi
HQ2(config)#int l0
HQ2(config-if)#ip add 192.168.3.1 255.255.255.0
HQ2(config-if)#
HQ2>en
HQ2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HQ2(config)#interface f0/0
HQ2(config-if)#ip ospf cost 6
HQ2(config-if)#ip ospf priority 255
HQ2(config-if)#exi
HQ2(config)#router ospf 1
HQ2(config-router)#network 126.0.0.0 0.0.0.7 area 0
HQ2(config-router)#passive-interface default
HQ2(config-router)#no passive-interface f0/0
HQ2(config-router)#net 192.168.3.0 0.0.0.255 area 0
HQ3 Configuration
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host HQ3
HQ3(config)#banner motd #propiedad privada#
HQ3(config)#int f0/0
HQ3(config-if)#ip add 126.0.0.3 255.255.255.248
HQ3(config-if)#no sh
HQ3(config-if)#exi
HQ3(config)#int l0
HQ3(config-if)#ip add 192.168.2.1 255.255.255.0
HQ3(config-if)#no ip add 192.168.2.1 255.255.255.0
HQ3(config)#int l0
HQ3(config-if)#ip add 192.168.2.1 255.255.255.0
HQ3>en
HQ3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HQ3(config)#router ospf 1
HQ3(config-router)#network 126.0.0.0 0.0.0.7 area 0
HQ3(config-router)#passive-interface default
HQ3(config-router)#no passive-interface f0/0
HQ3(config-router)#exi
HQ3(config)#interface f0/0
HQ3(config-if)#ip ospf cost 10
HQ3(config)#router ospf 1
HQ3(config-router)#network 192.168.2.0 0.0.0.255 area 0
HQ4 Configuration
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host HQ4
HQ4(config)#int f0/0
HQ4(config-if)#ip add 126.0.0.4 255.255.255.248
HQ4(config-if)#no sh
HQ4(config)#int l0
HQ4(config-if)#ip add 192.168.1.1 255.255.255.128
HQ4(config-if)#exi
HQ4(config)#int l1
HQ4(config-if)#ip add 192.168.1.129 255.255.255.128
HQ4(config-if)#exi
HQ4(config)#exi
HQ4(config)#router ospf 1
HQ4(config-router)#network 126.0.0.0 0.0.0.7 area 0
HQ4(config-router)#passive-interface default
HQ4(config-router)#no passive-interface f0/0
HQ4(config)#interface
HQ4(config)#int f0/0
HQ4(config-if)#ip ospf cost 4
HQ4(config-if)#exi
HQ4(config)#router ospf 1
HQ4(config-router)#network 192.168.1.0 0.0.0.127 area 0
HQ4(config-router)#network 192.168.1.128 0.0.0.127 area 0
HQ4(config)#int f0/0
HQ4(config-if)#ip ospf priority 254
EIGRP Configuration
R1 Configuration
R1(config-if)#bandwidth 2048
R1(config-if)#no sh
R1(config-if)#exi
R1(config)#int s0/2
R1(config-if)#ip add 200.0.0.17 255.255.255.252
R1(config-if)#clock rate 128000
R1(config-if)#bandwidth 512
R1(config-if)#no shutdown
R1(config-if)#exit
R1>en
Password:
R1(config)#router eigrp 100
R1(config-router)#no auto-summary
R1(config-router)#network 200.0.0.24
R1(config-router)#network 200.0.0.24 0.0.0.3
R1(config-router)#network 200.0.0.16 0.0.0.3
R1(config-router)#network 200.0.0.0 0.0.0.3
R1(config-router)#passive-interface default
R1(config-router)#no passive-interface s0/0
R1(config-router)#no passive-interface s0/1
R1(config-router)#no passive-interface s0/2
R1#conf t
R1(config)#ip route 0.0.0.0 0.0.0.0 200.0.0.1
R1(config)#router eigrp 100
R1(config-router)#redistribute static
R1#conf t
R1(config)#int s0/0
R1(config-if)#ip summary-address eigrp 100 172.26.16.0 255.255.252.0 5
R2 Configuration
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int s0/0
R2(config-if)#ip add 200.0.0.26 255.255.255.252
R2(config-if)#bandwidth 1024
R2(config-if)#no shutdown
R2(config)#int s0/1
R2(config-if)#ip add 200.0.0.49 255.255.255.252
R2(config-if)#clock rate 128000
R2(config-if)#bandwidth 1024
R2(config-if)#no sh
R2(config-if)#bandwidth 2048
R2(config-if)#exi
R2(config)#int f0/0
R2(config-if)#ip add 172.26.16.1 255.255.254.0
R2(config-if)#no sh
R2#conf t
R2(config)#router eigrp 100
R2(config-router)#no auto-summary
R2(config-router)#network 200.0.0.24 0.0.0.3
R2(config-router)#net 200.0.0.48 0.0.0.3
R2(config-router)#net 172.26.16.0 0.0.1.255
R2(config-router)#passive-interface default
R2(config-router)#no passive-interface s
R2(config-router)#no passive-interface s0/0
R2(config-router)#no passive-interface s0/1
R2(config-router)#no passive-interface f0/0
R2(config-router)#passive-interface f0/0
R3 Configuration
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#int s0/0
R3(config-if)#ip add 200.0.0.18 255.255.255.252
R3(config-if)#bandwidth 512
R3(config-if)#exi
R3(config)#ip add 200.0.0.18 255.255.255.252
R3(config)#int s0/1
R3(config-if)#ip add 200.0.0.50 255.255.255.252
R3(config-if)#bandwidth 1024
R3(config)#int f0/0
R3(config-if)#ip add 172.26.18.1 255.255.254.0
R3(config-if)#no shutdown
R3(config)#router eigrp 100
R3(config-router)#no auto-summary
R3(config-router)#network 200.0.0.48
R3(config-router)#network 200.0.0.48 0.0.0.3
R3(config-router)#network 200.0.0.16 0.0.0.3
R3(config-router)#network 172.26.18.0 0.0.1.255
R3(config-router)#passive-interface default
R3(config-router)#no passive-interface s0/0
R3(config-router)#no passive-interface s0/1
R4 Configuration
Router>en
Router#conf t
Router(config)#host R4
R4(config)#int s0/0
R4(config-if)#ip add 200.0.0.46 255.255.255.252
R4(config-if)#bandwidth 3072
R4(config-if)#no sh
R4(config)#int s0/1
R4(config-if)#ip add 200.0.0.37 255.255.255.252
R4(config-if)#clock rate 128000
R4(config-if)#bandwidth 4096
R4(config-if)#no sh
R4(config-if)#exi
R4(config)#int f0/0
R4(config-if)#ip add 172.26.20.1 255.255.255.128
R4(config-if)#no sh
R4>en
Password:
R4#conf t
R4(config)#router eigrp 200
R4(config-router)#no auto-summary
R4(config-router)#net 200.0.0.44 0.0.0.3
R4(config-router)#net 200.0.0.36 0.0.0.3
R4(config-router)#net 172.26.20.0 0.0.0.127
R4(config-router)#passive-interface default
R4(config-router)#no passive-interface s0/0
R4(config-router)#no passive-interface s0/1
R4(config)#ip route 0.0.0.0 0.0.0.0 200.0.0.45
R4(config)#router eigrp 200
R4(config-router)#redistribute static
R4>en
R4#conf t
R4(config)#int s0/0
R4(config-if)#ip summary-address eigrp 200 172.26.20.0 255.255.255.0 5
R5 Configuration
Router>en
Router#conf t
Router(config)#host R5
R5(config)#banner motd #propiedad privada#
R5(config)#int s0/0
R5(config-if)#ip add 200.0.0.38 255.255.255.252
R5(config-if)#bandwidth 4096
R5(config)#int f0/0
R5(config-if)#ip add 172.26.20.129 255.255.255.128
R5(config-if)#no sh
R5>en
R5#conf t
R5(config)#router eigrp 200
R5(config-router)#no auto-summary
R5(config-router)#network 172.26.20.128 0.0.0.127
R5(config-router)#network 200.0.0.36 0.0.0.3
R5(config-router)#passive-interface default
R5(config-router)#no passive-interface s0/0
This configuration demonstrates how to set up OSPF and EIGRP routing protocols on Cisco routers. It includes configuring interfaces, routing protocol processes, network statements, passive interfaces, and redistribution of routing information.
Please note that this is a basic configuration example and may need to be modified based on your specific network requirements.
Important: Remember to replace any placeholder values (e.g., IP addresses, passwords) with your actual network information.