Verify NAT configuration.
From the J-Web interface, select Configuration> View and Edit> View Configuration Text.
Alternatively, from configuration mode in the CLI perform the following tasks:
The sample output in this section displays the NAT configurations provided in Configuring Basic Source Static NAT.
- [edit]
- user@r1# show services
- nat {
-
- pool nat-pool {
- address {
- 121.0.1.0/24;
- }
- }
-
- rule nat-rule {
- match-direction output;
-
- term nat-term {
-
- nat-type (symmetric|full-cone)
- from {
-
- source-address {
- 10.0.1.0/24;
- }
- }
-
- then {
-
- translated {
-
- translation-type {
-
- source-pool nat-pool;
- translation-type source (static|dynamic);
- }
- }
- }
- }
- }
- service-set nat-service-set {
- nat-rules nat-rule;
-
- interface-service {
- service-interface sp-0/0/0;
- }
- }
-
- [edit]
- user@r1# show interfaces
- t3–1/0/0 {
- description “t3–1/0/0 on r1”;
-
- unit 0 {
-
- family inet {
-
- service {
-
- input {
- service-set nat-service-set;
- }
-
- output {
- service-set nat-service-set;
- }
- }
- }
- }
Verify that the output shows the intended NAT and interface configurations.
For more information about the format of a configuration file, see the J-series Services Router Basic LAN and WAN Access Configuration Guide.