Dengan menggunakan Offset List, maka yang akan kita rubah adalah nilai hop count metric dari RIP.
Tentang penggunaan command Offset List :
1. Hanya berfungsi routing RIP dan EIGRP
2. Pada RIP digunakan untuk menambah existing hop count
3. Pada EIGRP digunakan untuk menambah existing nilai delay
4. Untuk memberikan pengaruh ke semua network, gunakan command offset-list 0
Lab 8 - RIP - Filtering - Offset List
Topologi yang digunakan masih sama dengan pada Lab 7 :
Skenario pada lab kali ini :
- All router akan advertise IP Loopback masing - masing ke RIP
- R1 akan melakukan filter terhadap IP Loopback R3 menggunakan Offset List
Konfigurasi R1 :
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
!
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
!
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
Konfigurasi R2 :
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
!
router rip
version 2
network 2.0.0.0
network 12.0.0.0
network 23.0.0.0
no auto-summary
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
!
router rip
version 2
network 2.0.0.0
network 12.0.0.0
network 23.0.0.0
no auto-summary
Konfigurasi R3 :
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
!
router rip
version 2
network 3.0.0.0
network 23.0.0.0
no auto-summary
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
!
router rip
version 2
network 3.0.0.0
network 23.0.0.0
no auto-summary
R1#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 12.12.12.2, 00:00:12, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
R 3.3.3.3 [120/2] via 12.12.12.2, 00:00:12, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
R 23.23.23.0 [120/1] via 12.12.12.2, 00:00:12, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 12.12.12.2, 00:00:12, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
R 3.3.3.3 [120/2] via 12.12.12.2, 00:00:12, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
R 23.23.23.0 [120/1] via 12.12.12.2, 00:00:12, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
Routing entry for 3.3.3.3/32
Known via "rip", distance 120, metric 2
Redistributing via rip
Last update from 12.12.12.2 on FastEthernet0/0, 00:00:11 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 12.12.12.2, 00:00:11 ago, via FastEthernet0/0
Route metric is 2, traffic share count is 1
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/36/52 ms
Kemudian kita coba konfigurasi offset-list di R2 agar IP 3.3.3.3 tidak bisa diakses dari R1 :
R2(config)#access-list 1 permit host 3.3.3.3
R2(config)#router rip
R2(config-router)#offset-list 1 out 16 fa0/0
R2(config)#router rip
R2(config-router)#offset-list 1 out 16 fa0/0
Nilai offset disetting 16, agar routing 3.3.3.3 menjadi inaccessible sehingga tidak dimasukkan kedalam routing table, RIP hanya bisa maksimal 15 hop count saja.
Kita cek di R1 untuk pastikan routing 3.3.3.3 sudah tidak berada didalam routing table.
R1(config)#do sh ip route 3.3.3.3
% Network not in table]
% Network not in table]
Kita cek juga pake command debug ip rip di R1 :
R1(config)#do debug ip rip
R1(config)#
*Mar 1 00:26:02.487: RIP: received v2 update from 12.12.12.2 on FastEthernet0/0
*Mar 1 00:26:02.487: 2.2.2.2/32 via 0.0.0.0 in 1 hops
*Mar 1 00:26:02.491: 3.3.3.3/32 via 0.0.0.0 in 16 hops (inaccessible)
*Mar 1 00:26:02.495: 23.23.23.0/24 via 0.0.0.0 in 1 hops
*Mar 1 00:26:02.487: RIP: received v2 update from 12.12.12.2 on FastEthernet0/0
*Mar 1 00:26:02.487: 2.2.2.2/32 via 0.0.0.0 in 1 hops
*Mar 1 00:26:02.491: 3.3.3.3/32 via 0.0.0.0 in 16 hops (inaccessible)
*Mar 1 00:26:02.495: 23.23.23.0/24 via 0.0.0.0 in 1 hops
Tidak ada komentar:
Posting Komentar