Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Assigning IPv6 to Debian VPS ... How?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Assigning IPv6 to Debian VPS ... How?

RamblerRambler Member
edited December 2020 in Help

Not quite sure what I'm doing wrong here, but after two failed attempts and bricking the fucking network on my box and reinstalling I'm coming here for help.

Got a BuyVM KVM box.

I have:

  1. Enabled IPv6 in the control panel.
  2. Added a random IPV6 from my subnet to my VPS, and enabled it.

I then build a VM.

Okay, no IPV6 connectivity on this box.

Read the docs, see: https://wiki.buyvm.net/doku.php/networking

So I update my /etc/network/interfaces to look like this, which I guess I'm supposed to do based on the wiki page? Not entirely sure. Previously was using a Ubuntu box and Netplan made me want to fucking drag my computer behind a truck and gun it down a gravel road.

So, this is what my /etc/network/interfaces looks like in an attempt to get one IPV6 address to work and IPV6, just in general.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# Below is what I add for Luxembourg BuyVM

iface eth0 inet6 static
address THE_IP_I_GENERATED_IN_STALLION/48
netmask 48
gateway 2605:6400:3:fed5::1

And when I restart via systemctl restart networking.service, it just locks up. I can't SSH into the box anymore and as far as I'm concerned it's just easier to start fresh.

I don't want to be frustrated for a third time. What in the hell am I doing wrong? I've read multiple guides on adding IPV6 to a Debian VPS and nothing is standing out as clear to me.

EDIT: So I reinstalled it. I haven't touched /etc/network/interfaces or anything yet.

Out of the box, with IPV6 all enabled in Stallion BEFORE the rebuild, I have no out-of-the-box IPV6 connectivity from the box. Should I?

ip -6 route show | grep default

Nothing.

traceroute -6 dns.google.com
traceroute to dns.google.com (2001:4860:4860::8844), 30 hops max, 80 byte packets
connect: Network is unreachable

lsmod | grep ipv6

Nothing.

ping6 2600::

Network unreachable. And it should work, that's Sprint's network. They just happen to have a really short IPV6 address. But even OpenDNS doesn't work, for good measure checked it too.

ping6 2620:0:ccd::2

Comments

  • @swat4 said:
    @yoursunny 's show time :p

    lol

    Thanked by 1its420somewhere
  • edited December 2020

    @Rambler said:

    And when I restart via systemctl restart networking.service, it just locks up. I can't SSH into the box anymore and as far as I'm concerned it's just easier to start fresh.

    I don't want to be frustrated for a third time. What in the hell am I doing wrong? I've read multiple guides on adding IPV6 to a Debian VPS and nothing is standing out as clear to me.

    Have you reboot the VPS and or access from Stallion console?

  • @chocolateshirt said: Have you reboot the VPS and or access from Stallion console?

    So to be clear, I need to enable IPV6 before I build the VPS and make sure it's all assigned (I did that already). Then build the VPS. No IPV6 network connectivity. Then reboot it after I just built it?

    Hell, might as well try it. Not sure it'll do anything though.

  • edited December 2020

    Ok, I added IPv6 after installing debian 10. First, I change DHCP IPv4 to static IPv4 address. Also I did not use CIDR format for IPv6. Below are my /etc/network/interfaces configuration

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet static
            address 107.189.xx.xx
            netmask 255.255.255.0
            gateway 107.189.xx.1
    
    iface eth0 inet6 static
            address 2605:6400:xx:xx::dead
            netmask 48
            gateway 2605:6400:xx::1
    

    And this is MTR to Google.com

    LUX.6v.ro (2605:6400:xx:xx::dead)                                                                                        2020-12-28T21:04:25-0800
    Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                                               Packets               Pings
     Host                                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
     1. 2605:6400:xx:xx::1                                                                                    0.0%    12    0.4   1.2   0.3   9.8   2.7
     2. tunnel536484.tunnel.tserv18.dus1.ipv6.he.net                                                          0.0%    12   22.8  22.7  21.8  25.3   1.0
     3. e0-24.core2.dus1.he.net                                                                               0.0%    12   23.5  27.1  22.5  69.8  13.5
     4. 100ge5-2.core1.ams1.he.net                                                                           75.0%    12   25.7  26.7  24.8  29.5   2.5
     5. amsix-router.google.com                                                                               0.0%    12   26.7  26.3  25.5  27.5   0.6
     6. 2001:4860:0:f8d::c                                                                                    0.0%    12   23.0  24.1  22.0  34.1   3.4
     7. 2607:f8b0:e000:8000::4                                                                                0.0%    12   26.4  26.2  25.5  26.8   0.5
     8. 2001:4860::8:0:cb95                                                                                   0.0%    12   29.9  29.7  28.8  30.2   0.4
     9. 2001:4860::1:0:d0d8                                                                                   8.3%    12   50.7  50.0  49.4  50.7   0.5
    10. 2001:4860:0:1::4179                                                                                  41.7%    12   26.6  26.2  25.6  26.8   0.5
    11. fra24s01-in-x0e.1e100.net                                                                             0.0%    11   29.8  28.9  28.2  29.8   0.5
    
  • @chocolateshirt are you in Luxembourg?

    You edited out the part of your IPV6 gateway that'd help me determine if your IPV4 settings would work for me too. Their wiki doesn't publish anything other than the Vegas settings for IPV4 and I don't want to copy your settings (with changing the obvious to my stuff) if the gateway and netmask is going to be incorrect for my location.

  • edited December 2020

    @Rambler said:
    @chocolateshirt are you in Luxembourg?

    You edited out the part of your IPV6 gateway that'd help me determine if your IPV4 settings would work for me too. Their wiki doesn't publish anything other than the Vegas settings for IPV4 and I don't want to copy your settings (with changing the obvious to my stuff) if the gateway and netmask is going to be incorrect for my location.

    Yes, my VPSBin Luxembourg. You could get details of IP address, netmask, and gateway for IPv4 & IPv6 from Stallion.

    Go to Networking tab, select IPv4 tab, then find your IP address (make sure Status toggle button is ON) and click Gear icon on right side of it, then click Network Settings. You will get a popup window with detailed IP Address Information above.

    You can repeat the same step for IPv6.

    Thanked by 1Rambler
  • @chocolateshirt thanks for the tip about where to find the network info in stallion. I was looking at their wiki and didn't see that mentioned.

    I adjusted my /etc/network/interfaces to look like yours, pulling data from Stallion of course for my own IPs in question.

    Saved it. Ran systemctl restart networking.service

    Bricked the network again. I don't get it.

    Rebooting now to see if that's some sort of magic fix. I guess I've just been babied in the past with OVZ containers just 'working' with IPs assigned to them so having to mess with this is a bit new to me.

    Thanked by 1chocolateshirt
  • RamblerRambler Member
    edited December 2020

    @chocolateshirt hallelujah! That worked. I had to reboot because restarting the service just kills the network but it works now. I have IPV6 capability.

    I have another Debian VPS that I want to add multiple IPV6 to. Would I just:

    iface eth0 inet6 static
            address 2605:xxxx:xx:xxxx:xxxx:xxxx:xxxx:1111
            address 2605:xxxx:xx:xxxx:xxxx:xxxx:xxxx:2222
            address 2605:xxxx:xx:xxxx:xxxx:xxxx:xxxx:3333
            address 2605:xxxx:xx:xxxx:xxxx:xxxx:xxxx:4444
            netmask 48
            gateway 2605:xxxx:xx::1
    

    Would that be the appropriate way to add 4 different IPV6 to a box?

    Thanked by 1chocolateshirt
  • Great to see your IPv6 working. Unfortunately I never had a chance to setup multiple IPv6 address so I could not give you any advice.

    Thanked by 1Rambler
  • Mr_TomMr_Tom Member, Host Rep

    @Rambler said: I had to reboot because restarting the service just kills the network but it works now.

    I've seen this before in Debian, restarting networking just hangs.

    @Rambler said: I have another Debian VPS that I want to add multiple IPV6 to.

    Normally I just add a up ip -6 address add 2a0b:abab:xxxx::xx/64 dev eth0 to just below the gateway line in the relevant section. You can then add one line for as many IPs as you want.

    Thanked by 2ariq01 ferri
  • lebuserlebuser Member
    edited December 2020

    @Rambler said: address THE_IP_I_GENERATED_IN_STALLION/48

    Is the VPS provider using a /48 on the outside interface? That's really broken. An IPv6 interface should never be larger than a /64. If you get a /48 then they should route it to you.

  • GanonkGanonk Member
    edited December 2020

    @chocolateshirt said:
    Ok, I added IPv6 after installing debian 10. First, I change DHCP IPv4 to static IPv4 address. Also I did not use CIDR format for IPv6. Below are my /etc/network/interfaces configuration

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet static
            address 107.189.xx.xx
            netmask 255.255.255.0
            gateway 107.189.xx.1
    
    iface eth0 inet6 static
            address 2605:6400:xx:xx::dead
            netmask 48
            gateway 2605:6400:xx::1
    

    And this is MTR to Google.com

    LUX.6v.ro (2605:6400:xx:xx::dead)                                                                                        2020-12-28T21:04:25-0800
    Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                                               Packets               Pings
     Host                                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
     1. 2605:6400:xx:xx::1                                                                                    0.0%    12    0.4   1.2   0.3   9.8   2.7
     2. tunnel536484.tunnel.tserv18.dus1.ipv6.he.net                                                          0.0%    12   22.8  22.7  21.8  25.3   1.0
     3. e0-24.core2.dus1.he.net                                                                               0.0%    12   23.5  27.1  22.5  69.8  13.5
     4. 100ge5-2.core1.ams1.he.net                                                                           75.0%    12   25.7  26.7  24.8  29.5   2.5
     5. amsix-router.google.com                                                                               0.0%    12   26.7  26.3  25.5  27.5   0.6
     6. 2001:4860:0:f8d::c                                                                                    0.0%    12   23.0  24.1  22.0  34.1   3.4
     7. 2607:f8b0:e000:8000::4                                                                                0.0%    12   26.4  26.2  25.5  26.8   0.5
     8. 2001:4860::8:0:cb95                                                                                   0.0%    12   29.9  29.7  28.8  30.2   0.4
     9. 2001:4860::1:0:d0d8                                                                                   8.3%    12   50.7  50.0  49.4  50.7   0.5
    10. 2001:4860:0:1::4179                                                                                  41.7%    12   26.6  26.2  25.6  26.8   0.5
    11. fra24s01-in-x0e.1e100.net                                                                             0.0%    11   29.8  28.9  28.2  29.8   0.5
    

    make me your student , Guru 🙏

  • Lol.. 😆

    Thanked by 1Ganonk
Sign In or Register to comment.