Difference between revisions of "Juniper: Static Routing Sederhana"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " vtysh configure terminal ! eth0 tersambung nat0 GNS3 interface eth0 ip address 192.168.122.100/24 ip address 192.168.122.101/24 ip address 192.168.122...")
 
Line 1: Line 1:
  
  vtysh
+
  cli
  configure terminal
+
  configure
  
  ! eth0 tersambung nat0 GNS3
+
  set interfaces me0 unit 0 family inet address 192.168.122.100/24
interface eth0
+
set interfaces me0 unit 0 family inet address 192.168.122.101/24
  ip address 192.168.122.100/24
+
set interfaces me0 unit 0 family inet address 192.168.122.102/24
  ip address 192.168.122.101/24        
+
  set routing-options static route 0.0.0.0/0 next-hop  192.168.122.1/24
  ip address 192.168.122.102/24
 
  exit
 
  ip route 0.0.0.0 0.0.0.0 192.168.122.1
 
 
 
! eth1 ke client
 
interface eth1
 
  ip address 10.10.10.1/24
 
  exit
 
 
 
! eth2 ke client
 
interface eth2
 
  ip address 10.10.20.1/24
 
  exit
 
 
 
!
 
end
 
  
 +
set interfaces me1 unit 0 family inet address 10.10.10.1/24
 +
set interfaces me2 unit 0 family inet address 10.10.20.1/24
 +
exit
 +
commit
  
 
==Cek==
 
==Cek==

Revision as of 17:17, 24 December 2018

cli
configure
set interfaces me0 unit 0 family inet address 192.168.122.100/24
set interfaces me0 unit 0 family inet address 192.168.122.101/24
set interfaces me0 unit 0 family inet address 192.168.122.102/24
set routing-options static route 0.0.0.0/0 next-hop  192.168.122.1/24
set interfaces me1 unit 0 family inet address 10.10.10.1/24
set interfaces me2 unit 0 family inet address 10.10.20.1/24
exit
commit

Cek

show interface
show ip route

Pranala Menarik