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

From OnnoWiki
Jump to navigation Jump to search
(Created page with "==Topology== C1 -- R1 -- NAT R1 e0 -- NAT e1 -- C1 e0 C1 e0 -- R1 e1 ==Mikrotik== ipv6 address add address=2345::1/64 interface=ether2 ipv6 nd prefix add prefi...")
 
Line 15: Line 15:
 
==Mikrotik==
 
==Mikrotik==
  
  ipv6 address add address=2345::1/64 interface=ether2
+
  /ipv6 address add address=2345::1/64 interface=ether2
  ipv6 nd prefix add prefix=2345::/64 interface=ether2
+
  /ipv6 pool add name=myPool prefix=2345::/64  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=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.

Revision as of 12:44, 6 February 2019

Topology

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



Mikrotik

/ipv6 address add address=2345::1/64 interface=ether2
/ipv6 pool add name=myPool prefix=2345::/64  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=2345::/64 interface=ether2

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

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