SlapOS Home SlapOS

    How To Setup SDN On A Local Area Network

    How to share SDN on a local area network (TG: deemed useless and to advance for Rapid.Space)
    • Last Update:2021-12-03
    • Version:001
    • Language:en

    How To Setup SDN On A Local Area Network

    Rapid.Space provides IPv6 connection on all servers, however, most ISP (Internet Service Provider) in China only provide IPv4 network. In order to help Rapid.Space users in China to adopt IPv6, without using proxy to access Rapid.Space service, we are going to introduce a reliable way to get a local IPv6 network by setting up a Raspberry Pi with Re6stnet and its token, so that all devices under this network can enjoy IPv6 and access Rapid.Space.

    The alternative way is to install IPv6 in your particular machine(Linux, Windows or Mac), which is explained on XXXX HowTo Install IPv6 On Your PC

    Before you started, please follow XXX HowTo Use Free SDN Service to request a token.

    https://handbook.rapid.space/user/rapidspace-HowTo.Get.A.Local.IPv6.Network

    Get ready with the Raspberry Pi

    Please follow Raspberry Pi OS installation guide to flash and install an Raspberry Pi OS (32-bit) Lite on the Raspberry Pi.

    Set Raspberry Pi Network

    • Plug Ethernet Cable

    or 

    • Edit /etc/network/interfaces :
    auto wlan0
    iface wlan0 inet dhcp
            wpa-ssid yourwifiname
            wpa-psk yourpassword

    The default user of Raspberry Pi is “pi” and password is “raspberry”. If you are using wifi you need to set the wifi like below. Otherwise, just plug the Ethernet cable to the Raspberry Pi.

    Download re6st

    wget https://deploy.erp5.net/gnet/re6st

    For the people in China, please visit download re6st by this:

    wget https://deploy.erp5.cn/gnet/re6st

    run the re6st command

    sudo FORCE=yes bash re6st

     you can just run the re6st command with root.

    It will download some packages and then install re6st.

    Enter Token

    Your token [notoken]: [Your_token]

    Enable Router Advertisement [no]: yes

    Type the token you got in above when the script asks like below:
    Beware that if you want to broadcast IPv6 to every device in the same local network, NOTE: you are required to type “yes” after Enable Router Advertisement [no]:.

    TIP: if you forgot to put “yes” after Enable Router Advertisement [no]: you can simply rerun the command:

    sudo FORCE=yes bash re6st
    

    Don’t need to type your token again

    Reboot

    Reboot the Raspberry Pi

    After this done. Reboot the Raspberry Pi and you will see the IPv6 address from the command ip -6 route.

    Verify the IPv6 network

    ip -6 route

    There are multiple ways to check if you can access IPv6 network. You can see the IPv6 address from the command ip -6 route. You can easily go to some test IPv6 website like https://test-ipv6.com/ with your different devices under the local network.