V
5  
Tags
Attachments
RazmjenaVjestina
MarcellMarsSvakodnevneDovitljivostiJednostavnaProvjeraMreze

Jednostavna provjera mreže

Tri su provjere koje obično radim da provjerim da li je sve u redu (ili što nije u redu) s mrežom. To su:

ping 10.0.0.1 # ili što god već je difoltna ruta
ping 4.2.2.2 # imam li izlaz na net 4.2.2.2 je DNS koji je uvijek up
ping www.google.com # ako prva dva rade ovo provjeri rizolvanje ip-jeva

e i sad da to sve skupa ne bi pisao svaki put iznova (pogotovo prisjećajući se koja je difoltna ruta) eto i aliasa u mom .zshrc fajlu:

alias pingd="ping `netstat -rn|grep "^0"|awk '{print $2}'`"
alias pingdn="ping 4.2.2.2"
alias pingdns="ping www.google.com"

to znači da kad neš ne štima prvo upišem pingd što provjeri da li radi mreža do prvog rutera, pingdn provjeri oće li paketi na Internet i na kraju pingdns provjeri da li radi rizolvanje domena u numeričke ip adrese. i to upravo tim redom. ovim redom je super i to da ne moram upisivati svaki put pingd, nego ga samo pozovem strelicom prema gore pa dodam n, pa još jednom i dodam s. eto... svakodnevna dovitljivost...


original Dec 13 12:10pm


 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: