Advertisement
overvolt

Domotica 6

Sep 23rd, 2017
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. # PER LA CONFIGURAZIONE IP STATICO:
  2.  
  3. #1) Uno di queste due comandi, a seconda se state usando ethernet o wifi
  4. ip -4 addr show dev eth0 | grep inet
  5. ip -4 addr show dev wlan0 | grep inet
  6.  
  7. #2) Scopriamo l'ip interno del router
  8. ip route | grep default | awk '{print $3}'
  9.  
  10. #3) I DNS...
  11. cat /etc/resolv.conf
  12.  
  13. #4) E questa รจ la roba da scrivere nel file
  14.     interface eth0
  15.     static ip_address=
  16.     static routers=
  17.     static domain_name_servers=
  18.  
  19.     interface wlan0
  20.     static ip_address=
  21.     static routers=
  22.     static domain_name_servers=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement