Difference between revisions of "IPv6: Mikrotik: DHCPv6 contoh konfigurasi"

From OnnoWiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 14: Line 14:
  
 
==Mikrotik==
 
==Mikrotik==
 +
 +
Set IPv6 interface
  
 
  /ipv6 address add address=2345::1/64 interface=ether2
 
  /ipv6 address add address=2345::1/64 interface=ether2
  /ipv6 pool add name=myPool prefix=2345::/64 prefix-length=64
+
 
 +
Set DHCP Server
 +
 
 +
  /ipv6 pool add name=myPool prefix=2345::/48 prefix-length=64
 
  /ipv6 dhcp-server add name=myServer address-pool=myPool interface=ether2
 
  /ipv6 dhcp-server add name=myServer address-pool=myPool interface=ether2
 
  /ipv6 dhcp-server enable numbers=0
 
  /ipv6 dhcp-server enable numbers=0
 
 
  /ipv6 nd prefix add prefix=::/64 interface=ether2 on-link=yes autonomous=no
 
  /ipv6 nd prefix add prefix=::/64 interface=ether2 on-link=yes autonomous=no
 
  /ipv6 nd add interface=ether2 managed-address-configuration=yes other-configuration=yes advertise-dns=yes
 
  /ipv6 nd add interface=ether2 managed-address-configuration=yes other-configuration=yes advertise-dns=yes
 +
 +
Set ND Server (Pilihan Lain)
  
 
  /ipv6 nd prefix add prefix=2345::/64 interface=ether2
 
  /ipv6 nd prefix add prefix=2345::/64 interface=ether2
  
 
Penting alokasi prefix nd, satu keluarga dengan ipv6 address di interface.
 
Penting alokasi prefix nd, satu keluarga dengan ipv6 address di interface.
 +
 +
 +
==Untuk Interface bridge==
 +
 +
/ipv6 address add address=2345::1/64 interface=bridge1
 +
 +
/ipv6 pool add name=myPool prefix=2345::/48  prefix-length=64
 +
/ipv6 dhcp-server add name=myServer address-pool=myPool interface=bridge1
 +
/ipv6 dhcp-server enable numbers=0
 +
/ipv6 nd prefix add prefix=::/64 interface=bridge1 on-link=yes autonomous=no
 +
/ipv6 nd add interface=bridge1 managed-address-configuration=yes other-configuration=yes advertise-dns=yes
 +
 +
atau
 +
 +
/ipv6 nd prefix add prefix=2345::/64 interface=bridge1
 +
 +
 +
  
 
==Client==
 
==Client==

Latest revision as of 06:46, 23 July 2021

Topology

C1 -- R1 -- NAT
R1
e0 -- NAT
e1 -- C1 e0
C1
e0 -- R1 e1



Mikrotik

Set IPv6 interface

/ipv6 address add address=2345::1/64 interface=ether2

Set DHCP Server

/ipv6 pool add name=myPool prefix=2345::/48  prefix-length=64
/ipv6 dhcp-server add name=myServer address-pool=myPool interface=ether2
/ipv6 dhcp-server enable numbers=0
/ipv6 nd prefix add prefix=::/64 interface=ether2 on-link=yes autonomous=no
/ipv6 nd add interface=ether2 managed-address-configuration=yes other-configuration=yes advertise-dns=yes

Set ND Server (Pilihan Lain)

/ipv6 nd prefix add prefix=2345::/64 interface=ether2

Penting alokasi prefix nd, satu keluarga dengan ipv6 address di interface.


Untuk Interface bridge

/ipv6 address add address=2345::1/64 interface=bridge1
/ipv6 pool add name=myPool prefix=2345::/48  prefix-length=64
/ipv6 dhcp-server add name=myServer address-pool=myPool interface=bridge1
/ipv6 dhcp-server enable numbers=0
/ipv6 nd prefix add prefix=::/64 interface=bridge1 on-link=yes autonomous=no
/ipv6 nd add interface=bridge1 managed-address-configuration=yes other-configuration=yes advertise-dns=yes

atau

/ipv6 nd prefix add prefix=2345::/64 interface=bridge1



Client

OS: Ubuntu

interface tidak perlu di konfigurasi / di sentuh, karena automatis autoconfiguration.

echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/enp0s3/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_from_local 
echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_from_local 
echo 1 > /proc/sys/net/ipv6/conf/enp0s3/accept_ra_from_local
echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra_defrtr 
echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr 
echo 1 > /proc/sys/net/ipv6/conf/enp0s3/accept_ra_defrtr


Pranala Menarik