Entiendo que tu PC con Ubuntu tiene dos conexiones de red:mariano.castellano wrote:Gracias por responder!. lmarmisa probé habilitando el puerto y no me funcionó. El problema también está que cuando conecto el cable de red (entre el raspi y la pc) me quedo sin WIFI en la PC. Tal vez la solución de actkk2000 pueda andar. En cuanto lo pueda hacer les comento como me fue.
Cualquier cosa que se les ocurra bienvenido sea.
Muchas gracias!!
Code: Select all
pi@rasputin ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default in
Code: Select all
pi@rasputin ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:34:2c:34
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2952446 errors:0 dropped:0 overruns:0 frame:0
TX packets:2952446 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300924371 (286.9 MiB) TX bytes:300924371 (286.9 MiB)
wlan0 Link encap:Ethernet HWaddr d8:fe:e3:67:8d:fa
inet addr:192.168.18.222 Bcast:192.168.18.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1862429 errors:0 dropped:24650 overruns:0 frame:0
TX packets:1592952 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2328929322 (2.1 GiB) TX bytes:165581524 (157.9 MiB)
pi@rasputin ~ $
Code: Select all
pi@rasputin ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.18.1 0.0.0.0 UG 0 0 0 wlan0
192.168.18.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
pi@rasputin ~ $
Code: Select all
pi@rasputin ~ $ cat /proc/sys/net/ipv4/ip_forward
1
pi@rasputin ~ $
Code: Select all
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.6
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Code: Select all
pi@raspberrypi ~ $ sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:f5:d7:4b
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:219 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20469 (19.9 KiB) TX bytes:18018 (17.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code: Select all
pi@raspberrypi ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
pi@raspberrypi ~ $ cat /proc/sys/net/ipv4/ip_forward
0
Code: Select all
21:17:43~ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.0.1
broadcast 192.168.1.255
gateway 192.168.1.1
Code: Select all
21:17:50~ ifconfig
eth0 Link encap:Ethernet direcciónHW 2c:27:d7:a9:1b:65
Dirección inet6: fe80::2e27:d7ff:fea9:1b65/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:4895 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:9878 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:565550 (565.5 KB) TX bytes:1009255 (1.0 MB)
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:102847 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:102847 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:0
Bytes RX:9337859 (9.3 MB) TX bytes:9337859 (9.3 MB)
wlan0 Link encap:Ethernet direcciónHW c0:f8:da:21:27:a5
Direc. inet:192.168.0.15 Difus.:192.168.0.255 Másc:255.255.255.0
Dirección inet6: fe80::c2f8:daff:fe21:27a5/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:6810061 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:4534101 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:8894902427 (8.8 GB) TX bytes:514894319 (514.8 MB)
Code: Select all
21:18:32~ route -n
Tabla de rutas IP del núcleo
Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
Code: Select all
21:18:58~ cat /proc/sys/net/ipv4/ip_forward
0
Code: Select all
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
(tal vez haya más lineas correspondientes a la interfaz wifi)
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.6
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.5
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Code: Select all
21:18:58~ cat /proc/sys/net/ipv4/ip_forward
0
Code: Select all
sudo nano /etc/resolv.conf
Code: Select all
nameserver 192.168.0.1
Code: Select all
nameserver 8.8.8.8
nameserver 8.8.4.4
Code: Select all
pi@rasputin ~ $ cat /etc/resolv.conf
nameserver 192.168.18.1
pi@rasputin ~ $
Code: Select all
pi@rasputin ~ $ ping -c4 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=66.4 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=67.9 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=67.2 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=53 time=65.8 ms
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 65.897/66.871/67.971/0.788 ms
pi@rasputin ~ $
Code: Select all
pi@rasputin ~ $ ping -c4 google.com
PING google.com (216.58.210.142) 56(84) bytes of data.
64 bytes from mad06s09-in-f14.1e100.net (216.58.210.142): icmp_req=1 ttl=55 time=66.2 ms
64 bytes from mad06s09-in-f14.1e100.net (216.58.210.142): icmp_req=2 ttl=55 time=65.6 ms
64 bytes from mad06s09-in-f14.1e100.net (216.58.210.142): icmp_req=3 ttl=55 time=70.4 ms
64 bytes from mad06s09-in-f14.1e100.net (216.58.210.142): icmp_req=4 ttl=55 time=61.9 ms
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 61.930/66.083/70.443/3.025 ms
pi@rasputin ~ $
Code: Select all
20:11:14~ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Code: Select all
20:11:22~ ifconfig
eth0 Link encap:Ethernet direcciónHW 2c:27:d7:a9:1b:65
Direc. inet:192.168.1.5 Difus.:192.168.1.255 Másc:255.255.255.0
Dirección inet6: fe80::2e27:d7ff:fea9:1b65/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:738 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:606 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:81741 (81.7 KB) TX bytes:65315 (65.3 KB)
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:1813 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:1813 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:0
Bytes RX:181186 (181.1 KB) TX bytes:181186 (181.1 KB)
wlan0 Link encap:Ethernet direcciónHW c0:f8:da:21:27:a5
Direc. inet:192.168.0.15 Difus.:192.168.0.255 Másc:255.255.255.0
Dirección inet6: fe80::c2f8:daff:fe21:27a5/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:306197 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:196605 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:414522305 (414.5 MB) TX bytes:21950253 (21.9 MB)
Code: Select all
20:11:32~ route -n
Tabla de rutas IP del núcleo
Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
20:11:39~ cat /proc/sys/net/ipv4/ip_forward
1
Code: Select all
pi@raspberrypi ~ $ cat /etc/network/interfaces
iface lo inet loopback
iface eth0 inet static
address 192.168.1.6
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.5
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Code: Select all
pi@raspberrypi ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:f5:d7:4b
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:219 errors:0 dropped:0 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19793 (19.3 KiB) TX bytes:27497 (26.8 KiB)
lo Link encap:Local Loopback
LOOPBACK MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code: Select all
pi@raspberrypi ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.5 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
pi@raspberrypi ~ $ cat /proc/sys/net/ipv4/ip_forward
0
Code: Select all
pi@raspberrypi ~ $ cat /etc/resolv.conf
nameserver 192.168.0.1
Code: Select all
pi@raspberrypi ~ $ ping -c4 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3005ms
Code: Select all
pi@raspberrypi ~ $ ping -c4 google.com
ping: unknown host google.com
Code: Select all
pi@raspberrypi ~ $ ping -c4 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_req=1 ttl=63 time=4.29 ms
64 bytes from 192.168.0.1: icmp_req=2 ttl=63 time=1.96 ms
64 bytes from 192.168.0.1: icmp_req=3 ttl=63 time=1.82 ms
64 bytes from 192.168.0.1: icmp_req=4 ttl=63 time=1.84 ms
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 1.824/2.482/4.299/1.051 ms