STATIC ROUTING
Contoh:
Static routing cocok dilakukan router dalam ketiga kasus di bawah ini.
1. Network 172.16.3.0/24 adalah stub network. Hanya ada satu jalur dari R2 menuju
network itu.
2. Router R1 adalah stub router. Hanya ada satu jalur menuju internet dan network-
network lainnya.
8
3. Pada gambar berikut ini, R1 mempunyai jalur tunggal menuju network 10.1.1.0/24,
10.1.2.0/24 maupun ke internet.
9
next-hop IP address, rutenya disebut next-hop static routes
exit interface, rutenya disebut directly connected static route
exit interface dan next-hop IP address, rutenya disebut fully specified static route
Contoh konfigurasi standard static route dengan next-hop IP address pada R1:
R1(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.2
R1(config)#ip route 192.168.1.0 255.255.255.0 172.16.2.2
R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.2.2
Contoh konfigurasi standard static route dengan exit interface pada R1:
R1(config)#ip route 172.16.1.0 255.255.255.0 s0/0/0
R1(config)#ip route 192.168.1.0 255.255.255.0 s0/0/0
R1(config)#ip route 192.168.2.0 255.255.255.0 s0/0/0
Contoh konfigurasi standard static route dengan exit interface dan next-hop IP address:
R1(config)#ip route 172.16.1.0 255.255.255.0 s0/0/0 172.16.2.2
R1(config)#ip route 192.168.1.0 255.255.255.0 s0/0/0 172.16.2.2
R1(config)#ip route 192.168.2.0 255.255.255.0 s0/0/0 172.16.2.2
Contoh konfigurasi default static route dengan next-hop IP address pada R1:
R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2
Contoh konfigurasi standard static route IPv6 dengan next-hop IP address pada R1:
R1(config)#ipv6 route 2001:DB8:ACAD:2::/64 2001:DB8:ACAD:4::2
R1(config)#ipv6 route 2001:DB8:ACAD:5::/64 2001:DB8:ACAD:4::2
R1(config)#ipv6 route 2001:DB8:ACAD:3::/64 2001:DB8:ACAD:4::2
Contoh konfigurasi standard static route IPv6 dengan exit interface pada R1:
R1(config)#ipv6 route 2001:DB8:ACAD:2::/64 s0/0/0
R1(config)#ipv6 route 2001:DB8:ACAD:5::/64 s0/0/0
R1(config)#ipv6 route 2001:DB8:ACAD:3::/64 s0/0/0
10
Contoh konfigurasi standard static route dengan exit interface dan next-hop IP address:
R1(config)#ipv6 route 2001:DB8:ACAD:2::/64 s0/0/0 2001:DB8:ACAD:4::2
R1(config)#ipv6 route 2001:DB8:ACAD:5::/64 s0/0/0 2001:DB8:ACAD:4::2
R1(config)#ipv6 route 2001:DB8:ACAD:3::/64 s0/0/0 2001:DB8:ACAD:4::2
11
Mengganti dengan Summary Static Route IPv4:
12
R1(config)#no ipv6 route 2001:DB8:ACAD:1::/64 2001:DB8:FEED:1::2
R1(config)#no ipv6 route 2001:DB8:ACAD:2::/64 2001:DB8:FEED:1::2
R1(config)#no ipv6 route 2001:DB8:ACAD:3::/64 2001:DB8:FEED:1::2
R1(config)#no ipv6 route 2001:DB8:ACAD:4::/64 2001:DB8:FEED:1::2
Contoh konfigurasi default static route dan backup static default route dengan AD=5.
Troubleshooting commands:
1. Show IP route
2. Show IPv6 route
3. Show IPv6 route static
4. Show IPv6 route network
13
5. traceroute
6. show ip interface brief
7. show cdp neighbors detail
8. show running-configuration
9. ping.
14