Difference between revisions of "IPv6: Mikrotik: DHCPv6 contoh konfigurasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 15: | Line 15: | ||
==Mikrotik== | ==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 pool add name=myPool prefix=2345::/48 prefix-length=64 | ||
Line 22: | Line 27: | ||
/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 |
Revision as of 07:22, 3 April 2019
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.
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