la connessione internet è disponibile sulla wifi
ma secondo me quando cerco di navigare ubuntu cerca di instradare sulla lan
ho trovato un modo ma devo digitare ad ogni avvio questi comandi
Codice: Seleziona tutto
sudo route del default
sudo route add default gw 192.168.1.1 wlan0
Codice: Seleziona tutto
sudo -s -H
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
se può aiutare allego qualche info
Codice: Seleziona tutto
$ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:25:48:aa
inet addr:10.168.1.2 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::20f:feff:fe25:48aa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9680 (9.6 KB)
Interrupt:17
^^^^^^^^^^^^^^^^^^
wlan0 Link encap:Ethernet HWaddr 00:26:5a:09:f8:30
inet addr:192.168.1.191 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:5aff:fe09:f830/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1014 (1.0 KB) TX bytes:5363 (5.3 KB)
Codice: Seleziona tutto
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 1 0 0 eth0
0.0.0.0 10.168.1.2 0.0.0.0 UG 0 0 0 eth0