Groups | Search | Server Info | Login | Register


Groups > linux.debian.maint.ipv6 > #119

Re: I need help configuring IPv6

From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.maint.ipv6
Subject Re: I need help configuring IPv6
Date 2022-02-24 22:10 +0100
Message-ID <DUtx7-46kh-3@gated-at.bofh.it> (permalink)
References <DUfaO-3XtF-3@gated-at.bofh.it> <DUh2V-3YAl-1@gated-at.bofh.it> <DUh2W-3YAl-3@gated-at.bofh.it>
Organization Plouf !

Show all headers | View raw


Le 24/02/2022 à 08:45, Nathan Van Ymeren a écrit :
>>>>>
>>>>> The relevant portion of /etc/network/interfaces is:
>>>>>
>>>>> iface eno1 inet6 static
>>>>>       address 2604:xxxx:xxxx:xxxx::2/64
>>>>>       gateway 2604:xxxx:xxxx:xxxx::1
>>>>>
>>>>> As far as I can tell from reading the debian wiki and whatever else,
>>>>> it should work like this

Yes.

>>>>> but even ping6'ing the gateway gives "ping6:
>>>>> connect: Network is unreachable".


>>> It seems that the missing piece of the puzzle was this:  You can't
>>> just add a default route (apparently).

You can as long as the router's address is in the interface prefix.

>>>  You have to first add the
>>> route to a specific interface.  It's not clear to me if this is
>>> universally true,

It is not.

>>> or just a consequence of something specific to my
>>> setup (the server in question has multiple NICs).

I see only one interface eno1 in the routing table below.

>>> # ip -6 route add blah:blah::1 dev eno1
>>> # ip -6 route add default via blah:blah::1
>>>
>>> where blah:blah::1/64 is the address my datacenter gave me for the v6
>>> gateway router.

That should not be necessary.

> I suppose v6 addresses aren’t really private.  The server is on 2604:5800:0:1f::2 and the gateway I was given is 2604:5800:0:1f::1
> 
> # route -A inet6

The output of "ip -6 route" is more compact and readable.

> Kernel IPv6 routing table
> Destination                    Next Hop                   Flag Met Ref Use If
> localhost/128                  [::]                       U    256 2     0 lo
> 2604:5800:0:1f::1/128          [::]                       U    1024 1     0 eno1
> 2604:5800:0:1f::2/128          [::]                       U    256 2     0 eno1
> fe80::/64                      [::]                       U    256 1     0 eno1
> [::]/0                         2604:5800:0:1f::1          UG   1024 21     0 eno1
> localhost/128                  [::]                       Un   0   27     0 lo
> 2604:5800:0:1f::2/128          [::]                       Un   0   10     0 eno1
> fe80::/128                     [::]                       Un   0   3     0 eno1
> fe80::28c:faff:fe0e:b01c/128   [::]                       Un   0   7     0 eno1
> ff00::/8                       [::]                       U    256 5     0 eno1
> [::]/0                         [::]                       !n   -1  1     0 lo

The direct route for 2604:5800:0:1f::/64 which shoud have been created 
by the quoted portion of /etc/network/interfaces is missing.

Back to linux.debian.maint.ipv6 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

I need help configuring IPv6 Nathan Van Ymeren <nathan.vany@gmail.com> - 2022-02-24 05:00 +0100
  Re: I need help configuring IPv6 Andika Triwidada <andika@gmail.com> - 2022-02-24 05:30 +0100
    Re: I need help configuring IPv6 Nathan Van Ymeren <nathan.vany@gmail.com> - 2022-02-24 05:50 +0100
    Re: I need help configuring IPv6 Nathan Van Ymeren <nathan.vany@gmail.com> - 2022-02-24 06:50 +0100
      Re: I need help configuring IPv6 Kenyon Ralph <kenyon@kenyonralph.com> - 2022-02-24 08:50 +0100
        Re: I need help configuring IPv6 Nathan Van Ymeren <nathan.vany@gmail.com> - 2022-02-24 08:50 +0100
          Re: I need help configuring IPv6 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2022-02-24 22:10 +0100
            Re: I need help configuring IPv6 Nathan Van Ymeren <nathan.vany@gmail.com> - 2022-02-24 22:20 +0100

csiph-web