IPv4 Connectivity Across IPv6-Only Network Using 464XLAT

https://www.juniper.net/documentation/us/en/software/junos/interfaces-adaptive-services/topics/topic-map/ipv4-connect-ipv6-464xlat.html

464XLAT Overview

Starting in Junos OS Release 17.1R1, you can configure a 464XLAT Provider-Side Tranlator (PLAT). This is supported only on MS-MICs and MS-MPCs. 464XLAT provides a simple and scalable technique for an IPv4 client with a private address to connect to an IPv4 host over an IPv6 network. 464XLAT only suports IPv4 in the client-server model, so it does not support IPv4 peer-to-peer communication or inbound IPv4 connections.

XLAT464 provides the advantages of not having to maintain an IPv4 network for this IPv4 traffic and not having to assign additional public IPv4 addresses.

A customer-side translator (CLAT), which is not a Juniper Networks product, translates the IPv4 packet to IPv6 by embedding the IPv4 source and destination addresses in IPv6 /96 prefixes, and sends the packet over an IPv6 network to the PLAT. The PLAT translates the packet to IPv4, and sends the packet to the IPv4 host over an IPv4 network (see Figure 1).

Figure 1: 464XLAT Wireline Flow

464XLAT Wireline Flow

The CLAT uses a unique source IPv6 prefix for each end user, and translates the IPv4 source address by embedding it in the IPv6 /96prefix. In Figure 1, the CLAT source IPv6 prefix is 2001:db8:aaaa::/96, and the IPv4 source address 192.168.1.2 is translated to 2001:db8:aaaa::192.168.1.2. The CLAT translates the IPv4 destination address by embedding it in the IPv6 /96 prefix of the PLAT (MX Series router). In Figure 1, the PLAT destination IPv6 prefix is 2001:db8:bbbb::/96, so the CLAT translates the IPv4 destination address 198.51.100.1 to 2001:db8:bbbb::198.51.100.

The CLAT can reside on the end user mobile device in an IPv6-only mobile network, allowing mobile network providers to roll out IPv6 for their users and support IPv4-only applications on mobile devices (see Figure 2).

Figure 2: 464XLAT Wireless Flow

464XLAT Wireless Flow

To configure the PLAT on the MX Series router, you create a NAT rule that uses the PLAT IPv6 prefix for the destination address and destination prefix and uses the NAT translation type stateful-nat464. For the source address and CLAT prefix in the NAT rule, identify the IPv6 prefix for the CLAT. The NAT rule must specify a NAT pool that the PLAT uses for converting the private IPv4 source address to a public IPv4 address.

Benefits of 464XLAT

  • No need to maintain an IPv4 transit network

  • No need to assign additional public IPv4 addresses

Configuring 464XLAT Provider-Side Translater for IPv4 Connectivity Across IPv6-Only Network

Starting in Junos OS Release 17.1R1, you can configure a 464XLAT Provider-Side Tranlator (PLAT). This is supported only on MS-MICs and MS-MPCs. 464XLAT provides a simple and scalable technique for an IPv4 client with a private address to connect to an IPv4 host over an IPv6 network. 464XLAT only suports IPv4 in the client-server model, so it does not support IPv4 peer-to-peer communication or inbound IPv4 connections.

The following restrictions apply when configuring the PLAT:

  • An overload-pool cannot be configured in the NAT rule.

  • Different terms in the NAT rule cannot have the same destination-prefix.

To configure the PLAT:

  1. Configure a NAT pool NAT pool that the PLAT uses for converting the private IPv4 source address to a public IPv4 address. See Configuring Pools of Addresses and Ports for Network Address Translation Overview.

  2. Configure a name for a NAT rule.

    content_copy zoom_out_map

    [edit services nat]
    user@host# set rule rule-name
    
  3. Configure a match direction for the rule. See Network Address Translation Rules Overview.

  4. Configure the IPv6 source address prefix. This must be the CLAT IPv6 prefix or contain the CLAT IPv6 prefix.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name from]
    user@host# set source-address address
    
  5. Configure the IPv6 destination address prefix, which must have a length of /96. This is the PLAT destination IPv6 IP prefix.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name from]
    user@host# set destination-address address
    
  6. Specify the NAT pool that the PLAT uses for converting the private IPv4 source address to a public IPv4 address.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name then translated]
    user@host# set source-pool nat-pool-name
    
  7. Specify the CLAT IPv6 source prefix.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name then translated]
    user@host# set clat-prefix clat-prefix
    
  8. Configure the IPv6 destination prefix, which must have a length of /96. This is the PLAT destination IPv6 IP prefix.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name then translated]
    user@host# set destination-prefix destination-prefix
    
  9. Configure the translation type as stateful NAT464.

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name then translated]
    user@host# set translation-type stateful-nat464
    
  10. Enable address pooling paired (APP).

    content_copy zoom_out_map

    [edit services nat rule rule-name term term-name then translated]
    user@host# set address-pooling paired.
    
  11. Assign the NAT rule to a service set.

    content_copy zoom_out_map

    [edit services]
    user@host# set service-set service-set-name nat-rules rule-name
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Unfortunately, it is not possible to directly access IPv6 addresses from IPv4 networks without some form of translation or tunneling mechanism. This is because IPv4 and IPv6 are fundamentally different protocols and are not directly compatible. However, there are several mechanisms available to facilitate communication between IPv4 and IPv6 networks. One such mechanism is IPv6 over IPv4 tunneling, which allows IPv6 traffic to be encapsulated within IPv4 packets and transmitted over an IPv4 network. Here is an example of how to set up an IPv6-over-IPv4 tunnel using the ip command in Linux: ``` ip tunnel add mytunnel mode sit remote <ipv6_address> local <ipv4_address> ip link set mytunnel up ip addr add <ipv6_address>/<prefix_length> dev mytunnel ``` In this example, `<ipv6_address>` is the IPv6 address of the remote endpoint, `<ipv4_address>` is the IPv4 address of the local endpoint, and `<prefix_length>` is the length of the IPv6 prefix to be used on the tunnel interface. Once the tunnel is set up, you can use standard IPv6 networking tools to communicate with IPv6 hosts over the tunnel interface. For example, you can use the ping6 command to test connectivity: ``` ping6 <ipv6_address> ``` This will send ICMPv6 echo requests to the specified IPv6 address over the tunnel interface. Note that IPv6-over-IPv4 tunneling is just one of several mechanisms available for interconnecting IPv4 and IPv6 networks. Other mechanisms include 6to4, Teredo, and NAT64. The choice of mechanism will depend on the specific requirements of your network and the available infrastructure.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值