探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

Online.net IPv6 Setup Script

Someone on LowEndTalk recently posted a great script to automatically configure IPv6 on Online.net’s dedicated servers.  Since I’ve recently been using one of their 2EUR Kidéchire specials as a Deluge & SABnzbd box I found this quite useful.

Script Usage:

This script is designed to be run on an Online.net Dedicated Server, it has been tested on:

  • Debian 7
  • Ubuntu 14.04
  • CentOS 7
  • Proxmox VE w/ OVZ (see Issue #1)

Updated 01-23-2017

wget www.sonicboxes.com/scripts/online_net_ipv6_dhclient_Jan17.tar.gz
tar -xf online_net_ipv6_dhclient_Jan17.tar.gz
cd ipv6-dhclient-script
chmod 755 ipv6_dhclient_online_net.sh
./ipv6-dhclient-script.sh <interface> <address block> <subnet> <duid>

Example:

All of the required information can be found on your Online.net Network configuration page (console.online.net >> Server >> Network configuration).  It should look like this:

Online.net IPv6 Example Settings

In this example, we’ll be adding the subnet 2001:0bc7:5555:101::/64 to our dedicated server via the following command:

./ipv6-dhclient-script.sh eth0 2001:0bc7:5555:101:: 64 00:04:01:07:c7:b8:2f:13:d5:a8

Next we’ll want to add some addresses from the /64 block to the server:

/sbin/ifconfig eth0 inet6 add 2001:0bc7:5555:101::1
/sbin/ifconfig eth0 inet6 add 2001:0bc7:5555:101::2

Your server should now have outgoing IPv6 connectivity and you should be able to ping the assigned address, in this example – 2001:0bc7:5555:101::1, from an outside network.

Source: GitHub – LowEndTalk Thread

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《Online.net IPv6 Setup Script》
文章链接:https://www.thefreesky.com/blog/25245.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发