Thanks for Visiting my channel
In order to address the IPv6-oriented configuration of a router in a simple way, we will see in this article how to configure a router using IPv6 addressing and how to configure IPv6 Static Route.
How to configure IPv6 Static Route:
Topology:
Nothing very complicated. We have here two routers, each with a LAN (here simulated by a loopback interface). The aim is to allow the LAN of R1 to communicate with the LAN of R2.
We will then have to define the IPv6 addressing of the interfaces, and then define the static routing on R1 and R2.
Configuring R1 interfaces:
Let's start by configuring the loopback interface that simulates the LAN of R1. Who will receive the first address of the network 2001: ABCD: 0001 :: / 48 ... i.e. 2001: ABCD: 0001: 0000: 0000: 0000: 0001 that can be written in abbreviated form 2001: ABCD: 1 :: 1
Now configure the Serial 0/0 interface of R1 that binds it to R2. It will be configured according to the EUI-64 standard. This means that the last 64 bits of the IPv6 address will be automatically set. Just give the network address and specify the eui-64 format.
The last 64 bits are normally assigned according to the MAC address of an Ethernet interface, however, here we configure a serial interface which of course has no MAC address. The router will then complete the IPv6 address by using the MAC address of an Ethernet interface present on the router.
Let's see the result...
The interface now has the global IPv6 address 2001: ABCD :: C200: AFF: FE78: 0 ... remains to understand where it comes from. To do this, let's analyze the MAC address of the FastEthernet interface that the router used to generate the address in question ...
Here's how the router dialed the address:
The 64 first bits are defined by the network address, and if necessary supplemented by 0. Either: 2001: ABCD: 0000: 0000 ...... ..
The last 64 bits are composed of the MAC address (borrowed from a FastEthernet interface), inserting the hexadecimal value FFFE in the middle of it to go from 48 bits (format of the MAC address) to the 64 bits required ... : 2001: ABCD: 0000: 0000: C000 : 0A FF : FE 78 :0000
Last step, the 7th bit of the MAC address is set to 1, so we go from C000.0A78.0000 to C200.00A78.0000, which finally gives us the address 2001: ABCD: 0000: 0000: C200: 0AFF: FE78: 0000 which can be written more simply 2001: ABCD :: C200: AFF: FE78: 0
Now you have to configure R2 ...
Configuring R2:
Let's test the connectivity between R1 and R2 ...
For this we start by finding the IPv6 address of the serial interface of R2 ...
Let's now use the ping command in ipv6 to test that the link between R1 and R2 works ...
OK, everything looks fine, let's move on to defining static routes.
Defining static routes:
In order for the LAN of R1 to communicate with the LAN of R2, we must define a route on R1 that indicates the next hop to reach the LAN of R2, ... and ... on R2 a route that indicates Next-hop to reach LAN of R1.
But first of all ... you need to enable IPv6 routing! Otherwise, the router would behave like a simple IPv6 machine, capable of sending or receiving traffic but not router!
On R1:
On R2 :
Verification:
Let's take a look at the R1 routing table
The road creates is present. Let's test connectivity, by launching an ipv6 ping, from the Loopback interface of R1 to the Loopback interface of R2.
Everything seems to be in order!