Guest User

Untitled

a guest
Feb 6th, 2016
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo nano /etc/network/interfaces
  2.  
  3.  
  4. # interfaces(5) file used by ifup(8) and ifdown(8)
  5. auto lo
  6. iface lo inet loopback
  7.  
  8. # Configurar IP estatica en eth0
  9. auto eth0
  10. allow-hotplug eth0
  11. iface eth0 inet static
  12. address 192.168.1.51
  13. gateway 192.168.1.1
  14. netmask 255.255.255.0
  15. network 192.168.1.0
  16. broadcast 192.168.1.255
  17. dns-nameservers 80.58.61.250 80.58.61.254
  18.  
  19.  
  20. sudo /etc/init.d/networking restart
  21.  
  22. -----------------------------
  23.  
  24. ifconfig -a
  25. eth0 Link encap:Ethernet direcciónHW f8:32:e4:9e:f0:d4
  26. Direc. inet:192.168.1.51 Difus.:192.168.1.255 Másc:255.255.255.0
  27. Dirección inet6: fe80::fa32:e4ff:fe9e:f0d4/64 Alcance:Enlace
  28. ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
  29. Paquetes RX:204 errores:0 perdidos:0 overruns:0 frame:0
  30. Paquetes TX:547 errores:0 perdidos:0 overruns:0 carrier:0
  31. colisiones:0 long.colaTX:1000
  32. Bytes RX:16540 (16.5 KB) TX bytes:48950 (48.9 KB)
  33. Interrupción:20 Memoria:f7d00000-f7d20000
  34.  
  35. lo Link encap:Bucle local
  36. Direc. inet:127.0.0.1 Másc:255.0.0.0
  37. Dirección inet6: ::1/128 Alcance:Anfitrión
  38. ACTIVO BUCLE FUNCIONANDO MTU:65536 Métrica:1
  39. Paquetes RX:395 errores:0 perdidos:0 overruns:0 frame:0
  40. Paquetes TX:395 errores:0 perdidos:0 overruns:0 carrier:0
  41. colisiones:0 long.colaTX:0
  42. Bytes RX:38413 (38.4 KB) TX bytes:38413 (38.4 KB)
  43.  
  44. -------------------
  45.  
  46. route
  47. Tabla de rutas IP del núcleo
  48. Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
  49. 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
  50.  
  51.  
  52. ----------------------
  53.  
  54.  
  55. ping terra.com
  56. ping: unknown host terra.com
  57.  
  58.  
  59. ping 192.168.1.51
  60. PING 192.168.1.51 (192.168.1.51) 56(84) bytes of data.
  61. 64 bytes from 192.168.1.51: icmp_seq=1 ttl=64 time=0.034 ms
  62. 64 bytes from 192.168.1.51: icmp_seq=2 ttl=64 time=0.021 ms
  63. 64 bytes from 192.168.1.51: icmp_seq=3 ttl=64 time=0.044 ms
  64. ^Z
  65. [5]+ Detenido ping 192.168.1.51
  66.  
  67.  
  68. ping 192.168.1.1
  69. PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
  70. From 192.168.1.51 icmp_seq=9 Destination Host Unreachable
  71. From 192.168.1.51 icmp_seq=10 Destination Host Unreachable
  72. From 192.168.1.51 icmp_seq=11 Destination Host Unreachable
  73. ^Z
  74. [6]+ Detenido ping 192.168.1.1
RAW Paste Data