ipshow - exibir informações de sua rede
Publicado por Luriel Santana (última atualização em 28/03/2020)
[ Hits: 2.261 ]
Homepage: luriel.casadopinguim.com.br
Para rodar o comando basta salvar o script ipshow.sh e dar permissão de execução:
$ chmod +x ipshow.sh
#!/bin/bash # Information: Script show information of network parametres # Version: 0.0.3 # Date: 20200229 # Autors: # ASRD - Alex Dias - alex@linux.ao # DAL - Decio Lilunga - decio@linux.ao # LNS - Luriel Santana - luriel@linux.ao # Variable get iface=`/sbin/ifconfig | grep mtu | tr -s " " | cut -d " " -f 1 | tr ":" " " | grep -v lo` show_info() { nic=$1 ip=`/sbin/ifconfig ${nic} | awk '/inet/ {print}' | awk '{print $2}' | head -1` ip6=`/sbin/ifconfig ${nic} | awk '/inet6/ {print}' | awk '{print $2}' | head -1` mask=`/sbin/ifconfig ${nic} | awk '/inet/ {print}' | awk '{print $4}' | head -1` gw=`/sbin/route -n | awk '/'${nic}'/ {print}' | awk '{print $2}' | head -1` mac=`/sbin/ifconfig ${nic} | awk '/ether/ {print}' | awk '{print $2}' | head -1` # Show Out put Information echo "Interface: $nic" echo " v4 IP: $ip" echo " MK: $mask" echo " GW: $gw" echo " MC: $mac" echo " " echo " v6 IP: $ip6" } # Loop show Information for i in $iface do show_info $i echo " " done
conssh.sh - Frontend para SSH via proxy HTTP
Nenhum coment�rio foi encontrado.
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Proteja seu Linux Mint com o Timeshift: Restaure o sistema mesmo que ele não inicie!
Instalando Google Chrome no Debian 13
Alguém pode me recomendar um editor de textos? [RESOLVIDO] (9)
Erro de interface de Rede no Virt Manager dentro Debian 13 KDE (0)
meus dois pen drives não são mais reconhecidos pelo meu PC apos tentar... (3)