Setting VRRP Cisco – GNS3 Lab16

Setting VRRP (Virtual Router Redundancy Protocol) Cisco – GNS3 Lab16

  • R1 FastEthernet 0/0 : 10.10.10.1
  • R1 FastEthernet 0/1 : 192.168.1.2
  • R1 VRRP : 192.168.1.1
  • Priority : 200 (Master)
  • R2 FastEthernet 0/0 : 20.20.20.1
  • R2 FastEthernet 0/1 : 192.168.1.3
  • R2 VRRP : 192.168.1.1
  • Priority : 100 (Backup)
  • R3 FastEthernet 0/0 : 10.10.10.2
  • R2 FastEthernet 0/1 : 20.20.20.2
  • R3 FastEthernet 1/0 : 192.168.249.10

Konfigurasi

  • R1 – IP address & Route
R1# configure terminal
R1(config)# interface fastEthernet 0/0
R1(config-if)# ip address 10.10.10.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface fastEthernet 0/1
R1(config-if)# ip address 192.168.1.2 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config-if)# ip route 0.0.0.0 0.0.0.0 10.10.10.2
  • R1 – VRRP
R1(config)# interface fastEthernet 0/1
R1(config-if)# vrrp 1 ip 192.168.1.1
R1(config-if)# vrrp 1 priority 200
R1(config-if)# exit

  • R2 – IP address & Route
R2# configure terminal
R2(config)# interface fastEthernet 0/0
R2(config-if)# ip address 20.20.20.1 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# interface fastEthernet 0/1
R2(config-if)# ip address 192.168.1.3 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# ip route 0.0.0.0 0.0.0.0 20.20.20.2
  • R2 – VRRP
R2(config)# interface fastEthernet 0/1
R2(config-if)# vrrp 1 ip 192.168.1.1
R2(config-if)# vrrp 1 priority 100
R2(config-if)# exit

  • R3 – IP address & Route
R3# configure terminal
R3(config)# interface fastEthernet 1/0
R3(config-if)# ip address 192.168.249.10 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# interface fastEthernet 0/0
R3(config-if)# ip address 10.10.10.2 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# interface fastEthernet 0/1
R3(config-if)# ip address 20.20.20.2 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# ip route 0.0.0.0 0.0.0.0 192.168.249.2
R3(config)# ip route 192.168.1.0 255.255.255.0 10.10.10.1
R3(config)# ip route 192.168.1.0 255.255.255.0 20.20.20.1

Pengujian VRRP

  • Test ping dari PC1 ke virtual IP
  • Ping dan traceroute ke 8.8.8.8 > paket dilewatkan ke R1 (Master)
PC1> ip 192.168.1.10/24 192.168.1.1
Checking for duplicate address...
PC1 : 192.168.1.10 255.255.255.0 gateway 192.168.1.1

PC1> show ip

NAME        : PC1[1]
IP/MASK     : 192.168.1.10/24
GATEWAY     : 192.168.1.1
DNS         : 8.8.8.8
MAC         : 00:50:79:66:68:00
LPORT       : 10028
RHOST:PORT  : 127.0.0.1:10029
MTU:        : 1500

PC1> ping 192.168.1.1
84 bytes from 192.168.1.1 icmp_seq=1 ttl=255 time=15.413 ms
84 bytes from 192.168.1.1 icmp_seq=2 ttl=255 time=15.248 ms
84 bytes from 192.168.1.1 icmp_seq=3 ttl=255 time=15.392 ms
84 bytes from 192.168.1.1 icmp_seq=4 ttl=255 time=15.445 ms
84 bytes from 192.168.1.1 icmp_seq=5 ttl=255 time=15.372 ms

PC1> ping 8.8.8.8
84 bytes from 8.8.8.8 icmp_seq=1 ttl=126 time=134.856 ms
84 bytes from 8.8.8.8 icmp_seq=2 ttl=126 time=150.000 ms
84 bytes from 8.8.8.8 icmp_seq=3 ttl=126 time=419.359 ms
84 bytes from 8.8.8.8 icmp_seq=4 ttl=126 time=149.939 ms
84 bytes from 8.8.8.8 icmp_seq=5 ttl=126 time=119.986 ms

PC1> trace 8.8.8.8
trace to 8.8.8.8, 8 hops max, press Ctrl+C to stop
 1   192.168.1.2   15.465 ms  15.399 ms  15.385 ms
 2   10.10.10.2   45.346 ms  45.127 ms  44.607 ms
 3   192.168.249.2   60.229 ms  60.157 ms  60.237 ms

  • Pengujian tambahan, matikan R1
  • traceroute ke 8.8.8.8 > paket dilewatkan ke R2 (Backup)
PC1> trace 8.8.8.8
trace to 8.8.8.8, 8 hops max, press Ctrl+C to stop
 1   192.168.1.3   15.227 ms  15.381 ms  15.204 ms
 2   20.20.20.2   45.146 ms  45.126 ms  45.060 ms
 3   192.168.249.2   60.106 ms  60.040 ms  60.064 ms

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.