Topologi
![](https://aryapramudika.com/wp-content/uploads/2021/08/junos-static-routing.png?w=779)
Interfaces
R1
em0 –> em0 R2
em1 –> e0 PC1
R2
em0 –> em0 R1
em1 –> e0 PC2
Konfigurasi R1
Hostname dan Root Password
set system host-name R1
set system root-authentication plain-text-password
commit
IP Address
set interface em0.0 family inet address 10.10.10.1/30
set inteface em1.0 family inet address 172.16.1.1/24
commit
Konfigurasi R2
Hostname dan Root Password
set system host-name R1
set system root-authentication plain-text-password
commit
IP Address
set interfaces em0.0 family inet address 10.10.10.2/30
set interfaces em1.0 family inet address 172.16.2.1/24
commit
Konfigurasi PC1
IP Address
ip 172.16.1.2/24 172.16.1.1
Konfigurasi PC2
IP Address
ip 172.16.2.2/24 172.16.2.1
Static Routing
R1
set routing-options static route 172.16.2.0/24 next-hop 10.10.10.2
commit
R2
set routing-options static route 172.16.1.0/24 next-hop 10.10.10.1
commit
Test Ping dari PC1 ke PC2 dan sebaliknya
![](https://aryapramudika.com/wp-content/uploads/2021/08/image-97.png?w=737)
![](https://aryapramudika.com/wp-content/uploads/2021/08/image-98.png?w=737)