Cisco | IP SLA Tracking
Configurasi Router INTERNET
hostname INTERNETinterface Loopback1
ip address 8.8.8.8 255.255.255.255
!
interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.0
interface FastEthernet0/1
ip address 20.20.20.1 255.255.255.0
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
hostname ISP-1
interface FastEthernet0/0
ip address 10.10.10.2 255.255.255.0
ip ospf 1 area 0
interface FastEthernet0/1
ip address 1.1.1.1 255.255.255.0
ip ospf 1 area 0
router ospf 1
network 1.1.1.0 0.0.0.3 area 0
network 10.10.10.0 0.0.0.3 area 0
Configurasi Router ISP-2
hostname ISP-2
interface FastEthernet0/0
ip address 20.20.20.2 255.255.255.0
ip ospf 1 area 0
interface FastEthernet0/1
ip address 2.2.2.2 255.255.255.0
ip ospf 1 area 0
router ospf 1
network 2.2.2.2.0 0.0.0.3 area 0
network 20.20.20.0 0.0.0.3 area 0
R4(config)#INterface FA0/0
R4(config-if)#IP ADDress 1.1.1.2 255.255.255.252
R4(config-if)#NO SHutdown
R4(config)#INterface FA0/1
R4(config-if)#IP ADDress 2.2.2.2 255.255.255.252
R4(config-if)#NO SHutdown
R4(config-if)#EX
R4(config)#INterface FAstEthernet 1/0
R4(config-if)#IP ADDress 192.168.10.1 255.255.255.0
R4(config-if)#NO SHu
R4(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1 track 1
R4(config)#ip route 0.0.0.0 0.0.0.0 2.2.2.1 10
R4(config)#ip sla 1
R4(config-ip-sla)#icmp-echo 1.1.1.1 source-interface fastEthernet 0/1
R4(config-ip-sla-echo)#timeout 1000
R4(config-ip-sla-echo)#threshold 2
R4(config-ip-sla-echo)#frequency 3
R4(config)#ip sla schedule 1 life forever start-time now
R4(config)#track 1 rtr 1 reachability
R4(config-track)#exi
R4(config)#
-----------------------------------------------------------------
#TAMBHAKN SCRIPT INI AGAR DARI PC1 SATU BISA PING KE INTERNET ( 8.8.8.8)
-------------------------------------------------------------------
R4(config)#ip access-list extended 101
R4(config-ext-nacl)#permit ip 192.168.10.0 0.0.0.255 any
R4(config)#route-map NAT_ISP-1 permit 10
R4(config-route-map)#match ip address 101
R4(config-route-map)#match interface fa0/0 #description interface R4 menju ISP-1
R4(config-route-map)#exi
R4(config)#route-map NAT_ISP-2 permit 10
R4(config-route-map)#match ip address 101
R4(config-route-map)#match interface fa0/1 #description interface R4 menju ISP-2
R4(config-route-map)#exi
R4(config)#ip nat inside source route-map NAT_ISP-1 interface fa0/0 overload
R4(config)#ip nat inside source route-map NAT_ISP-2 interface fa0/1 overload
R4(config)#in
R4(config)#interface fa0/0
R4(config-if)#ip nat outside
R4(config-if)#ex
R4(config)#interface fa0/1
R4(config-if)#ip nat outside
R4(config-if)#ex
R4(config)#interface fa1/0
R4(config-if)#ip nat inside
R4(config-if)#exi
R4(config)#
Posting Komentar untuk "Cisco | IP SLA Tracking"