Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo nano /etc/network/interfaces
- # interfaces(5) file used by ifup(8) and ifdown(8)
- auto lo
- iface lo inet loopback
- # Configurar IP estatica en eth0
- auto eth0
- allow-hotplug eth0
- iface eth0 inet static
- address 192.168.1.51
- gateway 192.168.1.1
- netmask 255.255.255.0
- network 192.168.1.0
- broadcast 192.168.1.255
- dns-nameservers 80.58.61.250 80.58.61.254
- sudo /etc/init.d/networking restart
- -----------------------------
- ifconfig -a
- eth0 Link encap:Ethernet direcciónHW f8:32:e4:9e:f0:d4
- Direc. inet:192.168.1.51 Difus.:192.168.1.255 Másc:255.255.255.0
- Dirección inet6: fe80::fa32:e4ff:fe9e:f0d4/64 Alcance:Enlace
- ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
- Paquetes RX:204 errores:0 perdidos:0 overruns:0 frame:0
- Paquetes TX:547 errores:0 perdidos:0 overruns:0 carrier:0
- colisiones:0 long.colaTX:1000
- Bytes RX:16540 (16.5 KB) TX bytes:48950 (48.9 KB)
- Interrupción:20 Memoria:f7d00000-f7d20000
- lo Link encap:Bucle local
- Direc. inet:127.0.0.1 Másc:255.0.0.0
- Dirección inet6: ::1/128 Alcance:Anfitrión
- ACTIVO BUCLE FUNCIONANDO MTU:65536 Métrica:1
- Paquetes RX:395 errores:0 perdidos:0 overruns:0 frame:0
- Paquetes TX:395 errores:0 perdidos:0 overruns:0 carrier:0
- colisiones:0 long.colaTX:0
- Bytes RX:38413 (38.4 KB) TX bytes:38413 (38.4 KB)
- -------------------
- route
- Tabla de rutas IP del núcleo
- Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
- 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
- ----------------------
- ping terra.com
- ping: unknown host terra.com
- ping 192.168.1.51
- PING 192.168.1.51 (192.168.1.51) 56(84) bytes of data.
- 64 bytes from 192.168.1.51: icmp_seq=1 ttl=64 time=0.034 ms
- 64 bytes from 192.168.1.51: icmp_seq=2 ttl=64 time=0.021 ms
- 64 bytes from 192.168.1.51: icmp_seq=3 ttl=64 time=0.044 ms
- ^Z
- [5]+ Detenido ping 192.168.1.51
- ping 192.168.1.1
- PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
- From 192.168.1.51 icmp_seq=9 Destination Host Unreachable
- From 192.168.1.51 icmp_seq=10 Destination Host Unreachable
- From 192.168.1.51 icmp_seq=11 Destination Host Unreachable
- ^Z
- [6]+ Detenido ping 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement