如何在中華電信非固定制以 IPv6 上網?
用 ssh admin@<mkirotik_ip> 連線到 MkiroTik
預設的使用者名稱為 admin 沒有密碼.
透過當初中華電信提供的帳號密碼以 PPPoE 方式連線.
[admin@MikroTik] > interface pppoe-client add name="pppoe-out1" interface=<etherX> user="12345678@hinet.net" pass="abcdefgh" # You can find the user and pass(password) on the card which is provided by Hinet. # the interface should be the port connect to hinet modem確認 IPv6 套件已經安裝了
[admin@MikroTik] > system package print # check ipv6 had already been enable (No X mark in front of ipv6) # if not use the following command to enable it [admin@MikroTik] > system package enable ipv6新增一個 DHCP-v6 client
[admin@MikroTik] > ipv6 dhcp-client add interface="pppoe-out1" pool-name="hinet-ipv6-pool" add-default-route=yes request=prefix # add new configuration to ipv6/dhcp-client # replace pppoe-out1 with your pppoe interface name in step 1 # pool-name can set as you likeCombine the prefix and
::1[admin@MikroTik] > ipv6 address add address=::1/64 from-pool=hinet-ipv6-pool interface=bridge advertise=yes # This step will use the prefix from the pool we set on previous command # from-pool suould be as same as previous pool-name檢查有沒有拿到 IPv6
[admin@MikroTik] > ipv6 address print detail # It should show the ipv6 you get # you should not see an address start with fe80. Then you check the ip on your computer as wellOn MS Windows
Run > cmd > ipconfig
On Unix
Terminal > ip address
Use website
Reference
https://blog.downager.com/2013/09/12/RouterOS-%E5%A6%82%E4%BD%95%E8%A8%AD%E5%AE%9AHinet-IPv6-Dual-Stack/ https://wiki.mikrotik.com/wiki/Manual:System/Packages#List_available_packages https://wiki.mikrotik.com/wiki/Manual:IPv6/DHCP_Client https://wiki.mikrotik.com/wiki/Manual:IPv6/Address