61. Configure HSRP on Multilayer Switch

Опубликовано: 04 Ноябрь 2024
на канале: ITProDan
345
5

Configuring HSRP on Multilayer Switches

HSRP:

Vlan 10
Group # 10
Virtual IP - 192.168.10.1 //create virtual ip on pc gateways
Active - L3SW1
Standby - L3SW2

Vlan 20
Group # 20
Virtual IP - 192.168.20.1 //create virtual ip on pc gateways
Active - L3SW1
Standby - L3SW2


L3SW1 SVI:
Vlan 10 - 192.168.10.3 //change IP to avoid overlapping
Vlan 20 - 192.168.20.3 //change IP to avoid overlapping

L3SW2 SVI:
Vlan 10 - 192.168.10.4 //change IP to avoid overlapping
Vlan 20 - 192.168.20.4 //change IP to avoid overlapping

** We are going to modify the bandwidth of R1 int going to L3SW2
which is gi 0/0/1 to make the link going to SW1 as backup.
This will not affect the actual bandwidth of the interface.

R1:
conf t
int gi 0/0/1
bandwidth 100000
exit


L3SW1:
conf t
interface vlan 10 //configure HSRP on the vlan int
ip address 192.168.10.3 255.255.255.0
! standby (group#) ip (virtual ip addr) //syntax
standby 10 ip 192.168.10.1 //setting the virtual IP
! standby (group#) priority (priority value) //syntax
standby 10 priority 120 //setting higher priority on the int as active
! standby (group#) preempt //syntax
standby 10 preempt //to force L3Sw1 as active when return from down
exit

interface vlan 20 //configure HSRP on the vlan int
ip address 192.168.20.3 255.255.255.0
standby 20 ip 192.168.20.1 //setting the virtual IP
standby 20 priority 120 //setting higher priority on the int as active
standby 20 preempt //to force L3Sw1 as active when return from down
exit
show standby //verify HSRP status


L3SW2:
conf t
int vlan 10
ip address 192.168.10.4 255.255.255.0 //setting svi IP
standby 10 ip 192.168.10.1 //setting the virtual IP
exit

int vlan 20
ip address 192.168.20.4 255.255.255.0 //setting svi IP
standby 20 ip 192.168.20.1 //setting the virtual IP
exit
show standby


**to remove HSRP setup
L3SW1 and L3SW2:
conf t
interface vlan 10
no standby 10
exit
intface vlan 20
no standby 20
exit

PC1 and PC2 arp:
clear arp


L3SW1:
conf t
int vlan 10
ip address 192.168.10.3
vrrp 10 ip 192.168.10.1
vrrp 10 priority 120
vrrp 10 preempt
exit
int vlan 20
ip address 192.168.20.3
vrrp 20 ip 192.168.20.1
vrrp 20 priority 120
vrrp 20 preempt
exit
show standby


L3SW2:
conf t
int vlan 10
ip address 192.168.10.4
vrrp 10 ip 192.168.10.1
exit
int vlan 20
ip address 192.168.20.4
vrrp 20 ip 192.168.20.1
exit
show standby