The 7750 SR supports all three methods following the best-practice RFC for TCP (RFC 5382, NAT Behavioral Requirements for TCP ) and UDP (RFC 4787,
Network Address Translation (NAT) Behavioral Requirements for Unicast UDP ). Port Forwarding setup, supported in this release through SNMP only, allows servers which operate on well-known ports <1024 (such as HTTP and SMTP) to request the appropriate outside port for permanent allocation.
configure card 1
card-type iom3-xp
...
mda 2
mda-type isa-bb
exit
exit all
configure isa nat-group 1
description "L2 Aware NAT Group"
active-mda-limit 1
mda 1/2
no shutdown
exit all
configure service vprn 1
route-distinguisher 64500:1
vrf-target target:64500:1
interface "int-PE-1-servers" create
address 172.16.0.1/30
sap 1/1/4:110 create
exit
exit
subscriber-interface "sub-int-1" create
address 10.0.0.254/24
dhcp
gi-address 10.0.0.254 src-ip-addr
exit
group-interface "group-int-ipoe-cpe" create
arp-populate
dhcp
proxy-server
emulated-server 10.0.0.254
lease-time hrs 1
no shutdown
exit
trusted
lease-populate 10
gi-address 10.0.0.254 src-ip-addr
no shutdown
exit
authentication-policy "radiusAuth"
sap 1/1/3:81 create
sub-sla-mgmt
sub-ident-policy "sub-ident-all"
multi-sub-sap 10
no shutdown
exit
exit
sap 1/1/3:82 create
sub-sla-mgmt
sub-ident-policy "sub-ident-all"
multi-sub-sap 10
no shutdown
exit
exit
exit
exit
no shutdown
exit all
00:0c:29:9d:10:2d Cleartext-Password := "admin"
Alc-Subsc-ID-Str = "ipoe_sub_00:0c:29:9d:10:2d",
Alc-SLA-Prof-Str = "sla-profile-nat",
Alc-Subsc-Prof-Str = "sub-profile-nat",
Framed-IP-Address = 10.0.0.2,
Framed-IP-Netmask = 255.255.255.0,
Alc-Default-Router = 10.0.0.254,
Session-Timeout = 3600
00:0c:29:34:cc:74 Cleartext-Password := "admin"
Alc-Subsc-ID-Str = "ipoe_sub_00:0c:29:34:cc:74",
Alc-SLA-Prof-Str = "sla-profile-nat",
Alc-Subsc-Prof-Str = "sub-profile-nat",
Framed-IP-Address = 10.0.0.2,
Framed-IP-Netmask = 255.255.255.0,
Alc-Default-Router = 10.0.0.254,
Session-Timeout = 3600
00:0c:29:1d:44:34 Auth-Type := Local, User-Password == "admin"
Alc-Subsc-ID-Str = "pppoe_sub_%{User-Name}",
Alc-SLA-Prof-Str = "sla-profile-nat",
Alc-Subsc-Prof-Str = "sub-profile-nat",
Framed-IP-Address = 10.0.1.2,
Framed-IP-Netmask = 255.255.255.0,
Alc-Default-Router = 10.0.1.254
configure subscriber-mgmt
authentication-policy "radiusPPP" create
password "B7O7GD4VdMqISRo2VWbZqn14IyuUXUDb" hash2
radius-authentication-server
router "management"
server 1 address 172.16.40.108 secret "j3VRf4lH1u1XI/RJOb4LkE" hash2
exit
exit
authentication-policy "radiusAuth" create
password "2VL2PrE6sZJRQPY6ipW7ifwOFyEsqb/k" hash2
radius-authentication-server
router "management"
server 1 address 172.16.15.58 secret "j3VRf4lH1u./Gx3thvq7Tk" hash2
exit
exit
sla-profile "sla-profile-nat" create
exit
sub-profile "sub-profile-nat" create
exit
sub-ident-policy "sub-ident-all" create
sub-profile-map
use-direct-map-as-default
exit
sla-profile-map
use-direct-map-as-default
exit
exit
exit all
configure service vprn 2
route-distinguisher 64500:2
vrf-target target:64500:2
subscriber-interface "sub-int-2" create
address 10.0.1.254/24
group-interface "group-int-pppoe-cpe" create
authentication-policy "radiusPPP"
sap 1/1/3:111 create
sub-sla-mgmt
sub-ident-policy "sub-ident-all"
multi-sub-sap 10
no shutdown
exit
exit
pppoe
session-limit 10
sap-session-limit 10
no shutdown
exit
exit
exit
no shutdown
exit all
configure service vprn 1
nat
inside
l2-aware
address 10.0.0.254/24
exit
exit
exit
exit all
configure service vprn 2
nat
inside
l2-aware
address 10.0.1.254/24
exit
exit
exit
exit all
configure service vprn 1
nat
outside
pool "nat-outside-pool-1" nat-group 1 type l2-aware create
port-reservation blocks 128
address-range 10.255.0.1 10.255.0.10 create
exit
no shutdown
exit
exit
exit
exit all
configure service nat
nat-policy "nat-l2aware-vprn1" create
pool "nat-outside-pool-1" router 1
exit
configure subscriber-mgmt sub-profile "sub-profile-nat"
nat-policy "nat-l2aware-vprn1"
exit all
configure subscriber-mgmt radius-accounting-policy "nat-accounting" create
update-interval 5
include-radius-attribute
mac-address
nat-port-range
subscriber-id
exit
radius-accounting-server
router "management"
server 1 address 172.16.15.58 secret "j3VRf4lH1u./Gx3thvq7Tk" hash2
exit
exit all
configure subscriber-mgmt sub-profile "sub-profile-nat"
nat-policy "nat-l2aware-vprn1"
radius-accounting-policy "nat-accounting"
configure isa nat-group 1
session-limits
watermarks high 90 low 80
exit
exit all
configure service vprn 1 nat outside pool "nat-outside-pool-1"
watermarks high 90 low 80
exit all
configure service nat nat-policy "nat-l2aware-vprn1"
port-limits
watermarks high 90 low 80
exit
session-limits
watermarks high 90 low 80
exit
exit all
From an operational point of view it may be required to unprovision an outside IP address range. To that end, the drain has been introduced. If configured, no new sessions will be set up using this address-range. Existing mappings will cease to exist only when the session ends (tcp fin, fin ack, ack) or other timeout mechanism.
configure service vprn 1
nat
outside
pool "nat-outside-pool-1" nat-group 1 type l2-aware create
port-reservation blocks 128
address-range 10.255.0.1 10.255.0.10 create
drain
exit
no shutdown
exit
exit
exit
exit all
A:PE-1# show mda
===============================================================================
MDA Summary
===============================================================================
Slot Mda Provisioned Equipped Admin Operational
Mda-type Mda-type State State
-------------------------------------------------------------------------------
1 1 m20-1gb-xp-sfp m20-1gb-xp-sfp up up
2 isa-bb isa-ms up up
===============================================================================
A:PE-1#
A:PE-1# show isa nat-group 1
===============================================================================
ISA NAT Group 1
===============================================================================
L2 Aware NAT Group
Admin state : inService Operational state : inService
Active MDA limit : 1 Reserved sessions : 0
High Watermark (%): (Not Specified) Low Watermark (%) : (Not Specified)
Last Mgmt Change : 01/18/2011 13:27:40
===============================================================================
===============================================================================
ISA NAT Group 1 members
===============================================================================
Group Member State Mda Addresses Blocks Se-% Hi Se-Prio
-------------------------------------------------------------------------------
1 1 active 1/2 1 3 < 1 N 0
-------------------------------------------------------------------------------
No. of members: 1
===============================================================================
The following table describes the show isa nat-group output fields.
A:PE-1# show isa nat-group 1 associations
===============================================================================
ISA NAT Group 1 pool associations
===============================================================================
Pool Router
-------------------------------------------------------------------------------
nat-outside-pool-1 vprn1
-------------------------------------------------------------------------------
No. of pools: 1
===============================================================================
A:PE-1# show service id 1 subscriber-hosts
=============================================================
Subscriber Host table
=============================================================
Sap Subscriber
IP Address
MAC Address PPPoE-SID Origin Fwding State
-------------------------------------------------------------
1/1/3:81 ipoe_sub_00:0c:29:9d:10:2d
10.0.0.2
00:0c:29:9d:10:2d N/A DHCP Fwding
1/1/3:82 ipoe_sub_00:0c:29:34:cc:74
10.0.0.2
00:0c:29:34:cc:74 N/A DHCP Fwding
-------------------------------------------------------------
Number of subscriber hosts : 2
=============================================================
A:PE-1# show service id 2 subscriber-hosts
=============================================================
Subscriber Host table
=============================================================
Sap Subscriber
IP Address
MAC Address PPPoE-SID Origin Fwding State
-------------------------------------------------------------
1/1/3:111 pppoe_sub_00:0c:29:1d:44:34
10.0.1.2
00:0c:29:1d:44:34 1 IPCP Fwding
-------------------------------------------------------------
Number of subscriber hosts : 1
=============================================================
A:PE-1# show service nat l2-aware-subscribers
===============================================================================
Layer-2-Aware NAT subscribers
===============================================================================
Subscriber Policy Group/Member
Outside IP Router Ports
-------------------------------------------------------------------------------
ipoe_sub_00:0c:29:34:cc:74 nat-l2aware-vprn1 1/1
10.255.0.1 1 1024-1527
ipoe_sub_00:0c:29:9d:10:2d nat-l2aware-vprn1 1/1
10.255.0.1 1 1528-2031
pppoe_sub_00:0c:29:1d:44:34 nat-l2aware-vprn1 1/1
10.255.0.1 1 2032-2535
-------------------------------------------------------------------------------
No. of subscribers: 3
===============================================================================
A:PE-1# show service active-subscribers
===============================================================================
Active Subscribers
===============================================================================
-------------------------------------------------------------------------------
Subscriber ipoe_sub_00:0c:29:34:cc:74 (sub-profile-nat)
-------------------------------------------------------------------------------
NAT Policy: nat-l2aware-vprn1
Outside IP: 10.255.0.1 (vprn1)
Ports : 1024-1527
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
(1) SLA Profile Instance sap:1/1/3:82 - sla:sla-profile-nat
-------------------------------------------------------------------------------
IP Address
MAC Address PPPoE-SID Origin
--------------------------------------------------------
10.0.0.2
00:0c:29:34:cc:74 N/A DHCP
-------------------------------------------------------------------------------
Subscriber ipoe_sub_00:0c:29:9d:10:2d (sub-profile-nat)
-------------------------------------------------------------------------------
NAT Policy: nat-l2aware-vprn1
Outside IP: 10.255.0.1 (vprn1)
Ports : 1528-2031
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
(1) SLA Profile Instance sap:1/1/3:81 - sla:sla-profile-nat
-------------------------------------------------------------------------------
IP Address
MAC Address PPPoE-SID Origin
--------------------------------------------------------
10.0.0.2
00:0c:29:9d:10:2d N/A DHCP
-------------------------------------------------------------------------------
Subscriber pppoe_sub_00:0c:29:1d:44:34 (sub-profile-nat)
-------------------------------------------------------------------------------
NAT Policy: nat-l2aware-vprn1
Outside IP: 10.255.0.1 (vprn1)
Ports : 2032-2535
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
(1) SLA Profile Instance sap:1/1/3:111 - sla:sla-profile-nat
-------------------------------------------------------------------------------
IP Address
MAC Address PPPoE-SID Origin
--------------------------------------------------------
10.0.1.2
00:0c:29:1d:44:34 1 IPCP
-------------------------------------------------------------------------------
Number of active subscribers : 3
===============================================================================
A:PE-1# show router 1 route-table
===============================================================================
Route Table (Service: 1)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
10.0.0.0/24 Local Local 04d18h09m 0
sub-int-1 0
10.255.0.1/32 Remote Static 04d23h15m 5
NAT outside: group 1 member 1 1
10.255.0.2/31 Remote Static 04d23h15m 5
NAT outside: group 1 member 1 1
10.255.0.4/30 Remote Static 04d23h15m 5
NAT outside: group 1 member 1 1
10.255.0.8/31 Remote Static 04d23h15m 5
NAT outside: group 1 member 1 1
10.255.0.10/32 Remote Static 04d23h15m 5
NAT outside: group 1 member 1 1
172.16.0.0/30 Local Local 04d22h44m 0
int-PE-1-servers 0
-------------------------------------------------------------------------------
No. of Routes: 7
===============================================================================
A:PE-1# show router 2 route-table
===============================================================================
Route Table (Service: 2)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
10.0.1.0/24 Local Local 03d20h14m 0
sub-int-2 0
-------------------------------------------------------------------------------
No. of Routes: 1
===============================================================================
*A:PE-1# tools dump nat sessions
===============================================================================
Matched 6 sessions on Slot #1 MDA #2
===============================================================================
Owner : L2-aware Subscr pppoe_sub_00:0c:29:1d:44:34
Router : 2
Flow Type : TCP Timeout (sec) : 7408
Inside IP Addr : 10.0.1.2 Inside Port : 1065
Outside IP Addr : 10.255.0.1 Outside Port : 2037
Foreign IP Addr : 172.16.0.2 Foreign Port : 21
-------------------------------------------------------------------------------
Owner : L2-aware Subscr pppoe_sub_00:0c:29:1d:44:34
Router : 2
Flow Type : ICMP Timeout (sec) : 59
Inside IP Addr : 10.0.1.2 Inside Identifier : 512
Outside IP Addr : 10.255.0.1 Outside Identifier : 2034
Foreign IP Addr : 172.16.0.2
-------------------------------------------------------------------------------
Owner : L2-aware Subscr ipoe_sub_00:0c:29:9d:10:2d
Router : 3
Flow Type : ICMP Timeout (sec) : 59
Inside IP Addr : 10.0.0.2 Inside Identifier : 1024
Outside IP Addr : 10.255.0.1 Outside Identifier : 1536
Foreign IP Addr : 172.16.0.2
-------------------------------------------------------------------------------
Owner : L2-aware Subscr ipoe_sub_00:0c:29:9d:10:2d
Router : 3
Flow Type : TCP Timeout (sec) : 7369
Inside IP Addr : 10.0.0.2 Inside Port : 1070
Outside IP Addr : 10.255.0.1 Outside Port : 1538
Foreign IP Addr : 172.16.0.2 Foreign Port : 21
-------------------------------------------------------------------------------
Owner : L2-aware Subscr ipoe_sub_00:0c:29:34:cc:74
Router : Base
Flow Type : TCP Timeout (sec) : 7439
Inside IP Addr : 10.0.0.2 Inside Port : 1035
Outside IP Addr : 10.255.0.1 Outside Port : 1043
Foreign IP Addr : 172.16.0.2 Foreign Port : 80
-------------------------------------------------------------------------------
Owner : L2-aware Subscr ipoe_sub_00:0c:29:34:cc:74
Router : Base
Flow Type : ICMP Timeout (sec) : 59
Inside IP Addr : 10.0.0.2 Inside Identifier : 512
Outside IP Addr : 10.255.0.1 Outside Identifier : 1034
Foreign IP Addr : 172.16.0.2
-------------------------------------------------------------------------------
===============================================================================
A:PE-1# tools dump nat isa resources mda 1/2
Resource Usage for Slot #1 Mda #2:
| Total | Allocated | Free
-------------------------------+------------+------------+------------
Flows | 4194304 | 0 | 4194304
Policies | 256 | 1 | 255
Port-ranges | 262144 | 3 | 262144
Ports | 201326592 | 0 | 201326592
IP-addresses | 1024 | 1 | 1024
Large-scale hosts | 131072 | 0 | 131072
L2-aware subscribers | 65536 | 3 | 65536
L2-aware hosts | 65536 | 3 | 65536
Delayed ICMP's | 200 | 0 | 200
FTP ALG session | 65536 | 0 | 65536
A:PE-1# show log event-control "nat"
=======================================================================
Log Events
=======================================================================
Application
ID# Event Name P g/s Logged Dropped
-----------------------------------------------------------------------
2001 tmnxNatPlL2AwBlockUsageHigh WA gen 1 0
2002 tmnxNatIsaMemberSessionUsageHigh WA gen 0 0
2003 tmnxNatPlLsnMemberBlockUsageHigh WA gen 0 0
2004 tmnxNatLsnSubIcmpPortUsageHigh WA gen 0 0
2005 tmnxNatLsnSubUdpPortUsageHigh WA gen 0 0
2006 tmnxNatLsnSubTcpPortUsageHigh WA gen 0 0
2007 tmnxNatL2AwSubIcmpPortUsageHigh WA gen 0 0
2008 tmnxNatL2AwSubUdpPortUsageHigh WA gen 0 0
2009 tmnxNatL2AwSubTcpPortUsageHigh WA gen 0 0
2010 tmnxNatL2AwSubSessionUsageHigh WA gen 0 0
2011 tmnxNatLsnSubSessionUsageHigh WA gen 0 0
2012 tmnxNatPlBlockAllocationLsn MI sup 0 0
2013 tmnxNatPlBlockAllocationL2Aw MI sup 0 9
2014 tmnxNatResourceProblemDetected MI gen 0 0
2015 tmnxNatResourceProblemCause MI gen 0 0
=======================================================================
1 2011/01/19 18:35:22.25 CAT MINOR: DEBUG #2001 management RADIUS
"RADIUS: Accounting Request
policy nat-accounting"
2 2011/01/19 18:35:22.25 CAT MINOR: DEBUG #2001 management RADIUS
"RADIUS: Transmit
Accounting-Request(4) 172.16.15.58:1813 id 5 len 295
STATUS TYPE [40] 4 Interim-Update(3)
NAS IP ADDRESS [4] 4 172.16.15.96
SESSION ID [44] 71 ipoe_sub_00:0c:29:9d:10:2d@1/1/3:81@sla-profile-nat_2011/
01/18 14:10:09
SESSION TIME [46] 4 95113
EVENT TIMESTAMP [55] 4 1295454922
VSA [26] 172 Alcatel(6527)
SUBSC ID STR [11] 26 ipoe_sub_00:0c:29:9d:10:2d
SUBSC NAT PORT RANGE [121] 27 10.255.0.1 1528-2031 router 1
CHADDR [27] 17 00:0c:29:9d:10:2d
INPUT_INPROF_OCTETS_64 [19] 10 0x00010000000000000000
INPUT_OUTPROF_OCTETS_64 [20] 10 0x0001000000000076e86e
INPUT_INPROF_PACKETS_64 [23] 10 0x00010000000000000000
INPUT_OUTPROF_PACKETS_64 [24] 10 0x0001000000000001733c
OUTPUT_INPROF_OCTETS_64 [21] 10 0x0001000000000076ea5c
OUTPUT_OUTPROF_OCTETS_64 [22] 10 0x00010000000000000000
OUTPUT_INPROF_PACKETS_64 [25] 10 0x0001000000000001733d
OUTPUT_OUTPROF_PACKETS_64 [26] 10 0x00010000000000000000