Exibir configurações de rede
Publicado por Sathioro 03/12/2006
[ Hits: 6.911 ]
Esse script permite juntar todas as informações de configuração da sua rede (eth0) num formato bem amigável, exemplo:
Endereço IP: xxx.xxx.xxx.xxx
Máscara de rede: xxx.xxx.xxx.xxx
Gateway: xxx.xxx.xxx.xxx
DHCP: xxx.xxx.xxx.xxx
DNS Primário: xxx.xxx.xxx.xxx
DNS Secundário: xxx.xxx.xxx.xxx
#!/bin/bash ifconfig eth0 | grep -w 'inet'| awk ' { print $2 }'; ifconfig eth0 | grep -w 'inet'| awk ' { print $3 }'; ifconfig eth0 | grep -w 'inet'| awk ' { print $4 } '; route | grep -w 'default'| awk ' { print echo " Gateway " $2 } '; cat /etc/resolv.conf |grep name |awk '{ print $1 $2 } '
Configuraçao da rede wireless no slackware
Postfix - Listar usuários com over quota
Instalação do Nagios por script
Implementando Statement e RecordSet em bash script
Criar entrada (menuentry) ISO no Grub
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar o VIM 9.1 no Debian 12
Como saber o range de um IP público?
Muitas dificuldades ao instalar distro Linux em Notebook Sony Vaio PCG-6131L (VPCEA24FM)
Slackpkg+ (Slackpkg Plus) está de volta!
Como dividir duas janelas igualmente e lado-a-lado na sua tela