Skip to main content

How to get ns2 ipv6 visible with ifconfig command?

Answered

Comments

10 comments

  • rhm.geerts

    I will add a screenshot. I read something I need to add a gateway here, but maybe this makes things more clear.
    This is how I have it now. I used the complete same range, only the main ip has 2 at the end and the secondary ip has 5 at the end.

    0
  • cPRex Jurassic Moderator

    Hey hey!  This one is likely best handled by your host - while adding the IP to cPanel may make it show up in the interface, it may not properly configure the network settings.

    0
  • rhm.geerts

    Yes that is odd, because it does work with the ipv4.
    Unfortunately the host does not provide support. I could maybe manually add it to the interface, but I don't know for sure if cPanel picks it up then and uses it as ns2 ip.

    Very odd though, never had these issues with DA and Hetzner and ipv6. Just add and it works.

    I expected cPanel to also have it show up on the interface like with the ipv4.

     

    0
  • cPRex Jurassic Moderator

    This one I'm honestly not sure - since the issue is happening with basic commands like ifconfig I would hope the host would at least offer some level of support for the network.

    0
  • rhm.geerts

    Oh I hoped that just as with DA I could just add the ip in some cpanel file and it would work.

    Only level of  support the datacenter gives is pointing to documentation to do it yourself manually.

    If you can assure me that cPanel will use it for ns2 if it sees the ip on the interface then I will add it manually on the interface, ask somebody at their forum probably.

    0
  • cPRex Jurassic Moderator

    As long as the IP is properly routed to your machine there is no reason you couldn't use it for ns2.

    0
  • rhm.geerts

    Yes I have a /64 netblock routed to my machine.
    I've already asked at the Hetzner forum if they can provide the best way to add it.

    Did I do it correct in cPanel as far as you can see from the screenshot above with the /128 subnet?

    0
  • cPRex Jurassic Moderator

    As far as I know, that does look correct.

    1
  • rhm.geerts

    For future reference and anybody encountering this issue on a Hetzner dedicated server, use this example on RH based systems.

    Just edit your network interface file, for example /etc/sysconfig/network-scripts/ifcfg-eno1 and then add this line:

    IPV6ADDR_SECONDARIES=<ipv6>/<prefix>

    without the hooks, so for example

    IPV6ADDR_SECONDARIES=2a01:4f8:xxxx:xxxxx:xxxx:5/128

    restart your network and it's working.

    You can also add more ipv6 there if needed, seperate the with a space.

    Solved.

    1
  • cPRex Jurassic Moderator

    I'm glad you were able to come up with a working solution!!

    0

Please sign in to leave a comment.