Facebook SDK


Topologi :

ACL :

  • Deny network 10.10.10.0/24 (Inteface loopback) berkomunikasi dengan
  • 23.23.23.3/24 (IP Server)
  • Deny host 192.168.100.2/24 berkomunikasi dengan 23.23.23.3/24 (IP Server)
  • Permit host dan network lainnya.

Konfigurasi :

Pertama, setting IP Address beserta netmask di semua device yang sesuia topologi.

Sakti­R1(config)#interface fa0/0
Sakti­R1(config­if)#no shutdown
Sakti­R1(config­if)#ip address 23.23.23.2 255.255.255.0
Sakti­R1(config­if)#exit
Sakti­R1(config)#interface fa0/1
Sakti­R1(config­if)#no shutdown
Sakti­R1(config­if)#ip address 22.22.22.2 255.255.255.0
Sakti­R1(config­if)#exit
Sakti­R1(config)#
Sakti­R2(config)#interface loopback 0
Sakti­R2(config­if)#ip address 10.10.10.1 255.255.255.0
Sakti­R2(config)#interface fa0/0
Sakti­R2(config­if)#no shutdown
Sakti­R2(config­if)#ip address 22.22.22.3 255.255.255.0
Sakti­R2(config­if)#exit
Sakti­R2(config)#interface fa0/1
Sakti­R2(config­if)#no shutdown
Sakti­R2(config­if)#ip address 192.168.100.1 255.255.255.0
Sakti­R2(config­if)#exit
Sakti­R2(config)#

Note :

Secara default interface loopback tidak ada. Fungsi dari interface loopback ini adalah sama seperti logical interface. Dapat digunakan ketika ada keterbatasan resources LAN saat ngelab. Berbeda dengan interface biasa, secara otomatis interface ini akan up tanpa kita. ketikkan command no shutdown.

Setting routing tipe OSPF agar antar network dapat terhubung

Sakti­R1(config)#router ospf 1
Sakti­R1(config­router)#network 23.23.23.0 0.0.0.255 area 0
Sakti­R1(config­router)#network 22.22.22.0 0.0.0.255 area 0
Sakti­R1(config­router)#exit
Sakti­R1(config)#
Sakti­R2(config)#router ospf 1
Sakti­R2(config­router)#network 10.10.10.0 0.0.0.255 area 0
Sakti­R2(config­router)#network 192.168.100.0 0.0.0.255 area 0
Sakti­R2(config­router)#network 22.22.22.0 0.0.0.255 area 0
Sakti­R2(config­router)#exit
Sakti­R2(config)#

Selanjutnya, kita konfigurasikan Access-List di Sakti-R1. Mengapa di Sakti-R? Ingat, Konsep untuk Standard Access-List adalah close to the destination router.

Sakti­R1(config)#access­list 1 deny 10.10.10.0 0.0.0.255
Sakti­R1(config)#access­list 1 deny host 192.168.100.2
Sakti­R1(config)#access­list 1 permit any
Sakti­R1(config)#

Selanjutnya,kita assign ke interface yang terdekat dengan destination

Sakti­R1(config)#interface fa0/0
Sakti­R1(config­if)#ip access­group 1 out
Sakti­R1(config­if)#exit
Sakti­R1(config)#

Bisa dilihat konfigurasi access-list nya :

Sakti­R1#show access­lists 
Standard IP access list 1
10 deny 10.10.10.0 0.0.0.255
20 deny host 192.168.100.2
30 permit any
Sakti­R1#

Bisa dilihat pula di :

Sakti­R1#show ip interface fa0/0
FastEthernet0/0 is up, line protocol is up (connected)
Internet address is 23.23.23.2/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is 1
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
­­More­­
Sakti­R1#

Sakti-PC1. Hasilnya :

Packet Tracer PC Command Line 1.0
C:>ping 23.23.23.3
Pinging 23.23.23.3 with 32 bytes of data:
Reply from 22.22.22.2: Destination host unreachable.
Reply from 22.22.22.2: Destination host unreachable.
Reply from 22.22.22.2: Destination host unreachable.
Reply from 22.22.22.2: Destination host unreachable.
Ping statistics for 23.23.23.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:>

Cek dengan PC lain.Misal dengan Sakti-PC2 yang mempunyai IP Address 192.168.100.3/24

Packet Tracer PC Command Line 1.0
C:>ping 23.23.23.3
Pinging 23.23.23.3 with 32 bytes of data:
Request timed out.
Reply from 23.23.23.3: bytes=32 time=31ms TTL=126
Reply from 23.23.23.3: bytes=32 time=28ms TTL=126
Reply from 23.23.23.3: bytes=32 time=26ms TTL=126
Ping statistics for 23.23.23.3:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli­seconds:
Minimum = 26ms, Maximum = 31ms, Average = 28ms
C:>

Untuk testing dari interface loopback bisa dengan :

Sakti­R2#ping
Protocol [ip]: ip
Target IP address: 23.23.23.3
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.10.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100­byte ICMP Echos to 23.23.23.3, timeout is 2
seconds:
Packet sent with a source address of 10.10.10.1
UUUUU
Success rate is 0 percent (0/5)
Sakti­R2#

Post a Comment

Previous Post Next Post