Jumat, 11 Desember 2020

Lab 23. VRRP (Virtual Router Redudancy Protocol)

 Lab 23. VRRP (Virtual Router Redudancy Protocol)

Masih sama seperti yang sebelumnya


R1 dan R2

R1(config)#default int f0/1

R1(config)#default int f0/1


PASANG VRRP DI KEDUA ROUTER


R1

R1(config)#interface FastEthernet0/1

R1(config-if)#ip address 192.168.12.1 255.255.255.0

R1(config-if)#vrrp 1 ip 192.168.12.254

R1(config-if)#vrrp 1 priority 110

R1(config-if)#vrrp 1 authentication md5 key-string cisco

R2

R2(config)#interface FastEthernet0/1

R2(config-if)#ip address 192.168.12.2 255.255.255.0

R2(config-if)#vrrp 1 ip 192.168.12.254

R2(config-if)#vrrp 1 authentication md5 key-string cisco


Config di PC


R1 dan R2

PC1> ip 192.168.12.10/24 192.168.12.254

PC2> ip 192.168.12.11/24 192.168.12.254


CEK DENGAN DO SHOW VRRP BRIEF


R1

R1(config)#do show vrrp brief

Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1

1 110 3570 Y Master 192.168.12.1 192.168.12.254 


R2

R2(config)#do show vrrp brief

Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1

1 100 3609 Y Backup 192.168.12.1 192.168.12.254

Shutdown interface f0/1 R1 (Master)

R1

R1(config-if)#sh

R1(config-if)#

*Feb 3 12:22:54.167: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Master -> Init


R1(config-if)#

*Feb 3 12:22:54.275: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor

192.168.12.2 (FastEthernet0/1) is down: interface down


R2

R2(config)#

*Feb 3 12:22:54.775: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Backup -> Master


R2

R2(config)#do show vrrp brief

Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1

1 100 3609 YMaster 192.168.12.2 192.168.12.254

R1

R1(config)#do show vrrp brief

Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1

1 110 3570 Y Init 0.0.0.0 192.168.12.254

Lab 22. HSRP Load Balancing

 Lab 22. HSRP Load Balancing

Konfigurasikan IP Address pada PC

PC-1 dan PC-2

PC1> ip 192.168.12.10/24 192.168.12.254
PC2> ip 192.168.12.11/24 192.168.12.253

Konfigurasikan command ini pada R1

R1

R1(config)#interface FastEthernet0/1
R1(config-if)#standby 2 ip 192.168.12.253
R1(config-if)#standby 2 preempt
R1(config-if)#standby 2 authentication md5 key-string cisco
R1(config-if)#standby 2 priority 110

R2

R2(config)#interface FastEthernet0/1
R2(config-if)#standby 2 ip 192.168.12.253
R2(config-if)#standby 2 preempt
R2(config-if)#standby 2 authentication md5 key-string cisco

Verifikasi

R1 dan R2

R1(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 100 P
Standby 192.168.12.2 local 192.168.12.254
Fa0/1 2 110 P Active local 192.168.12.2 192.168.12.253
!
R2(config-if)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Fa0/1 1 110 P Active local 192.168.12.1 192.168.12.254 Fa0/1 2 100 P
Standby 192.168.12.1 local 192.168.12.253

Lab 21. HSRP – IP SLA

 Lab 21. HSRP – IP SLA

Hapus config sebelumnya

R2

R2(config)#no track 1 ip route 8.8.8.8 255.255.255.255 reachability

!

R2(config)#ip sla 1

R2(config-ip-sla)#icmp-echo 8.8.8.8 source-interface f0/1

R2(config-ip-sla-echo)#frequency 10

R2(config-ip-sla-echo)#timeout 5000

R2(config-ip-sla-echo)#track 1 ip sla 1

reachability R2(config-track)#exit

R2(config)#ip sla schedule 1 start-time now life forever

!

* untuk fitur trackingnya sudah dipasang bekas konfigurasi

sebelumnya


cek

R2

R2(config)#do show standby brief

 P indicates configured to preempt.

 |

Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1

110 P Active local 192.168.12.1 192.168.12.254


matikan loopback R3 , jadi ip 8.8.8.8 tidak bisa di ping


R3

R3(config)#interface lo0

R3(config-if)#shutdown

R3(config-if)#exit


status tracking menjadi down dari yang sebelumnya up kemudian standby


R2

*Feb 3 12:04:53.907: %TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down



priority nya menjadi 90 dengan state standby


R2

R2(config)#do show standby brief

P indicates configured to preempt.

Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 90 P

Standby 192.168.12.1 local 192.168.12.254


AKTIFKAN LAGI LOOPBACK DI R3


R3

R3(config)#int lo0

R3(config-if)#no sh

R3(config-if)#ex

R2

R2(config)#

*Feb 3 12:07:18.907: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up

*Feb 312:07:19.459:%HSRP-5-STATECHANGE:FastEthernet0/1Grp1stateStandby

-> Active


berubah menjadi up dan active  

prioritynya yaitu 110


R2

R2(config)#do show standby brief

 P indicates configured to preempt.

 |

Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 110

P Active local 192.168.12.1 192.168.12.254 


Lab 20. HSRP Track Route

 Lab 20. HSRP Track Route 

R2

R2(config)#track 1 ip route 8.8.8.8/32 reachability

R2(config-track)#interface FastEthernet0/1

R2(config-if)#standby 1 track 1 decrement 20


Cek pastikan R2 memiliki route 8.8.8.8/32


R2

R2#show ip route eigrp

 8.0.0.0/32 is subnetted, 1 subnets

D 8.8.8.8 [90/158720] via 192.168.12.1, 00:06:05, FastEthernet0/1

 13.0.0.0/24 is subnetted, 1 subnets

D 13.13.13.0 [90/30720] via 192.168.12.1, 00:00:44, FastEthernet0/1

R2

R2(config)#do show standby brief

 P indicates configured to preempt.

 |

Interface Grp Pri P State Active Standby Virtual IP Fa0/1

1 110 P Active local 192.168.12.1 192.168.12.254


R3

R3(config)#interface lo0

R3(config-if)#shutdown

R3(config-if)#exit 


Kita lihat statusnya ,berubah menjadi standby dengan nilai priority 90.


R2

R2(config)#

*Feb 3 11:03:03.843: %TRACKING-5-STATE: 1 ip route 8.8.8.8/32

reachability Up->Down

R2(config)#

*Feb 3 11:03:05.335: %HSRP-5-STATECHANGE: FastEthernet0/1 Grp

1 state Active -> Speak

R2(config)#

*Feb 3 11:03:16.435: %HSRP-5-STATECHANGE: FastEthernet0/1 Grp

1 state Speak -> Standby

!

R2(config)#do show standby brief

P indicates configured to preempt.

 |

Interface Grp Pri P State Active Standby Virtual IP Fa0/1

1 90 P Standby 192.168.12.1 local 192.168.12.254


R1 akan berubah menjadi active , priotity 100

R1

R1#show standby brief

 P indicates configured to preempt.

 |

Interface Grp Pri P State Active Standby Virtual IP Fa0/1

1 100 P Active local 192.168.12.2 192.168.12.254

Aktifkan kembali interface loopback R3

R3

R3(config)#int lo0

R3(config-if)#no sh

R3(config-if)#ex

 

Lab 19. HSRP (Hot Standby Router Protocol)

 Lab 19. HSRP (Hot Standby Router Protocol)


konfigurasi berikut ini :

R1
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 13.13.13.1 255.255.255.0
R1(config-if)#no shutdown
!
R1(config-if)#interface FastEthernet0/1
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#standby 1 ip 192.168.12.254
R1(config-if)#standby 1 preempt
R1(config-if)#standby 1 authentication md5 key-string cisco
!
R1(config-if)#router eigrp 1
R1(config-router)#net 0.0.0.0
R1(config-router)#no auto-summary

R2
R2(config)#interface FastEthernet0/0
R2(config-if)#ip address 23.23.23.2
255.255.255.0 R2(config-if)#no shutdown
!
R2(config-if)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#standby 1 ip 192.168.12.254
R2(config-if)#standby 1 preempt
R2(config-if)#standby 1 authentication md5 key-string cisco
R2(config-if)#no shutdown
!
R2(config-if)#router eigrp 1
R2(config-router)#net 0.0.0.0
R2(config-router)#no auto-summary

R3
R3(config)#interface f0/0
R3(config-if)#ip address 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
!
R3(config-if)#interface f0/1
R3(config-if)#ip address 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
!
R3(config-if)#interface Loopback 0
R3(config-if)#ip address 8.8.8.8 255.255.255.255
!
R3(config-if)#router eigrp 1
R3(config-router)#net 0.0.0.0
R3(config-router)#no auto-summary

Konfigurasi di PC

PC1 dan PC2
PC1> ip 192.168.12.10/24 192.168.12.254
PC2> ip 192.168.12.11/24 192.168.12.254 

Verifikasi

R1 dan R2
R1#show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1
100 P Standby192.168
.12.2 local 192.168.12.254
!
R2(config-if)#do sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 110
P Active local 192.168.12.1 192.168.12.254

Ping 8.8.8.8 -t pada PC, dan Shutdown interface fa0/1 pada router master

R2
R2(config)#int f0/1
R2(config-if)#shutdown
R2(config-if)#exit

PC-1
PC2> ping 8.8.8.8
84 bytes from 8.8.8.8 icmp_seq=2 ttl=254 time=13.678 ms
84 bytes from 8.8.8.8 icmp_seq=3 ttl=254 time=12.628 ms 8.8.8.8
icmp_seq=1 timeout
8.8.8.8 icmp_seq=22 timeout
84 bytes from 8.8.8.8 icmp_seq=7 ttl=254 time=30.278 ms
84 bytes from 8.8.8.8 icmp_seq=8 ttl=254 time=23.097 ms 84 bytes from
8.8.8.8 icmp_seq=9 ttl=254 time=23.630 ms


Lab 18. Port Security - Violation Action

 Lab 18. Port Security - Violation Action 



SW1

Switch(config)#no errdisable recovery interval 60
Switch(config)#no errdisable recovery cause psecure-violation
Switch(config)#default int f1/0/1

R1

Router(config)#default int f0/0

R1

Router(config)#do show int f0/0 | i add
Hardware is Gt96k FE, address is 0021.d831.1bda (bia0021.d831.1bda)

SW 1

Switch(config)#interface FastEthernet 1/0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security mac-address 0021.d831.1bda
Switch(config-if)#switchport port-security violation restrict

R1

Router(config)#int F0/0
Router(config-if)#mac-address aaaa.bbbb.cccc
Router(config-if)#exit

VERIFIKASI

SW 1

Switch(config)#
*Mar 1 00:30:44.419: %PORT_SECURITY-2-PSECURE_VIOLATION: Security
violation occurred, caused by MAC address aaaa.bbbb.cccc on port
FastEthernet1/0/1.
*Mar 1 00:30:51.902: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Vlan1, changed state to up
*Mar 1 00:30:52.699: %PORT_SECURITY-2-PSECURE_VIOLATION: Security
violation occurred, caused by MAC address aaaa.bbbb.cccc on port
FastEthernet1/0/1.

SW 1

Switch(config)#do show port-security interface
f1/0/1 Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict
Aging Time : 0 mins
Aging Type : Absolute Secure Static
Address Aging : Disabled Maximum
MAC Addresses : 1
Total MAC Addresses : 1 Configured
MAC
Addresses : 1 Sticky
MAC Addresses : 0
Last Source Address:Vlan : aaaa.bbbb.cccc:1
Security Violation Count : 5

Lab 17. Port Security - Violation Recovery

 Lab 17. Port Security - Violation Recovery 

 Kali ini kita akan membuat recovery otomatis tanpa harus shutdown dan no shutdown
Kondisi Awal 


SW 1

Switch#show int f1/0/1
FastEthernet1/0/1 is down, line protocol is down (err-disabled)

SW 1

Switch(config)#errdisable recovery cause psecure-violation
Switch(config)#errdisable recovery interval 60

SW 1

 Switch(config)#
*Mar 1 00:20:57.376: %PM-4-ERR_RECOVER: Attempting to recover from
psecure- violation err-disable state on Fa1/0/1
*Mar 1 00:21:01.243: %LINK-3-UPDOWN: Interface FastEthernet1/0/1,
changed state to up
*Mar 1 00:21:02.250: %LINEPROTO-5-UPDOWN: Line protocol on
Interface FastEthernet1/0/1, changed state to up
!
Switch(config)#do show int f1/0/1
FastEthernet1/0/1 is up, line protocol is up (connected) 


LAB 1 FORTIGATE BASIC KONFIG

BASIC KONFIG FORTIGATE     Assalamualaikum Warahmatullahi Wabarakaatuh.....       Yaa...  jadi kali ini saya akan menjelaskan tutorial basic...