fbpx

Is it not necessary to put the prefix on the IPv6 gateway?

In IPv6 configuration, when you specify a gateway address, it is generally not necessary to include the network prefix directly in the gateway configuration.

Instead, the prefix is ​​used to define the network to which the device belongs and is set to the IP address of the device itself, not the gateway.

We explain in more detail:

IPv6 Address and Gateway Configuration

  1. Device IP Address: When you configure an IPv6 address on a device, you need to specify both the address and the network prefix. For example, if your IPv6 address is 2001:db8::1 and you are on a network with a prefix /64, you would set your address as 2001:db8::1/64. This indicates that all addresses from 2001:db8::0 but also 2001:db8::ffff:ffff:ffff:ffff They are on the same subnet.
  2. Gateway Address: The gateway address is simply another IPv6 address on the same subnet as your device. To configure a gateway, you only need to specify the IPv6 address of the gateway, without needing to include the network prefix. For example, if the gateway is in 2001:db8::1, you simply configure that address as your gateway.

Configuration Example

Let's say you have the following settings for your device:

  • Device IPv6 address: 2001:db8:1234:5678::1/64
  • Gateway IPv6 address: 2001:db8:1234:5678::ffff

Here, both addresses are within the same network block /64, but you only need to include the prefix when setting the device address. The gateway address is specified without the prefix because it is already understood to be on the same subnet defined by the device prefix.

Technical Considerations

  • Subnet Consistency: It is crucial that both the device address and the gateway address are on the same subnet. Otherwise, the device will not be able to communicate with the gateway.
  • Routing: Make sure any router or switch between your device and the gateway is also properly configured to handle IPv6 traffic and understand the subnetting structure used.

In summary, in IPv6, the prefix is ​​used to define the size and scope of the local network and is configured with the device address, not the gateway address. The gateway address is specified without a prefix, based on the understanding that it shares the same network prefix as the device.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011