[Samsung Galaxy Mini] stepph:
Andorid VS Ubuntu

- Updates on my network configurations -

I tried to configure a network conection between my Ubuntu on Virtual Machine and the Host WinXP PC, in order to use Internt on Ubuntu...

Installed the Virtual Network Driver - act as eth cable between host and VM, i get a new eth interface on WinXP (IP 192.168.56.1, subnetmask 255.255.255.0, no gateway) and

stepph@Ubuntu-VBox:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:08:12:5b
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe08:125b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:897 errors:0 dropped:0 overruns:0 frame:0
TX packets:412 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:897977 (897.9 KB) TX bytes:48459 (48.4 KB)
Interrupt:10 Base address:0xd000

stepph@Ubuntu-VBox:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.56.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.56.1 0.0.0.0 UG 0 0 0 eth0

on Ubuntu_VM, configured almost automaticaly by its tools...

Now, the VM is correctly browsing the web !!!

So I understand that forcing IP 192,168.0.1 for ICS is not needed ...

As DOC alredy suggested - i changed the usbtether.sh script, by removing the ifconfig line, , and after enabling tethering, and running the script (that set route, set dns, set proxy, enable adbd on eth) i have:

usb0 Link encap:Ethernet HWaddr F2:B0:31:31:03:72
inet addr:192.168.42.129 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::f0b0:31ff:fe31:372/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:244 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22871 (22.3 KiB) TX bytes:1826 (1.7 KiB)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.42.0 * 255.255.255.0 U 0 0 0 usb0
default 192.168.42.1 0.0.0.0 UG 0 0 0 usb0

Next side.

-> on pc-side, changing the IP configuartion of PC-to-Next eth IF

Scheda Ethernet Connessione a Samsung GT-S5570:
Suffisso DNS specifico per connessione:
Indirizzo IP. . . . . . . . . . . . . : 192.168.42.1
Subnet mask . . . . . . . . . . . . . : 255.255.255.0
Gateway predefinito . . . . . . . . . :

A scheme of configuration is reported in attached figure...

The routing table on the PC is - without any manual configuration :

C:\>route print
===========================================================================
Elenco interfacce
0x1 ........................... MS TCP Loopback interface
0x2 ...00 21 9b ed e4 be ...... Broadcom NetXtreme 57xx Gigabit Controller 0x3 ...08 00 27 00 a4 b4 ...... VirtualBox Host-Only Ethernet Adapter 0x10005 ...2a 6c 1c 31 2b ba .. SAMSUNG Android USB Remote NDIS Network Device ===========================================================================
===========================================================================
Route attive:
Indirizzo rete Mask Gateway Interfac. Metric
0.0.0.0 0.0.0.0 AA.BB.CC.1 AA.BB.CC.62 20

[COLOR=blue] AA.BB.CC.0 255.255.255.0 AA.BB.CC.62 AA.BB.CC.62 20[/COLOR]
[COLOR=blue] AA.BB.CC.62 255.255.255.255 127.0.0.1 127.0.0.1 20[/COLOR]
[COLOR=blue] AA.255.255.255 255.255.255.255 AA.BB.CC.62 AA.BB.CC.62 20[/COLOR]

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

[COLOR=seagreen] 192.168.42.0 255.255.255.0 192.168.42.1 192.168.42.1 10[/COLOR]
[COLOR=seagreen] 192.168.42.1 255.255.255.255 127.0.0.1 127.0.0.1 10[/COLOR]
[COLOR=seagreen] 192.168.42.255 255.255.255.255 192.168.42.1 192.168.42.1 10[/COLOR]

[COLOR=magenta] 192.168.56.0 255.255.255.0 192.168.56.1 192.168.56.1 20[/COLOR]
[COLOR=magenta] 192.168.56.1 255.255.255.255 127.0.0.1 127.0.0.1 20[/COLOR]
[COLOR=magenta] 192.168.56.255 255.255.255.255 192.168.56.1 192.168.56.1 20[/COLOR]

255.255.255.255 255.255.255.255 AA.BB.CC.62 AA.BB.CC.62 1
255.255.255.255 255.255.255.255 192.168.42.1 192.168.42.1 1
255.255.255.255 255.255.255.255 192.168.56.1 192.168.56.1 1

Gateway predefinito: AA.BB.CC.1
===========================================================================
Route permanenti:
Nessuno

Why Ubuntu is surfing, while the next gives error ?

[note: ping www.google.com gives error in every net, since my proxy do not let ICMP packet pass...]

Sniffing packets...