5 comandos sorprendentes para redes en Linux

1. Ver interfaces y direcciones IP

alias ip4s='ip -4 -o a | cut -f2,7 -d " "'

Y luego:

$ ips
lo 127.0.0.1/8
wlp2s0 192.168.80.40/24
virbr0 192.168.122.1/24
br-a6a9cf77b9cd 172.19.0.1/16
br-c645499cee75 172.20.0.1/16
br-fd936c9f9c34 172.18.0.1/16
docker0 172.17.0.1/16
br-89aaa48cb2c9 172.21.0.1/16
lxcbr0 10.0.3.1/24

2. Ver la configuración de una conexión vpn

Esto es para NetworkManager:

nmcli -t --mode multiline -f vpn.data connection sh sb

3. Ver conexiones sin cerrar

# watch -dc ss -ntapei -o state close-wait
Every 2,0s: ss -ntapei -o state close-wait                     dublin.ireland.home: Tue Sep 24 21:22:34 2019

Recv-Q     Send-Q           Local Address:Port            Peer Address:Port
1          0                     10.8.0.2:52642           13.33.131.20:443       users:(("plasma-browser-",p
id=6307,fd=168)) uid:1000 ino:89490 sk:322 -->
         ts sack cubic wscale:8,7 rto:316 rtt:113.283/26.037 ato:40 mss:1345 pmtu:1500 rcvmss:1345 advmss:14
48 cwnd:10 bytes_sent:1297 bytes_acked:1298 bytes_received:9627 segs_out:24 segs_in:20 data_segs_out:9 data_
segs_in:12 send 949.8Kbps lastsnd:16878831 lastrcv:16931986 lastack:16878730 pacing_rate 1.9Mbps delivery_ra
te 336.3Kbps delivered:10 app_limited busy:726ms rcv_space:14480 rcv_ssthresh:64088 minrtt:92.968

4. Ver Access Points disponibles

nmcli d wifi

Comentarios

Comments powered by Disqus