F3215-HP Load Balancing Module Network Management Command Reference-6PW101
124
Examples
# Configure a NAT-PT address pool.
<Sysname> system-view
[Sysname] natpt address-group 3 2.3.4.5 2.3.4.10
natpt enable
Use natpt enable to enable the NAT-PT feature on an interface.
Use undo natpt enable to disable the NAT-PT feature on an interface.
Syntax
natpt enable
undo natpt enable
Default
The NAT-PT feature is disabled on an interface. No NAT-PT is implemented for packets received or sent
on the interface.
Views
Interface view
Default Level
2: System level
Examples
# Enable the NAT-PT feature on an interface.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/2
[Sysname-GigabitEthernet0/2] natpt enable
natpt prefix
Use natpt prefix to configure a NAT-PT prefix.
Use undo natpt prefix to remove the configured NAT-PT prefix.
Syntax
natpt prefix natpt-prefix [ interface interface-type interface-number [ nexthop ipv4-address ] ]
undo natpt prefix natpt-prefix
Views
System view
Default Level
2: System level
Parameters
natpt-prefix: IPv6 address prefix, 96 bits in length.
interface interface-type interface-number: Specifies an interface by its type and number. If the specified
interface exists and is enabled with NAT-PT, the matching packets are translated. If the specified interface
does not exist or is not enabled with NAT-PT, the matching packets are discarded.