Difference between revisions of "CentOS 8.x iproute2 basics"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="iproute2 basics">CentOS 8.x Network configuration|Network configuration</yambe:breadcrumb> =CentOS 8.x iproute2 basics= ==See network connection infor...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x Network configuration|Network configuration]] > [[CentOS 8.x iproute2 basics]] | |||
==See network connection information== | ==See network connection information== | ||
Line 31: | Line 30: | ||
'''Also see [[OpenSuse Leap 15 iproute2 basics]]''' | * '''Also see [[OpenSuse Leap 15 iproute2 basics]]''' | ||
* '''There are a few older articles at [[IP routing 2 configuration]]''' | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x Network configuration|Network configuration]] > [[CentOS 8.x iproute2 basics]] |
Latest revision as of 03:52, 19 April 2022
Home > CentOS > CentOS 8.x > System Administration > Network configuration > CentOS 8.x iproute2 basics
See network connection information
To see list of network connections use:
ss -anp
where options mean
- -a
- All listening + established port details
- -n
- Do not resolve service names, hostnames, etc.
- -p
- Show owning process ID
For further filtering you can consider using:
- -t
- Show only tcp sockets
- -u
- Show only udp sockets
- -x
- Show only unix sockets
- -4
- Show only IPv4 information
- -6
- Show only IPv6 information
- -l
- Show only listening sockets
See no. of established connections per IP
To see no. of established connections per IP use:
ss -at | grep ESTAB | awk '{print $5}' | cut -d":" -f1 | sort | uniq -c | sort -n
- Also see OpenSuse Leap 15 iproute2 basics
- There are a few older articles at IP routing 2 configuration
Home > CentOS > CentOS 8.x > System Administration > Network configuration > CentOS 8.x iproute2 basics