0% found this document useful (0 votes)
52 views2 pages

HSRP Config

The document configures three routers R1, R2, and R3 with IP addresses and OSPF routing. It also configures HSRP on routers R1 and R2 to provide redundancy for network 192.168.1.0/24.

Uploaded by

Prabhakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

HSRP Config

The document configures three routers R1, R2, and R3 with IP addresses and OSPF routing. It also configures HSRP on routers R1 and R2 to provide redundancy for network 192.168.1.0/24.

Uploaded by

Prabhakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Router>enable

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface gigabitethernet 0/1
R1(config-if)#ip address 192.168.1.3 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up

R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface gigabitethernet 0/2
R2(config-if)#ip address 192.168.1.4 255.255.255.0
R2(config-if)#no shutdown

R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state


to up

R2(config-if)#exit
R2(config)#interface serial 0/0/1
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#interface serial 0/0/0
R3(config-if)#ip address 20.0.0.2 255.0.0.0
R3(config-if)#no shutdown

R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R3(config-if)#exit
R3(config)#interface serial 0/0/1
R3(config-if)#ip address 30.0.
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
0.2 255.0.0.0
R3(config-if)#no shutdown

R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
exit
R3(config)#interface gigabitethernet 0/
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up
0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown

Check the interface status & Routing table R1, R2 & R3

show ip interface brief

show ip route

R1(config)#router ospf 1
R1(config-router)#network 192.168.1.0 0.0.0.255 area 1
R1(config-router)#network 20.0.0.0 0.255.255.255 area 1

R2(config)#router ospf 2
R2(config-router)#network 192.168.1.0 0.0.0.255 area 1
R2(config-router)#network 30.0.0.0 0.255.255.255 area 1

R3(config)#router ospf 3
R3(config-router)#network 20.0.0.0 0.255.255.255 area 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 1
R3(config-router)#network 40.0.0.0 0.255.255.255 area 1

HSRP Configuration

R1(config-if)#standby 1 ip 192.168.1.1
R1(config-if)#standby 1 priority 110
R1(config-if)#standby 1 preempt

R2(config-if)#standby 1 ip 192.168.1.1
R2(config-if)#standby 1 priority 100
R2(config-if)#standby 1 preempt

R1#show standby brief

You might also like