Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Routers ipv6 Address

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Routers ipv6 Address

#1 Post by Soapm »

I am using systemctl enable systemd-networkd

How do I find the ipv6 address of my router?
All I can find is this address fe80::3e7c:3fff:fe35:6db0

but I'd like to put the actual address if I can find it

Also, Is this the proper way to do ipv6 DHCP?

DHCP=ipv6
Last edited by Soapm on 2023-03-15 23:53, edited 1 time in total.

User avatar
BBQdave
df -h | participant
df -h | participant
Posts: 152
Joined: 2011-09-25 03:38
Location: North Carolina
Has thanked: 9 times
Been thanked: 14 times

Re: Routers ipv6 Address

#2 Post by BBQdave »

I use the router application that came with the router. Some have this information accessible through your web browser. Some routers have an application to administer your router. Best efficient method to see router information and administer :)
On quest for blue smoke and red rings!
Debian 12 Toshiba Satellite C655 | i3 2.3Ghz | Intel HD Graphics 3000 | 8GB RAM | 65GB SSD

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Routers ipv6 Address

#3 Post by Soapm »

Thanks, I did that and it gave me 2601:280:c600:bd::1

What I don't know is how to convert that to the full address since that's the same prefix my other devices have???

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Routers ipv6 Address

#4 Post by Soapm »

Reading "man interfaces" it says to use the below command, but as usual it doesn't tell you how to write the command in the file or on the command line. I wish those manuals would give examples of using it in real life so you have some idea how to go about it.

Code: Select all

dhcp int
Use stateless DHCPv6 (0=off, 1=on)
I know my new router uses stateless to Comcast, I just don't know how to use this in the real world.

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Routers ipv6 Address

#5 Post by reinob »

I don't understand what your problem is. You want to know (one of) the IPv6 addresses of your router, and you have figured out that it's 2601:280:c600:bd::1, which is a "full address" by any meaningful definition of "full address".

So what's your question again?

And you should not need to use DHCP for IPv6. By default IPv6 uses router advertisements (RA).

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Routers ipv6 Address

#6 Post by Soapm »

reinob wrote: 2023-03-16 19:42 I don't understand what your problem is. You want to know (one of) the IPv6 addresses of your router, and you have figured out that it's 2601:280:c600:bd::1, which is a "full address" by any meaningful definition of "full address".

So what's your question again?

And you should not need to use DHCP for IPv6. By default IPv6 uses router advertisements (RA).
Didn't know about RA, but that explains why my server already had an ipv6 address...

I guess I still think old school and like to assign devices addresses so I know who they are. ipv4 was easy to find the router since it was usually the gateway and the DHCP server but my question is how do you find the routers ipv6 address. Not one that begins with a F, one of the actual ipv6 addresses that's permanently assigned to it so I can put it in the settings like my old school mind still works. These are fictitious but something like this? Is there a command that will reliably tell me what (or one) ipv6 address that is permanently assigned to my router?

Code: Select all

# Ipv4
 Address=192.168.0.199/24
 Gateway=192.168.0.1
 DNS=8.8.8.8 8.8.4.4

#Ipv6
  Address=2601:280:c600:bd:xxxx:xxxx:fe9e:2d57/64
  Gateway=2601:280:c600:bd:xxxx:xxxx:xxxx:6db0
  DNS=2001:4860:4860::8888 2001:4860:4860::8844

I guess I'm just old and refuse to change...

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Routers ipv6 Address

#7 Post by reinob »

A device can have multiple IP addresses, both IPv4 and IPv6.
In the case of IPv6 every device will have a link-local address (fe80::/10), which is usually the one you see on your client as gateway.
In my PC right now, if I run "ip -6 r | grep default" I get "default via fe80::2e3a:fdff:feb6:9b6d .." so this tells me what the link-local address of the router is.

You may also have unique local addresses (fd00::..), and you may also have (many) global addresses (like your 2601:..).

I guess in your case ("I want to assign devices addresses so I know who they are") the best would be to configure your router to give ULA addresses to each device. Mine (fritzbox 7530) does that, so I can use the fd00:: addresses to filter stuff (parallel to the IPv4 192.168.178.xxx/24 in my case).

AFAIK the ULA never changes (maybe if you reset the router), so you can use that as your "permanent" address.
But best is to have proper DNS so that you can refer to your devices by name..

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Routers ipv6 Address

#8 Post by Soapm »

reinob wrote: 2023-03-17 18:40 I guess in your case ("I want to assign devices addresses so I know who they are") the best would be to configure your router to give ULA addresses to each device. Mine (fritzbox 7530) does that, so I can use the fd00:: addresses to filter stuff (parallel to the IPv4 192.168.178.xxx/24 in my case).

AFAIK the ULA never changes (maybe if you reset the router), so you can use that as your "permanent" address.
But best is to have proper DNS so that you can refer to your devices by name..
Thanks, I was just coming here to post about an article I read last last night that made me see that I was trying to judge the grade of beef by sticking my head up the cows rear. It basically said there are many ipv6 addresses used for different reasons so it's best to let the network do it's thing...

One last question that wasn't clear to me, is it best to use router announcements or DHCPv6?

After reading the article I went with "IPv6AcceptRA=yes" but wasn't clear if I was doing it right or if "DHCP=ipv6" would be even better or make a difference.
I wish the MAN docs would give command examples so we know how to enter them.
I've seen others use IPv6AcceptRA=true and DHCPv6 but I have to clue how to use those settings.

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Routers ipv6 Address

#9 Post by reinob »

DHCPv6 should (almost) never be necessary. I think Windows 7 (or was it XP) needed it in some configurations, but any modern/decent OS works fine with RA.

<rant>
.. sometimes I wish IPv6 would have just taken IPv4 and extended addresses to 128 bit, without all the other changes.. which may make sense if you think about it, but make (and have made) many things very complicated, and there are still many devices which do not fully/properly/correctly support IPv6 as they should)
</rant>

Post Reply