Static routing adalah router meneruskan paket dari sebuah network ke network yang lainnya
berdasarkan rute yang ditentukan
oleh administrator. Rute pada static routing tidak berubah, kecuali jika
diubah secara manual oleh administrator.
Case Study
Konfigurasi
Langkah 1. Memasukkan alamat IP pada setiap router.
Router1 Vyatta
Welcome to Vyatta - vyatta tty1
vyatta login : <username>
Password : <password>
vyatta@vyatta:~$show interfaces
vyatta@vyatta:~$configure
vyatta@vyatta#set system host-name router1
vyatta@router1#set interfaces ethernet eth0 address 192.168.10.1/24
vyatta@router1#set interfaces ethernet eth1 address 192.168.20.2/24
vyatta@router1#commit
vyatta@router1#save
Router2 Vyatta
Welcome to Vyatta - vyatta tty1
vyatta login : <username>
Password : <password>
vyatta@vyatta:~$show interfaces
vyatta@vyatta#set system host-name router2
vyatta@router2#set interfaces ethernet eth0 address 192.168.20.3/24
vyatta@router2#set interfaces ethernet eth1 address 192.168.30.2/24
vyatta@router2#set interfaces ethernet eth1 address 192.168.30.2/24
vyatta@router2#commit
vyatta@router2#save
Router3 Vyatta
Welcome to Vyatta - vyatta tty1
vyatta login : <username>
Password : <password>
vyatta@vyatta:~$show interfaces
vyatta@vyatta#set system host-name router3
vyatta@router3#set interfaces ethernet eth0 address 192.168.30.3/24
vyatta@router3#set interfaces ethernet eth1 address 192.168.40.1/24
vyatta@router3#set interfaces ethernet eth1 address 192.168.40.1/24
vyatta@router3#commit
vyatta@router3#save
Langkah 2. Pengaturan Static routing
Router1 Vyatta
vyatta@router1#set protocols static route 192.168.30.0/24 next-hop 192.168.20.3
vyatta@router1#set protocols static route 192.168.40.0/24 next-hop 192.168.20.3
vyatta@router1#set protocols static route 192.168.40.0/24 next-hop 192.168.20.3
vyatta@router1#set service telnet
vyatta@router1#commit
vyatta@router1#save
Router2 Vyatta
vyatta@router2#set protocols static route 192.168.10.0/24 next-hop 192.168.20.2
vyatta@router2#set protocols static route 192.168.40.0/24 next-hop 192.168.30.3
vyatta@router2#set protocols static route 192.168.40.0/24 next-hop 192.168.30.3
vyatta@router2#set service telnet
vyatta@router2#commit
vyatta@router2#save
Router3 Vyatta
vyatta@router3#set protocols static route 192.168.20.0/24 next-hop 192.168.30.2
vyatta@router3#set protocols static route 192.168.10.0/24 next-hop 192.168.30.2
vyatta@router3#set protocols static route 192.168.10.0/24 next-hop 192.168.30.2
vyatta@router3#set service telnet
vyatta@router3#commit
vyatta@router3#save
Langkah 3. Pengecekan jalur & koneksi
Router 1
vyatta@vyatta:~$ping 192.168.40.1
vyatta@vyatta:~$traceroute 192.168.40.1
Router 3
vyatta@vyatta:~$ping 192.168.10.1
vyatta@vyatta:~$traceroute 192.168.40.1
Untuk akses ke client gimana?
ReplyDeleteuntuk setiap client di masukkan alamat IP secara statik sesuai dengan network nya masing :)
Delete