show security flow session destination-prefix
Syntax
show security flow session destination-prefix
destination-IP-prefix [brief | extensive | summary]
Description
Display information about each session that matches the specified IP destination prefix.
Options
destination-IP-prefix
—Destination IP prefix or address for which to display session information.brief | extensive | summary–Display the specified level of output.
Required Privilege Level
view
Output Fields
Table 1 lists the output
fields for the show security flow session destination-prefix
command. Output fields are listed in the approximate order in which
they appear.
Field Name |
Field Description |
---|---|
|
Number that identifies the session. You can use this ID to get additional information about the session. |
|
Policy that permitted the traffic. |
HA State |
High Availability state of the session (Active or Warm). |
|
Idle timeout after which the session expires. |
|
Incoming flow (source and destination IP addresses, application protocol, interface, session token, route, gateway, tunnel, port sequence, FIN sequence, FIN state, packets and bytes). |
|
Reverse flow (source and destination IP addresses, application protocol, interface, session token, route, gateway, tunnel, port sequence, FIN sequence, FIN state, packets and bytes). |
|
Total number of sessions. |
|
Session status. |
|
Internal flag depicting the state of the session, used for debugging purposes. |
|
Name and ID of the policy that the first packet of the session matched. |
|
The name of the source pool where NAT is used. |
|
Name of the application. |
|
Maximum session timeout. |
|
Remaining time for the session unless traffic exists in the session. |
|
Session state. |
|
Time when the session was created, offset from the system start time. |
|
Number of unicast sessions. |
|
Number of multicast sessions. |
|
Number of failed sessions. |
|
Number of sessions in use.
|
|
Number of maximum sessions. |
Sample Output
- show security flow session destination-prefix 198.51.100.1/24
- show security flow session destination-prefix 198.51.100.1/24 brief
- show security flow session destination-prefix 198.51.100.1/24 extensive
- show security flow session destination-prefix 198.51.100.1/24 summary
- show security flow session destination-prefix 2001:db8::/32
- show security flow session destination-prefix
show security flow session destination-prefix 198.51.100.1/24
root> show security flow session destination-prefix 198.51.100.1/24 Flow Sessions on FPC10 PIC1: Total sessions: 0 Flow Sessions on FPC10 PIC2: Total sessions: 0 Flow Sessions on FPC10 PIC3: Session ID: 430000098, Policy name: default-policy-00/2, Timeout: 1450, Valid In: 192.0.2.10/15190 --> 198.51.100.1/23;tcp, If: ge-7/1/0.0, Pkts: 109, Bytes: 5874, CP Session ID: 430000093 Out: 198.51.100.1/23 --> 192.0.2.10/15190;tcp, If: ge-7/1/1.0, Pkts: 64, Bytes: 4015, CP Session ID: 430000093 Total sessions: 1
show security flow session destination-prefix 198.51.100.1/24 brief
root> show security flow session destination-prefix 198.51.100.1/24 brief Flow Sessions on FPC10 PIC1: Total sessions: 0 Flow Sessions on FPC10 PIC2: Total sessions: 0 Flow Sessions on FPC10 PIC3: Session ID: 430000098, Policy name: default-policy-00/2, Timeout: 1450, Valid In: 192.0.2.10/15190 --> 198.51.100.1/23;tcp, If: ge-7/1/0.0, Pkts: 109, Bytes: 5874, CP Session ID: 430000093 Out: 198.51.100.1/23 --> 192.0.2.10/15190;tcp, If: ge-7/1/1.0, Pkts: 64, Bytes: 4015, CP Session ID: 430000093 Total sessions: 1
show security flow session destination-prefix 198.51.100.1/24 extensive
root> show security flow session destination-prefix 198.51.100.1/24 extensive Flow Sessions on FPC10 PIC1: Total sessions: 0 Flow Sessions on FPC10 PIC2: Total sessions: 0 Flow Sessions on FPC10 PIC3: Session ID: 430000098, Status: Normal Flags: 0x40/0x0/0x2008003 Policy name: default-policy-00/2 Source NAT pool: Null, Application: junos-telnet/10 Dynamic application: junos:UNKNOWN, Encryption: Unknown Application traffic control rule-set: INVALID, Rule: INVALID Maximum timeout: 1800, Current timeout: 1172 Session State: Valid Start time: 65490, Duration: 666 In: 192.0.2.10/15190 --> 198.51.100.1/23;tcp, Interface: ge-7/1/0.0, Session token: 0x6, Flag: 0xc0001021 Route: 0xa0010, Gateway: 200.0.0.10, Tunnel: 0 Port sequence: 0, FIN sequence: 0, FIN state: 0, Pkts: 109, Bytes: 5874 CP Session ID: 430000093 Out: 198.51.100.1/23 --> 200.0.0.10/15190;tcp, Interface: ge-7/1/1.0, Session token: 0x7, Flag: 0xc0001020 Route: 0x80010, Gateway: 60.0.0.2, Tunnel: 0 Port sequence: 0, FIN sequence: 0, FIN state: 0, Pkts: 64, Bytes: 4015 CP Session ID: 430000093 Total sessions: 1
show security flow session destination-prefix 198.51.100.1/24 summary
root> show security flow session destination-prefix 198.51.100.1/24 summary Flow Sessions on FPC10 PIC1: Valid sessions: 0 Pending sessions: 0 Invalidated sessions: 0 Sessions in other states: 0 Total sessions: 0 Flow Sessions on FPC10 PIC2: Valid sessions: 0 Pending sessions: 0 Invalidated sessions: 0 Sessions in other states: 0 Total sessions: 0 Flow Sessions on FPC10 PIC3: Valid sessions: 1 Pending sessions: 0 Invalidated sessions: 0 Sessions in other states: 0 Total sessions: 1
show security flow session destination-prefix 2001:db8::/32
user@host> show security flow session destination-prefix 2001:db8::/32 Session ID: 50000004, Policy name: self-traffic-policy/1, Timeout: 2 In: 10::11/42756 --> 2001:db8::1 ;icmp, If: .local..0 Out: 2001:db8::1 --> 10::11/42756;icmp, If: ge-0/3/0.0 Valid sessions: 1 Pending sessions: 0 Invalidated sessions: 0 Sessions in other states: 0 Total sessions: 1
For Multinode High Availability Scenario:
show security flow session destination-prefix
Backup Node
user@host> show security flow session destination-prefix 10.11.1.1 Session ID: 16445, Policy name: default-permit/5, HA State: Warm, Timeout: 13726, Session State: Valid In: 22.1.1.2/36816 --> 11.1.1.1/22;tcp, Conn Tag: 0x0, If: ge-0/0/1.0, Pkts: 0, Bytes: 0, Out: 11.1.1.1/22 --> 22.1.1.2/36816;tcp, Conn Tag: 0x0, If: ge-0/0/2.0, Pkts: 0, Bytes: 0, Total sessions: 1
Active Node
user@host> show security flow session destination-prefix 10.11.1.1 Session ID: 89282, Policy name: default-permit/5, HA State: Active, Timeout: 1488, Session State: Valid In: 22.1.1.2/36816 --> 11.1.1.1/22;tcp, Conn Tag: 0x0, If: ge-0/0/1.0, Pkts: 39, Bytes: 4681, Out: 11.1.1.1/22 --> 22.1.1.2/36816;tcp, Conn Tag: 0x0, If: ge-0/0/2.0, Pkts: 24, Bytes: 3977, Total sessions: 1
Release Information
Command introduced in Junos OS Release 8.5. Support.
Support for IPv6 addresses added in Junos OS Release 10.2.
Filter and view options added in Junos OS Release 10.2.