Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just set up an new DirectAdmin, and I want to prepare it for IPv6 use. My ISP have gave me an range of IPv6 addresses that I can use. Lets say that address is 2a01:7c8:**:1f::.

My neworkadapter user DHCP to resolves its IP-addresses. When i type ifoncig eth0 I get the following result:

eth0      Link encap:Ethernet  HWaddr 52:**:**:**:ce:f3  
          inet addr:37.**.**.44  Bcast:37.**.**.255  Mask:
          inet6 addr: 2a01:7c8:****:1f::/64 Scope:Global
          inet6 addr: fe80::5054:ff:fe87:cef3/64 Scope:Link
          RX packets:38941 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3779534 (3.6 MiB)  TX bytes:5089379 (4.8 MiB)

As you can see, I have an IPv6 address set, but I can't ping6 an IPv6 host. I get the error: connect: Network is unreachable.

I decided that I needed an gateway, so I tryed to add one: ip -6 route add default via 2a01:7c8:****::1 dev eth0 (2a01:7c8:**::1 is the gateway of my ISP).

But it trows an error: RTNETLINK answers: No route to host.

Does somebody know what to do, and how to solve this issue? Thanks a lot!

share|improve this question

closed as off-topic by HopelessN00b Apr 3 '15 at 18:16

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Maybe because the gateway is not in your subnet. You'll need to un-obfuscate your addresses so that we can tell. It is odd that you're using the all-zeros address for your eth0. That's probably not correct.

You also should be using your distribution's methods for making these settings permanent via configuration files, rather than entering them at the command line after every boot.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.