Carrier Grade NAT Operational Commands

Carrier Grade NAT Show Commands

The RBFS CGNAT operational commands provide detailed information about the address translation operations.

NAT Pool Information

This command displays information about IPv4 address pool for a user.

Syntax:

show address-translation allocation <options>

Option Description

pool

Specify the pool name.

user

Specify the user name.

Example for NAT pool allocation.

supervisor@rtbrick.net: cfg> show address-translation allocation pool
Pool: pool1
  Profile: nat_profile1
  Instance: ip2vrf
  Allocated: 100.00%
Pool: pool2
  Profile: nat_profile1
  Instance: ip2vrf
  Allocated: 100.00%
supervisor@rtbric

Example for allocation details for subscribers

supervisor@rtbrick.net: cfg> show address-translation allocation user
User                             Original Address     Translated Address   Port Range
ppp-0/1/20/72339069014638594     10.100.128.1         100.100.100.100      14912 - 14975
ppp-0/1/20/72339069014638594     10.100.128.1         100.100.100.100      18944 - 19007
ppp-0/1/20/72339069014638595     10.100.128.3         100.100.100.101      14976 - 15039
ppp-0/1/20/72339069014638595     10.100.128.3         100.100.100.101      18880 - 18943
ppp-0/1/20/72339069014638596     10.100.128.5         100.100.100.101      15104 - 15167
ppp-0/1/20/72339069014638596     10.100.128.5         100.100.100.101      17856 - 17919
ppp-0/1/20/72339069014638597     10.100.128.7         100.100.100.100      15104 - 15167
ppp-0/1/20/72339069014638597     10.100.128.7         100.100.100.100      17792 - 17855
ppp-0/1/20/72339069014638598     10.100.128.9         100.100.100.101      15040 - 15103
ppp-0/1/20/72339069014638598     10.100.128.9         100.100.100.101      17792 - 17855
ppp-0/1/20/72339069014638599     10.100.128.11        100.100.100.100      15040 - 15103

NAT Rule Details

Syntax:

show address-translation rule <options>

Option Description

-

Without any option, the command displays the information for all rules.

instance

Displays NAT rule information for the specified instance.

summary

Displays summary of the information for the NAT rule.

user

Displays user information for the NAT rule.

Example for address translation rule for an instance.

supervisor@rtbrick.net: cfg> show address-translation rule instance default
Instance: default
User                             Protocol   Original Address        Translated Address      Direction
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60011    100.100.100.1, 1048     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60011    100.100.100.2, 1034     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60012    100.100.100.1, 1049     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60012    100.100.100.2, 1035     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60013    100.100.100.1, 1050     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60013    100.100.100.2, 1036     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60014    100.100.100.1, 1051     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60014    100.100.100.2, 1037     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60015    100.100.100.1, 1052     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60015    100.100.100.2, 1038     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60016    100.100.100.1, 1053     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60016    100.100.100.2, 1039     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60017    100.100.100.1, 1054     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60017    100.100.100.2, 1040     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60018    100.100.100.1, 1024     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60018    100.100.100.2, 1041     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60019    100.100.100.1, 1025     Both
ppp-0/0/17/72339069014638604     tcp        11.100.128.25, 60019    100.100.100.2, 1042     Both
ipoe-0/0/18/216454257090494481   tcp        11.100.128.24, 60020    100.100.100.1, 1026     Both

Example for address translation rule summary. The example summary shows the total number of NAT rules for TCP flows.

supervisor@rtbrick.net: cfg> show address-translation rule summary
Instance: default
  Source     Protocol      Rules
  Dynamic    tcp              62
  Total Dynamic Rules         62

Example for address translation rules for subscribers.

supervisor@rtbrick: cfg> show address-translation rule
Instance: ip2vrf
User                             Protocol   Original Address        Translated Address      Direction
ipoe-0/1/21/216454257090494746   tcp        11.100.129.0, 65001     100.100.100.101, 36874  Both
ipoe-0/1/21/216454257090494975   tcp        11.100.130.0, 65001     100.100.100.101, 60170  Both
ipoe-0/1/21/216454257090495232   tcp        11.100.131.0, 65001     100.100.101.101, 38730  Both
ppp-0/1/20/72339069014638594     tcp        10.100.128.1, 65001     100.100.100.100, 14914  Both
ipoe-0/1/21/216454257090494501   tcp        11.100.128.1, 65001     100.100.100.100, 2122   Both
ppp-0/1/20/72339069014638722     tcp        10.100.129.1, 65001     100.100.100.100, 19924  Both
ipoe-0/1/21/216454257090494747   tcp        11.100.129.1, 65001     100.100.100.100, 36746  Both

NAT Trap Statistics

Syntax:

show address-translation trap statistics

This command displays the information of packets trapped in the NAT daemon.

Example:

supervisor@rtbrick: cfg> show address-translation trap statistics
Protocol   Flags                     Status             Count
tcp        -|syn|-|-|-|-|-|-|-       Success           152958
tcp        -|syn|-|-|-|-|-|-|-       Failure            23186
Total Successful Traps:                                152958
Total Failed Traps:                                     23186

NAT Error Details

This command displays NAT error information.

Syntax:

show address-translation error

Example for address translation platform resource information.

supervisor@rtbrick.net: cfg> show address-translation error
INSTANCE - Packet Table
    Counter        : 4
    Current Update : Thu May 02 10:05:52 GMT +0000 2024
    Last Update    : Thu May 02 10:05:52 GMT +0000 2024
POOL_CFG - Pool Flush
    Counter        : 1
    Current Update : Thu May 02 10:05:43 GMT +0000 2024
    Last Update    : Thu May 02 10:05:43 GMT +0000 2024