Difference between revisions of "IPv6: Mikrotik: Static Routing Sedehana"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
 
  /ip address add address 192.168.122.101/24 interface=ether1
 
  /ip address add address 192.168.122.101/24 interface=ether1
 
  /ip address add address 192.168.122.102/24 interface=ether1
 
  /ip address add address 192.168.122.102/24 interface=ether1
  /ip address add address 172.16.1.1/30 interface=ether2
+
  /ip address add address 172.16.1.1/24 interface=ether2
 
  /ipv6 address add address 2001:172:16:1::1/64 interface=ether2
 
  /ipv6 address add address 2001:172:16:1::1/64 interface=ether2
  /ip address add address 192.168.1.1/30 interface=ether3
+
  /ip address add address 192.168.1.1/24 interface=ether3
 
  /ipv6 address add address 2001:192:168:1::1/64 interface=ether3
 
  /ipv6 address add address 2001:192:168:1::1/64 interface=ether3
 
  #
 
  #
Line 36: Line 36:
 
  #
 
  #
 
  #
 
  #
  /ip address add address 172.16.1.2/30 interface=ether1
+
  /ip address add address 172.16.1.2/24 interface=ether1
 
  /ipv6 address add address 2001:172:16:1::2/64 interface=ether1
 
  /ipv6 address add address 2001:172:16:1::2/64 interface=ether1
  /ip address add address 192.168.2.1/30 interface=ether2
+
  /ip address add address 192.168.2.1/24 interface=ether2
 
  /ipv6 address add address 2001:192:168:2::1/64 interface=ether2
 
  /ipv6 address add address 2001:192:168:2::1/64 interface=ether2
 
  #
 
  #
Line 50: Line 50:
  
 
  ping 192.168.2.1
 
  ping 192.168.2.1
ping ipv6 2001:192:168:2::1
 
 
  ping 2001:192:168:2::1
 
  ping 2001:192:168:2::1
  
Line 56: Line 55:
  
 
  ping 192.168.1.1
 
  ping 192.168.1.1
ping ipv6 2001:192:168:1::1
 
 
  ping 2001:192:168:1::1
 
  ping 2001:192:168:1::1
  

Latest revision as of 05:00, 4 April 2019

SR1.png


R1:

ether1 - ke Internet
ether2 - R2: ether1
ether3 - LAN

R2:

ether1 - R1: ether2
ether2 - LAN


R1:

# cek nomor interface agar sama dengan yang digunakan dengan GNS3
/interface print
#
#
/ip address add address 192.168.122.100/24 interface=ether1
/ip address add address 192.168.122.101/24 interface=ether1
/ip address add address 192.168.122.102/24 interface=ether1
/ip address add address 172.16.1.1/24 interface=ether2
/ipv6 address add address 2001:172:16:1::1/64 interface=ether2
/ip address add address 192.168.1.1/24 interface=ether3
/ipv6 address add address 2001:192:168:1::1/64 interface=ether3
#
/ip route add dst-address=192.168.2.0/24 gateway=172.16.1.2
/ipv6 route add dst-address=2001:192:168:2::/64 gateway=2001:172:16:1::2

R2:


# cek nomor interface agar sama dengan yang digunakan dengan GNS3
/interface print
#
#
/ip address add address 172.16.1.2/24 interface=ether1
/ipv6 address add address 2001:172:16:1::2/64 interface=ether1
/ip address add address 192.168.2.1/24 interface=ether2
/ipv6 address add address 2001:192:168:2::1/64 interface=ether2
#
/ip route add dst-address=192.168.1.0/24 gateway=172.16.1.1
/ipv6 route add dst-address=2001:192:168:1::/64 gateway=2001:172:16:1::1


Test

R1:

ping 192.168.2.1
ping 2001:192:168:2::1

R2:

ping 192.168.1.1
ping 2001:192:168:1::1

Cek

/ip route print
/ipv6 route print

Setting Client

LAN 1 Client:

ip 192.168.1.2/24 192.168.1.1
ip 2001:192:168:1::200/64 2001:192:168:1::1
ping 2001:192:168:1::1
ping 2001:192:168:2::1
ping 2001:192:168:2::200

LAN 2 Client:

ip 192.168.2.2/24 192.168.2.1
ip 2001:192:168:2::200/64 2001:192:168:2::1
ping 2001:192:168:2::1
ping 2001:192:168:1::1
ping 2001:192:168:1::200

Pranala Menarik