锐捷NAT-PT配置
时间: 2024-01-19 21:03:22 浏览: 215
以下是锐捷设备进行NAT-PT配置的步骤:
1. 配置R1和R3的静态路由,将数据包发送到NAT-PT设备进行v6v4地址转换。
```
[R1]ip route-static 2001:DB8:1:1::/64 10.1.1.2
[R3]ip route-static 10.1.1.0 255.255.255.0 2001:DB8:3:3::2
```
2. 配置R1和R3的NAT-PT地址映射。
```
[R1]nat-pt mapping 10.1.1.2 2001:DB8:1:1::2
[R3]nat-pt mapping 2001:DB8:3:3::3 10.1.1.3
```
3. 配置R2的NAT-PT进行v4tov6和v6tov4的地址转换。
```
[R2]nat-pt
[R2-nat-pt]v4v6 mapping-scheme 1
[R2-nat-pt-v4v6-1]protocol tcp
[R2-nat-pt-v4v6-1]inside-interface GigabitEthernet 0/0/1
[R2-nat-pt-v4v6-1]outside-interface GigabitEthernet 0/0/0
[R2-nat-pt-v4v6-1]address-group 1
[R2-nat-pt-v4v6-1]quit
[R2-nat-pt]v6v4 mapping-scheme 1
[R2-nat-pt-v6v4-1]protocol tcp
[R2-nat-pt-v6v4-1]inside-interface GigabitEthernet 0/0/0
[R2-nat-pt-v6v4-1]outside-interface GigabitEthernet 0/0/1
[R2-nat-pt-v6v4-1]address-group 1
[R2-nat-pt-v6v4-1]quit
[R2-nat-pt]quit
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]nat-pt enable
[R2-GigabitEthernet0/0/0]quit
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]nat-pt enable
[R2-GigabitEthernet0/0/1]quit
```
4. 验证NAT-PT配置是否成功。
```
[R2]display nat-pt statistics
```
阅读全文