Post

Redundancy Protocols Lab

LAB for studiy the diffrence between redundncy protocols

Redundancy Protocols Lab

1. Overview of Redundancy Protocols

What meant by redundancy network

Redundancy in networking refers to the practice of incorporating backup or duplicate components, such as links, devices, or paths, to ensure continuous network operation in the event of a failure. The primary goal of redundancy is to minimize downtime, maintain high availability, and ensure reliability. Redundant networks are critical for businesses and services that require uninterrupted connectivity, such as data centers, financial institutions, and healthcare systems.

Top Redundancy Protocols

1. HSRP (Hot Standby Router Protocol)

  • Developed by: Cisco (proprietary protocol).

  • Purpose: Provides gateway redundancy by creating a virtual router (with a virtual IP and MAC address) shared between two or more physical routers.

  • How it works:

    • One router is elected as the active router (handles all traffic for the virtual IP).

    • The other routers are in standby mode (ready to take over if the active router fails).

    • Routers exchange hello messages to monitor each other’s status.

  • Key features:

    • Preemption: Allows a higher-priority router to take over as active.

    • Tracking: Monitors interfaces or routes and adjusts priorities dynamically.

  • Limitations:

    • Only one active router at a time (no load balancing).

    • Cisco proprietary, so it works only with Cisco devices.

2. GLBP (Gateway Load Balancing Protocol)

  • Developed by: Cisco (proprietary protocol).

  • Purpose: Provides both redundancy and load balancing across multiple routers.

  • How it works:

    • Multiple routers form a GLBP group and share a virtual IP address.

    • Each router in the group is assigned a unique virtual MAC address.

    • Hosts on the LAN are distributed across the routers using these virtual MACs, enabling load balancing.

    • If one router fails, the others continue to handle traffic.

  • Key features:

    • Load balancing: Traffic is distributed across multiple routers.

    • Redundancy: Backup routers take over if the primary fails.

    • Supports up to 4 active routers in a group.

  • Limitations:

    • Cisco proprietary, so limited to Cisco devices.

3. VRRP (Virtual Router Redundancy Protocol)

  • Developed by: IETF (open standard, defined in RFC 3768).

  • Purpose: Provides gateway redundancy similar to HSRP but is vendor-neutral.

  • How it works:

    • Multiple routers form a VRRP group and share a virtual IP address.

    • One router is elected as the master router (handles traffic for the virtual IP).

    • The other routers are in backup mode (ready to take over if the master fails).

    • Routers exchange advertisements to monitor each other’s status.

  • Key features:

    • Preemption: Allows a higher-priority router to become the master.

    • Open standard: Works across different vendors’ devices.

  • Limitations:

    • No native load balancing (only redundancy).

    • Less efficient load distribution compared to GLBP.

2. Topology

![[Pasted image 20250307201636.png]]

the mesh topology is used cause it suited the redundancy configuration

2.1 IP Table

Rudndncy ProtocolDeviceInterfaceIPMaskGateway
/ISPGi0/0192.168.1.1255.255.255.252/
/ISPGi0/1192.168.1.5255.255.255.252/
/ISPGi0/2192.168.1.9255.255.255.252/
/ISPGi0/3192.168.1.13255.255.255.252/
/ISPGi0/4192.168.1.17255.255.255.252/
/ISPGi0/5192.168.1.21255.255.255.252/
/ISPGi0/6DHCP255.255.255.252/
HSRPR1Gi0/0192.168.1.2255.255.255.252/
HSRPR1Gi0/1192.168.10.1255.255.255.0/
HSRPR1Gi0/2192.168.11.1255.255.255.0/
HSRPR2Gi0/0192.168.1.6255.255.255.252/
HSRPR2Gi0/1192.168.10.2255.255.255.0/
HSRPR2Gi0/2192.168.11.2255.255.255.0/
HSRPLinux1e0192.168.10.10255.255.255.0192.168.20.254
HSRPLinux2e0192.168.11.10255.255.255.0192.168.21.254
VRRPR3Gi0/0192.168.1.10255.255.255.252/
VRRPR3Gi0/1192.168.20.1255.255.255.0/
VRRPR3Gi0/2192.168.21.1255.255.255.0/
VRRPR4Gi0/0192.168.1.14255.255.255.252/
VRRPR4Gi0/1192.168.20.2255.255.255.0/
VRRPR4Gi0/2192.168.21.2255.255.255.0/
VRRPLinux3e0192.168.20.10255.255.255.0192.168.20.254
VRRPLinux4e0192.168.21.10255.255.255.0192.168.21.254
GLBPR5Gi0/0192.168.1.18255.255.255.252/
GLBPR5Gi0/1192.168.30.1255.255.255.0/
GLBPR5Gi0/2192.168.31.1255.255.255.0/
GLBPR6Gi0/0192.168.1.22255.255.255.252/
GLBPR6Gi0/1192.168.30.2255.255.255.0/
GLBPR6Gi0/2192.168.31.2255.255.255.0/
GLBPLinux5e0192.168.30.10255.255.255.0192.168.30.254
GLBPLinux6e0192.168.31.10255.255.255.0192.168.31.254

2.2 images

DeviceImage name
Routervios-adventerprisek9-m.spa.159-3.m6
Switchvios_l2-adventerprisek9-m.ssa.high_iron_20200929
PCTinyCore Linux

3 Device Configuration

3.1 ISP Router Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
en

config t

int gi0/0

ip address 192.168.1.1 255.255.255.252

no sh

int gi0/1

ip address 192.168.1.5 255.255.255.252

no sh

int gi0/2

ip add 192.168.1.9 255.255.255.252

no sh

int gi0/3

ip add 19.168.1.13 255.255.255.252

no sh

int gi0/4

ip add 192.168.1.17 255.255.255.252

no sh

int gi0/5

ip add 192.168.1.21 255.255.255.252

no sh

exit

router ospf 1

network 192.168.1.0 0.0.0.3 area 0

network 192.168.1.4 0.0.0.3 area 0

network 192.168.1.8 0.0.0.3 area 0

network 192.168.1.12 0.0.0.3 area 0

network 192.168.1.16 0.0.0.3 area 0

network 192.168.1.20 0.0.0.3 area 0

end

wr

3.2 HSRP Configuration

R1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
en

config t

int gi0/0

ip address 192.168.1.2 255.255.255.252

no sh

int gi0/1

ip address 192.168.10.1 255.255.255.0

standby 1 ip 192.168.10.254

standby 1 priority 110

standby 1 preempt

no sh

int gi0/2

ip address 192.168.11.1 255.255.255.0

standby 2 ip 192.168.11.254

standby 2 priority 110

standby 2 preempt

no sh

exit

router ospf 1

network 192.168.10.0 0.0.0.255 area 0

network 192.168.11.0 0.0.0.255 area 0

network 192.168.1.0 0.0.0.3 area 0

end

wr

R2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
en

config t

int gi0/0

ip address 192.168.1.6 255.255.255.252

no sh

int gi0/1

ip address 192.168.10.2 255.255.255.0

standby 1 ip 192.168.10.254

standby 1 priority 90

standby 1 preempt

no sh

int gi0/2

ip address 192.168.11.2 255.255.255.0

standby 2 ip 192.168.11.254

standby 2 priority 90

standby 2 preempt

no sh

exit

router ospf 1

network 192.168.10.0 0.0.0.255 area 0

network 192.168.11.0 0.0.0.255 area 0

network 192.168.1.4 0.0.0.3 area 0

end

wr

3.3 VRRP Configuration

R3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
en

config t

int gi0/0

ip address 192.168.1.10 255.255.255.252

no sh

int gi0/1

ip address 192.168.20.1 255.255.255.0

vrrp 1 ip 192.168.20.254

vrrp 1 priority 110

vrrp 1 preempt

no sh

int gi0/2

ip address 192.168.21.1 255.255.255.0

vrrp 2 ip 192.168.21.254

vrrp 2 priority 110

vrrp 2 preempt

no sh

exit

router ospf 1

network 192.168.20.0 0.0.0.255 area 0

network 192.168.21.0 0.0.0.255 area 0

network 192.168.1.8 0.0.0.3 area 0

end

wr

R4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
en

config t

int gi0/0

ip address 192.168.1.14 255.255.255.252

no sh

int gi0/1

ip address 192.168.20.2 255.255.255.0

vrrp 1 ip 192.168.20.254

vrrp 1 priority 90

vrrp 1 preempt

no sh

int gi0/2

ip address 192.168.21.2 255.255.255.0

vrrp 2 ip 192.168.21.254

vrrp 2 priority 90

vrrp 2 preempt

no sh

exit

router ospf 1

network 192.168.20.0 0.0.0.255 area 0

network 192.168.21.0 0.0.0.255 area 0

network 192.168.1.12 0.0.0.3 area 0

end

wr

3.4 GLBP Configuration

R5

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
en

config t

int gi0/0

ip address 192.168.1.18 255.255.255.252

no sh

int gi0/1

ip address 192.168.30.1 255.255.255.0

glbp 1 ip 192.168.30.254

glbp 1 priority 110

glbp 1 preempt

glbp 1 load-balancing round-robin

no sh

int gi0/2

ip address 192.168.31.1 255.255.255.0

glbp 2 ip 192.168.31.254

glbp 2 priority 110

glbp 2 preempt

glbp 2 load-balancing round-robin

no sh

exit

router ospf 1

network 192.168.30.0 0.0.0.255 area 0

network 192.168.31.0 0.0.0.255 area 0

network 192.168.1.16 0.0.0.3 area 0

end

wr

R6

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
en

config t

int gi0/0

ip address 192.168.1.22 255.255.255.252

no sh

int gi0/1

ip address 192.168.30.2 255.255.255.0

glbp 1 ip 192.168.30.254

glbp 1 priority 90

glbp 1 preempt

glbp 1 load-balancing round-robin

no sh

int gi0/2

ip address 192.168.31.2 255.255.255.0

glbp 2 ip 192.168.31.254

glbp 2 priority 90

glbp 2 preempt

glbp 2 load-balancing round-robin

no sh

exit

router ospf 1

network 192.168.30.0 0.0.0.255 area 0

network 192.168.31.0 0.0.0.255 area 0

network 192.168.1.20 0.0.0.3 area 0

end

wr

3.5 Switches Configuration

1
2
3
4
5
6
7
8
9
enable
configure terminal
spanning-tree mode rapid-pvst
interface range gi0/1 - 24
spanning-tree portfast
exit
spanning-tree uplinkfast
end
write memory
This post is licensed under CC BY 4.0 by the author.