R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
115
NAT configuration commands
address
Use address to add a member that specifies an address pool to the address group. The address pools of
group members might not be consecutive.
Use undo address to remove a group member from the address group.
Syntax
address start-address end-address
undo address start-address end-address
Views
Address group view
Default command level
2: System level
Parameters
start-address: Specifies the start IP address of the address group member.
end-address: Specifies the end IP address of the address group member. The end-address must not be
lower than the start-address. If they are the same, the group member has only one IP address.
Usage guidelines
You cannot add/remove a group member to/from an address group when any IP address of the group
member is being used or the address group is associated with an ACL.
You can add a maximum of 100 members to an address group.
You can configure a maximum of 255 IP addresses in an address group, and a maximum of 255 IP
addresses for all members in an address group.
The address pools of group members must not overlap with each other or with other address pools.
Examples
# Create address group 2 and add two group members to it. Specify addresses 10.1.1.1 through 10.1.1.15
for one member and addresses 10.1.1.20 through 10.1.1.30 for the other.
<Sysname> system-view
[Sysname] nat address-group 2
[Sysname-nat-address-group-2] address 10.1.1.1 10.1.1.15
[Sysname-nat-address-group-2] address 10.1.1.20 10.1.1.30
Related commands
display nat address-group
nat address-group