Score:0

Channeling IPv4 packets to IPv6 packets between interfaces

ye flag

How do I route packets in my machine between interfaces (See yellow arrow). Eth0 receives IPv4 packets and I will like to channel it to Eth1 which will send IPv6 packets out.Image of dual stack machine with IPv4 and IPv6 interfaces

A.B avatar
cl flag
A.B
Have a look there: https://en.wikipedia.org/wiki/NAT64 , https://en.wikipedia.org/wiki/IPv6_transition_mechanism#Stateless_IP/ICMP_Translation . A linux implementation: https://www.jool.mx/en/intro-xlat.html
vidarlo avatar
ar flag
What are you attempting to achieve? IPv4 over a IPv6 network? If so a GRE tunnell may be a good solution?
Score:1
bd flag

Routing cannot convert between IPv4 and IPv6. You need an application layer gateway for that.

Score:1
cn flag

IPv4 and IPv6 are different protocols, and cannot be directly routed between.

Move everything to IPv6 and you can have a single stack all the way through, which can be directly routed.

Or, tunnel IPv4 in IPv6. Maybe GRE, or some other VPN.

Or, insert a middlebox in between, terminating the IPv4 connection and starting an IPv6 one. Some kind of proxy or load balancer, for example.

Mervyn Heng avatar
ye flag
Hi, thanks for the answer!
Mervyn Heng avatar
ye flag
May I check for tunneling IPv4 in IPv6, what should I google for to find out how it works. Does it mean that whenever I reach the IPv6 leg, I should package the IPv4 packets within IPv6, transport it over the IPv6 protocol and then remove it and revert back to IPv4 when required?
John Mahowald avatar
cn flag
Design whatever network you need such that A can talk to C. If it must be IPv4, could have a 4 in 6 tunnel from B to C, and a new IPv4 address for C. Or, IPv6 only throughout could simplify things.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.