<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>https://www.raspibo.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Chip%3A_USB_On_The_Go_Ethernet_Connection</id>
	<title>Chip: USB On The Go Ethernet Connection - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="https://www.raspibo.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Chip%3A_USB_On_The_Go_Ethernet_Connection"/>
	<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Chip:_USB_On_The_Go_Ethernet_Connection&amp;action=history"/>
	<updated>2026-05-04T20:45:54Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Chip:_USB_On_The_Go_Ethernet_Connection&amp;diff=5060&amp;oldid=prev</id>
		<title>Renzo il 18:20, 11 feb 2016</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Chip:_USB_On_The_Go_Ethernet_Connection&amp;diff=5060&amp;oldid=prev"/>
		<updated>2016-02-11T18:20:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 18:20, 11 feb 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Chip can create a TCP-IP networking connection on USB. (it creates a virtual ethernet on USB, RNDIS protocol).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Chip can create a TCP-IP networking connection on USB. (it creates a virtual ethernet on USB, RNDIS protocol).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you run ChipOS (i.e. the pre-installed OS on the v.1 Chip) you do not need to re-compile your kernel or doing hard hacking. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It needs just some configuration commands.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When Chip is connected to a host computer by a USB cable (USB-A to the host, USB micro to chip) it normally provides a serial emulation on USB.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When Chip is connected to a host computer by a USB cable (USB-A to the host, USB micro to chip) it normally provides a serial emulation on USB.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://www.raspibo.org/wiki/index.php?title=Chip:_USB_On_The_Go_Ethernet_Connection&amp;diff=5059&amp;oldid=prev</id>
		<title>Renzo: Creata pagina con 'Chip can create a TCP-IP networking connection on USB. (it creates a virtual ethernet on USB, RNDIS protocol).  When Chip is connected to a host computer by a USB cable (USB-A...'</title>
		<link rel="alternate" type="text/html" href="https://www.raspibo.org/wiki/index.php?title=Chip:_USB_On_The_Go_Ethernet_Connection&amp;diff=5059&amp;oldid=prev"/>
		<updated>2016-02-11T18:11:56Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;#039;Chip can create a TCP-IP networking connection on USB. (it creates a virtual ethernet on USB, RNDIS protocol).  When Chip is connected to a host computer by a USB cable (USB-A...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Chip can create a TCP-IP networking connection on USB. (it creates a virtual ethernet on USB, RNDIS protocol).&lt;br /&gt;
&lt;br /&gt;
When Chip is connected to a host computer by a USB cable (USB-A to the host, USB micro to chip) it normally provides a serial emulation on USB.&lt;br /&gt;
(Chip is powered from the host, too).&lt;br /&gt;
&lt;br /&gt;
Edit /etc/modules:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# This file contains the names of kernel modules that should be loaded&lt;br /&gt;
# at boot time, one per line. Lines beginning with &amp;quot;#&amp;quot; are ignored.&lt;br /&gt;
#g_serial&lt;br /&gt;
g_ether&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add an IP address to the usbnet interface (10.1.1.2 is just an example):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nmcli con add type ethernet con-name usbnet ifname usb0 ip4 10.1.1.2/24 gw4 10.1.1.1&lt;br /&gt;
sudo nmcli con mod usbnet ipv4.dns &amp;quot;8.8.8.8 8.8.4.4&amp;quot;&lt;br /&gt;
sudo nmcli con up usbnet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot chip.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything is okay, after the boot on the host there will be a new network interface.&lt;br /&gt;
On my debian laptop the new interface appears like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ip addr&lt;br /&gt;
....&lt;br /&gt;
27: enx2a661f404b74: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;br /&gt;
    link/ether 2a:66:1f:40:4b:74 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now on the host add a suitable address to the new interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ip addr add 10.1.1.1/24 dev enx2a661f404b74&lt;br /&gt;
# ip link set enx2a661f404b74 up&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Chip is now &amp;quot;online&amp;quot; using the virtual ethernet on the USB.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ping 10.1.1.2&lt;br /&gt;
PING 10.1.1.2 (10.1.1.2) 56(84) bytes of data.&lt;br /&gt;
64 bytes from 10.1.1.2: icmp_seq=1 ttl=64 time=0.245 ms&lt;br /&gt;
64 bytes from 10.1.1.2: icmp_seq=2 ttl=64 time=0.172 ms&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can use ssh to reach your chip computer.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh chip@10.1.1.2&lt;br /&gt;
chip@10.1.1.2's password: &lt;br /&gt;
&lt;br /&gt;
The programs included with the Debian GNU/Linux system are free software;&lt;br /&gt;
the exact distribution terms for each program are described in the&lt;br /&gt;
individual files in /usr/share/doc/*/copyright.&lt;br /&gt;
&lt;br /&gt;
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent&lt;br /&gt;
permitted by applicable law.&lt;br /&gt;
Last login: Thu Feb 11 13:51:27 2016 from 10.1.1.1&lt;br /&gt;
chip@chip:~$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is convenient to set up NAT and forwarding on the host.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe iptable_nat&lt;br /&gt;
# echo &amp;quot;1&amp;quot; &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(if the host is connected through eth0)&lt;br /&gt;
 # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;br /&gt;
(if the host is connected through wlan0)&lt;br /&gt;
 # iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
In this way chip is connected to the world using a wired connection.&lt;br /&gt;
&lt;br /&gt;
When you want switch back to the &amp;quot;terminal emulation mode&amp;quot; on the USB it is sufficient to swap the comments in the file /etc/modules:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/modules: kernel modules to load at boot time.&lt;br /&gt;
#&lt;br /&gt;
# This file contains the names of kernel modules that should be loaded&lt;br /&gt;
# at boot time, one per line. Lines beginning with &amp;quot;#&amp;quot; are ignored.&lt;br /&gt;
#g_serial&lt;br /&gt;
g_ether&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nota Bene: If something goes wrong (the networking connection does not work properly) you have two ways to have a shell access to edit /etc/modules:&lt;br /&gt;
* plug a monitor and a keyboard&lt;br /&gt;
* use a USB uart cable (e.g. Adafruit's [https://www.adafruit.com/products/954 console cable])&lt;/div&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
</feed>