<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.coolab.org/index.php?action=history&amp;feed=atom&amp;title=Configurando_OpenWRT_para_usar_modem_3G</id>
	<title>Configurando OpenWRT para usar modem 3G - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.coolab.org/index.php?action=history&amp;feed=atom&amp;title=Configurando_OpenWRT_para_usar_modem_3G"/>
	<link rel="alternate" type="text/html" href="https://wiki.coolab.org/index.php?title=Configurando_OpenWRT_para_usar_modem_3G&amp;action=history"/>
	<updated>2026-05-13T03:11:32Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.coolab.org/index.php?title=Configurando_OpenWRT_para_usar_modem_3G&amp;diff=2296&amp;oldid=prev</id>
		<title>Batata em 16h42min de 19 de janeiro de 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.coolab.org/index.php?title=Configurando_OpenWRT_para_usar_modem_3G&amp;diff=2296&amp;oldid=prev"/>
		<updated>2021-01-19T16:42:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Edição das 16h42min de 19 de janeiro de 2021&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-l40&quot; &gt;Linha 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 40:&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: #222; 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;	option proto 'dhcp'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	option proto 'dhcp'&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: #222; 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;	option metric '100'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	option metric '100'&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;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	option hostname 'cajita'&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&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: #222; 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;	option type 'bridge'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	option type 'bridge'&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: #222; 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;	option _orig_ifname 'eth1'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	option _orig_ifname 'eth1'&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: #222; 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;	option _orig_bridge 'true'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	option _orig_bridge 'true'&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;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	option ifname 'eth1'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;	option ifname 'eth1 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wan0&lt;/ins&gt;'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Batata</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.coolab.org/index.php?title=Configurando_OpenWRT_para_usar_modem_3G&amp;diff=2129&amp;oldid=prev</id>
		<title>Batata: Explicando como configurar um modem 3g no openwrt</title>
		<link rel="alternate" type="text/html" href="https://wiki.coolab.org/index.php?title=Configurando_OpenWRT_para_usar_modem_3G&amp;diff=2129&amp;oldid=prev"/>
		<updated>2021-01-08T18:13:30Z</updated>

		<summary type="html">&lt;p&gt;Explicando como configurar um modem 3g no openwrt&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Por padrão, o OpenWRT não vem com suporte para modem 3G. Caso queira compartilhar a internet de um um modem assim em um roteador com OpenWRT, precisará fazer algumas configurações antes.&lt;br /&gt;
&lt;br /&gt;
Verifique qual o driver que o USB modem (dongle) usa, nesse exemplo usaremos um dongle que tem suporte para o driver '''cdc_ether''' para compartilhar a internet. [https://openwrt.org/docs/guide-user/network/wan/wwan/start Aqui] você encontrá ajuda para modems com outros tipos de drivers.&lt;br /&gt;
&lt;br /&gt;
=== Pacotes necessários ===&lt;br /&gt;
&lt;br /&gt;
Antes de conectar o USB ao roteador, precisamos instalar alguns pacotes. Isso pode ser feito pela interface do roteador, Luci → System → Software ou através do terminal de comandos:&lt;br /&gt;
  root@cajita.lan:~# opkg install kmod-usb-net-cdc-ether usb-modeswitch &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Se a instalação foi um sucesso, conecte o USB ao roteador e verifique o que o '''dmesg''' diz.&lt;br /&gt;
  root@cajita.lan:~# dmesg&lt;br /&gt;
  [   11.070592] usb 1-1: new high-speed USB device number 3 using ehci-platform&lt;br /&gt;
  [   11.092614] usbcore: registered new interface driver cdc_ether&lt;br /&gt;
  [   11.545401] cdc_ether 1-1:1.0 eth1: register 'cdc_ether' at usb-ehci-platform-1, CDC Ethernet Device, 00:1e:10:1f:00:00&lt;br /&gt;
&lt;br /&gt;
No nosso exemplo, assim que o USB foi conectado, uma nova interface chamada '''eth1''' foi criada.&lt;br /&gt;
&lt;br /&gt;
=== Configurando a rede ===&lt;br /&gt;
Para finalizar, precisamos criar uma interface de rede que compartilhe a internet do modem 3G.&lt;br /&gt;
Isso pode ser feito através da Luci, Network → Interfaces → Add new interface… onde:&lt;br /&gt;
&lt;br /&gt;
'''General Setup'''&lt;br /&gt;
Protocol: DHCP client&lt;br /&gt;
Hostname: cajita (você escolhe o nome que quiser)&lt;br /&gt;
&lt;br /&gt;
'''Physical Settings'''&lt;br /&gt;
&lt;br /&gt;
*Bridge interfaces &lt;br /&gt;
:- Selecione essa opção&lt;br /&gt;
&lt;br /&gt;
*Interface: (selecione)&lt;br /&gt;
:- Ethernet Adapter: &amp;quot;eth1&amp;quot;&lt;br /&gt;
:- Wireless Network&lt;br /&gt;
&lt;br /&gt;
ou através do terminal de comandos:&lt;br /&gt;
  root@cajita.lan:~# vi /etc/config/network&lt;br /&gt;
  config interface 'wanb'&lt;br /&gt;
	option proto 'dhcp'&lt;br /&gt;
	option metric '100'&lt;br /&gt;
	option hostname 'cajita'&lt;br /&gt;
	option type 'bridge'&lt;br /&gt;
	option _orig_ifname 'eth1'&lt;br /&gt;
	option _orig_bridge 'true'&lt;br /&gt;
	option ifname 'eth1'&lt;/div&gt;</summary>
		<author><name>Batata</name></author>
		
	</entry>
</feed>