Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show tcp-forwarding status

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show tcp-forwarding status
listening-port port-number listening-address ipv4-listening-address
routing-instance routing-instance-name

Description

Display the status of TCP mapping and the current TCP connections for each mapping. You can limit the display to a specific listening port/listening address combination, per routing instance. If you do not specify a routing instance, the default routing instance is assumed.

Options

listening-address ipv4-listening-address

IPv4 address that is part of a listening port/listening address combination. The listening address is one on the BNG that external management systems or remote devices must use when attempting to trigger connections on the listening port. You must also specify a listening port.

listening-port port-number

Port number that is part of a listening port/listening address combination. The listening port is one that the BNG monitors for connections to be triggered by external management systems or remote devices.

  • Range: 8000 through 8031

routing-instance routing-instance-name

Name of the routing instance for the TCP mapping.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show tcp-forwarding status command. Output fields are listed in the approximate order in which they appear.

Table 1: show tcp-forwarding status Output Fields

Field Name

Field Description

Listening on

Routing instance, IPv4 address, and port that the BNG is monitoring for connection triggers from external management systems or remote devices, in the following format:

[routing-instance-name]:ip-address:port-number

The following status and statistics are displayed for the TCP listening connection:

  • Status—Current state of the BNG regarding the TCP connection:

    • listening—The connection is active.

    • not-listening—The connection is inactive. This is typically indicative of a misconfiguration, such as an invalid listening address for the routing instance.

  • Total Bytes—Total number of bytes sent and received on the TCP listening connection.

    • Rx—Received bytes.

    • Tx—Transmitted bytes.

Forwarding to

Routing instance, IPv4 address, and port number where the BNG is forwarding data on the TCP connection, in the following format:

[routing-instance-name]:ip-address:port-number

The following statistics are displayed for the TCP port forwarding connection:

  • Total Bytes—Total number of bytes sent and received on the TCP port forwarding connection.

    • Rx—Received bytes.

    • Tx—Transmitted bytes.

Allowed Source Prefixes

IPv4 source prefixes from which the BNG can accept connection requests. Request from all other addresses are rejected. A /32 mask indicates a single acceptable address.

The allowed values are compared to the source address in the TCP header from the triggering entity.

Connections

Status and statistics for the configured TCP connections.

  • Max—Configured maximum number of connections allowed on the listening port.

  • Active—Number of TCP connections that are currently active on the listening port.

  • Source—List of source address and source port combinations with which the BNG has a current connection. The field value is displayed in the following format:

    source-ip-address:port-number

  • Listening and Forwarding—Status of the listening and forwarding connections.

    • connected—The connection is active.

    • disconnected—The connection is removed. This is a transient state, because the TCP connection pair is removed when disconnected.

  • Bytes—Number of bytes transmitted and received on the listening or forwarding connections for the source address/port combination.

    • Rx—Received bytes.

    • Tx—Transmitted bytes.

Sample Output

show tcp-forwarding status

content_copy zoom_out_map
user@host> show tcp-forwarding status
Listening on: [default:]203.0.113.50:8000
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]192.0.0.2:830
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    198.51.100.3/32
  Connections Max: 1 Active: 1
    Source: 198.51.100.3:55000
    Listening: connected Bytes Rx: 0 Tx: 0
    Forwarding: connected Bytes Rx: 0 Tx: 0
  
Listening on: [default:]203.0.113.50:8001
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]192.0.0.3:830
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    198.51.100.3/32
  Connections Max: 1 Active: 1
    Source: 198.51.100.3:55001
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
  
Listening on: [default:]203.0.113.50:8002
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]192.0.0.4:830
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    198.51.100.3/32
  Connections Max: 1 Active: 1
    Source: 198.51.100.3:55002
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
  
Listening on: [default:]203.0.113.50:8003
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]192.0.0.5:830
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    198.51.100.3/32
  Connections Max: 1 Active: 1
    Source: 198.51.100.3:55003
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
  
Listening on: [default:]203.0.113.50:8020
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]198.51.100.1:49
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    192.0.0.1/24
  Connections Max: 4 Active: 4
    Source: 192.0.0.2:55000
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
    Source: 192.0.0.3:55000
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
    Source: 192.0.0.4:56022
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0
    Source: 192.0.0.5:55000
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0

show tcp-forwarding status (Listening Port and Address)

content_copy zoom_out_map
user@host> show tcp-forwarding status listening-port 203.0.113.50 listening-address 8002
Listening on: [default:]203.0.113.50:8002
    Status: listening
    Total Bytes Rx: 0 Tx: 0
  Forwarding to: [default:]192.0.0.4:830
    Total Bytes Rx: 0 Tx: 0
  Allowed Source Prefixes:
    198.51.100.3/32
  Connections Max: 1 Active: 1
    Source: 198.51.100.3:55002
      Listening: connected Bytes Rx: 0 Tx: 0
      Forwarding: connected Bytes Rx: 0 Tx: 0

Release Information

Command introduced in Junos OS Release 18.3R1.

footer-navigation