cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
544
Views
1
Helpful
3
Replies

question about IPv6 to IPv4 to IPv6

96866cdc35
Level 1
Level 1

Hello everyone

Screenshot_3.png

in this topology theres 2 networks thats use IPv6 , and i want to make a connection between this 2 networks , so i connected Router1 with Router2 to each other by a serial link .
the IP Address of the serial interface in Router1 and Router2 is an IPv4 Address

So how can I make router 1 or router 2 when they receive a IPv6 packet and the destination address for this packet is in another IPv6  network then router 1 or 2 sends this packet to the desired network via the IPv4 Serial link

3 Replies 3

Hi

 6to4 tunneling would be one possibility. Not sure if all commamds are available on PacketTracer

This config is an example.

hostname R1
!
ipv6 unicast-routing
ipv6 cef
!
interface Tunnel0
no ip address
no ip redirects
ipv6 address 2002:C0A8:1E01::/48
tunnel source 192.168.30.1
tunnel mode ipv6ip 6to4
!
interface GigabitEthernet1/0
ip address 192.168.30.1 255.255.255.0
negotiation auto
!
interface FastEthernet2/0
no ip address
speed auto
duplex auto
ipv6 address 1000::2/64
ipv6 ospf 1 area 0
!

ipv6 route 2002:C0A8:1E02::/48 Tunnel0

ipv6 route 1010::/64 2002:C0A8:1E02::

!

ipv6 router ospf 1
router-id 1.1.1.1
redistribute static
!
!
end

 

 

 

 

 

 

 

 

!
version 15.2
!
hostname R2
!
ipv6 unicast-routing
ipv6 cef
!
interface Tunnel0
no ip address
no ip redirects
ipv6 address 2002:C0A8:1E02::/48
tunnel source 192.168.30.2
tunnel mode ipv6ip 6to4
!
interface GigabitEthernet1/0
ip address 192.168.30.2 255.255.255.0
negotiation auto
!
interface FastEthernet2/0
no ip address
speed auto
duplex auto
ipv6 address 1010::1/64
ipv6 ospf 1 area 0
!

ipv6 route 2002:C0A8:1E01::/48 Tunnel0

ipv6 route 1000::/64 2002:C0A8:1E01::

ipv6 router ospf 1
router-id 2.2.2.2
redistribute static
!
!
end

Hi,

in simple form use ipv6 over ipv4 tunnel:

On Router1:

interface tunnel 1
tunnel mode ipv6ip
tunnel source serial 0/0/0
tunnel destination 10.10.10.2
ipv6 address FD::1/64

On Router2:

interface tunnel 1
tunnel mode ipv6ip
tunnel source serial 0/1/0
tunnel destination 10.10.10.1
ipv6 address FD::2/64

Then simple ping each other (FD::1 or FD::2) and you will see that you get response for ICMPv6. Here FD::1/2 addresses just tunnel interface IP addresses (like you have for normal physical interface and IPv6 subnet can be any, I just selected these IPs for simplicity). Whenever one router want to reach another (next-hop), traffic should be forwarded via tunnel and ipv6 will be encapsulated inside ipv4 header where source and destination are tunnel source/destination (underlay) IPv4 addresses.

Of course, you will need to create static or dynamic routing over tunnel as part of normal routing process. In general, if you can ping tunnel endpoints (each other), just assume this tunnel interface as normal physical port and do normal operations (i.e routing).

HTH,
Please rate and mark as an accepted solution if you have found any of the information provided useful.

I agree with @Kanan Huseynli use IPv6 over IPv4