<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Marcus Grenfell</title>
	<atom:link href="http://marcusgrenfell.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://marcusgrenfell.wordpress.com</link>
	<description>Tecnologia maluca!</description>
	<lastBuildDate>Mon, 23 Aug 2010 03:05:08 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='marcusgrenfell.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Marcus Grenfell</title>
		<link>http://marcusgrenfell.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://marcusgrenfell.wordpress.com/osd.xml" title="Marcus Grenfell" />
	<atom:link rel='hub' href='http://marcusgrenfell.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Vlans no Vyatta</title>
		<link>http://marcusgrenfell.wordpress.com/2010/08/23/vlans-no-vyatta/</link>
		<comments>http://marcusgrenfell.wordpress.com/2010/08/23/vlans-no-vyatta/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 03:05:08 +0000</pubDate>
		<dc:creator>marcusgrenfell</dc:creator>
				<category><![CDATA[Roteamento]]></category>
		<category><![CDATA[802.1q]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rede]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[Vlan]]></category>
		<category><![CDATA[vyatta]]></category>

		<guid isPermaLink="false">http://marcusgrenfell.wordpress.com/?p=29</guid>
		<description><![CDATA[Como configurar Vlan no vyatta<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusgrenfell.wordpress.com&amp;blog=15353172&amp;post=29&amp;subd=marcusgrenfell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>No vyatta configurar uma interface como trunk e por sub-interfaces é bem simples.<br />
Vamos criar as vlans 10 e 20 na eth1 e por os endereços de rede nelas</p>
<blockquote><p>configure<br />
set interfaces ethernet eth1 vif 10 address 192.168.10.1/24<br />
set interfaces ethernet eth1 vif 20 address 192.168.20.1/24<br />
commit</p></blockquote>
<p><strong>Pronto! Ja estão as 2 vlans na interface eth1, simples não??</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/marcusgrenfell.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/marcusgrenfell.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/marcusgrenfell.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusgrenfell.wordpress.com&amp;blog=15353172&amp;post=29&amp;subd=marcusgrenfell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://marcusgrenfell.wordpress.com/2010/08/23/vlans-no-vyatta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77acec1819b62e4391f3cff9498f8754?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marcusgrenfell</media:title>
		</media:content>
	</item>
		<item>
		<title>O basico do Vyatta!</title>
		<link>http://marcusgrenfell.wordpress.com/2010/08/23/o-basico-do-vyatta/</link>
		<comments>http://marcusgrenfell.wordpress.com/2010/08/23/o-basico-do-vyatta/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 03:01:40 +0000</pubDate>
		<dc:creator>marcusgrenfell</dc:creator>
				<category><![CDATA[Roteamento]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dica]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[roteamento]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vyatta]]></category>

		<guid isPermaLink="false">http://marcusgrenfell.wordpress.com/?p=5</guid>
		<description><![CDATA[Precisando fazer um roteador/firewall pra rede?? Ta com preguiça de customizar tudo do zero de uma distro linux ou não tem conhecimento para isso? Apresento-lhes o Vyatta!! http://www.vyatta.com O que é Vyatta é uma distribuição linux(feita sobre o debian) para atuar como roteador. Bom tem toda uma empresa por traz que inclusive vende appliance dele, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusgrenfell.wordpress.com&amp;blog=15353172&amp;post=5&amp;subd=marcusgrenfell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Precisando fazer um roteador/firewall pra rede?? Ta com preguiça de customizar tudo do zero de uma distro linux ou não tem conhecimento para isso?</p>
<p>Apresento-lhes o Vyatta!!</p>
<p><a href="http://www.vyatta.com"><img title="Vyatta" src="http://www.vyatta.com/images/common/vyatta_logo.gif" alt="Vyatta" width="254" height="71" /></a></p>
<p><a href="http://www.vyatta.com" target="_blank">http://www.vyatta.com</a></p>
<p><strong>O que é</strong></p>
<p>Vyatta é uma distribuição linux(feita sobre o debian) para atuar como roteador. Bom tem toda uma empresa por traz que inclusive vende appliance dele, suporte e afins.</p>
<p>A ideia é basicamente concorrer com fabricantes como a Cisco no mercado de roteadores. Por ser tratar de um sistema linux não fica dificil de ter um otimo desempenho a um custo muito mais acessivel(exemplo uma maquina dualcore com 2gb de ram e 2 interfaces gigabit saem muito mais barato que um roteador com a mesma configuração).</p>
<p><strong>Oque ele suporta</strong></p>
<p>Quase tudo!</p>
<p>RIP,OSPF,BGP,IPv6, SNMP, PPPOE, VRRP, VLANS(802.1Q), VPN,QOS,FIREWALL,BALANCEAMENTO DE CARGA,e a lista vai embora &#8230;</p>
<p><strong>Ta mas eu tenho experiencia com cisco e quase nada com linux</strong></p>
<p>A ideia  dele é ser configurado como um <strong>ROTEADOR</strong> mesmo e não como um linux, inclusive mantendo o padrão de ter um arquivo onde fica toda a configuração. Sendo que a sintaxe dele fica bem proxima de um roteador juniper.</p>
<p><strong>Quero testar o bixo, como eu faço</strong></p>
<p>Baixe a Iso no site e rode numa maquina&#8230; ele roda como live cd mesmo, e inclusive da pra “brincar” com ele em maquina virtual e caso goste instale ele num hd.</p>
<p><strong>Parte legal, vamo por a mão no bixo!</strong></p>
<p>Após iniciar a maquina, ele cai na tela de login, onde podemos logar com o usuário vyatta e a senha vyatta.</p>
<p>Para entrar no modo de configuração, digitamos “configure” como em um roteador.</p>
<p>Para configurar algo usamos a palavra set, podemos então por exemplo</p>
<blockquote><p>set interfaces ethernet eth0 address 192.168.1.1/24</p></blockquote>
<p>Configura a interface eth0 com o ip 192.168.1.1</p>
<p>Note que apertando tab uma vez ele lista os possiveis comandos, e apertando 2 vezes ele lista e exibe uma pequena descrição</p>
<p><a href="http://marcusgrenfell.files.wordpress.com/2010/08/img1.png"><img class="alignnone size-full wp-image-12" title="Lista dos comando Vyatta" src="http://marcusgrenfell.files.wordpress.com/2010/08/img1.png?w=614&#038;h=365" alt="" width="614" height="365" /></a></p>
<p>Podemos agora digitar commit, para ele aplicar as configurações ou discard para ele exclui as alterações.</p>
<p><strong>Configurando um NAT SIMPLES</strong><br />
Bom vou exemplificar como configurar um nat para compartilhar a internet bem simples<br />
Primeiro: configurar as interfaces de rede, uma para a internet e outra para a rede interna</p>
<blockquote><p>set interfaces ethernet eth0 address dhcp<br />
set interfaces ethernet eth0 description &#8220;entrada-internet&#8221;<br />
set interfaces ethernet eth1 address 192.168.1.1/24<br />
set interfaces ethernet eth1 description &#8220;rede-interna&#8221;</p></blockquote>
<p>Segundo configurar o NAT propriamente dito<br />
Para isso basta adicionar o serviço e criar uma regra. A regra que vou criar é para todo o trafego saindo pela interface eth0</p>
<blockquote><p>set service nat rule 10<br />
set service nat rule 10 outbound-interface eth0<br />
set service nat rule 10 type masquerade</p></blockquote>
<p>Agora basta dar um commit que ja ta roteando!, Fácil não?</p>
<p><strong>DHCP PARA A REDE INTERNA</strong><br />
Assim como o nat, o dhcp é bem simples de ser configurado</p>
<p>Declara o nome do escopo,rede, inicio e fim</p>
<blockquote><p>set service dhcp-server shared-network-name rede-interna subnet 192.168.1.1/24 start 192.168.1.30 stop 192.168.1.50</p></blockquote>
<p>Declara o gateway</p>
<blockquote><p>set service dhcp-server shared-network-name rede-interna subnet 192.168.1.1/24 start 192.168.1.30 stop 192.168.1.50</p></blockquote>
<p>Declara o dns a ser usado</p>
<blockquote><p>set service dhcp-server shared-network-name rede-interna subnet 192.168.1.1/24 dns-server 200.200.200.200</p></blockquote>
<p>Caso queira pode apertar tab e ele lista todas as configurações possiveis do dhcp<br />
<a href="http://marcusgrenfell.files.wordpress.com/2010/08/img2.png"><img class="alignnone size-full wp-image-21" title="DHCP VYATTA" src="http://marcusgrenfell.files.wordpress.com/2010/08/img2.png?w=614&#038;h=188" alt="" width="614" height="188" /></a></p>
<p><a href="http://marcusgrenfell.files.wordpress.com/2010/08/img3.png"><img class="alignnone size-full wp-image-22" title="Vyatta dhcp 2" src="http://marcusgrenfell.files.wordpress.com/2010/08/img3.png?w=614&#038;h=133" alt="" width="614" height="133" /></a></p>
<p><strong>DNS</strong><br />
Facil também, porém ele a principio so trabalha como forward(lembre-se ele é feito pra ser um roteador, mas depois escrevo um tutorial pra ele fazer a resolução por ele mesmo)<br />
Caso seu provedor use ip dinamico e voce queira que ele pegue o endereço de forward pelo dhcp do provedor(supondo que eth0 é a placa onde está conectado o provedor)</p>
<blockquote><p>set service dns forwarding dhcp eth0</p></blockquote>
<p>Caso queira especificar manualmente</p>
<blockquote><p>set service dns forwarding name-server 200.200.200.200</p></blockquote>
<p>E finalmente especificar a interface onde ele vai &#8220;ouvir&#8221; as solicitações de consulta</p>
<blockquote><p>set service dns forwarding listen-on eth1</p></blockquote>
<p><strong>SSH para acesso remoto</strong><br />
Facil!</p>
<blockquote><p>set service ssh</p></blockquote>
<p><strong>COMMIT!</strong></p>
<p>Apos ter feito as configurações basta rodar o comando o seguinte comando para ele aplicar as alterações</p>
<blockquote><p>commit</p></blockquote>
<p>Caso tenha instalado ele em um disco o comando &#8220;save&#8221; também é bem util, que salva as configurações para quando ele seja reiniciado ele ja carregue está configuração.</p>
<p><strong>Debug de problemas</strong><br />
Fora do modo de configuração</p>
<p>Ver configurações</p>
<blockquote><p>show configuration</p></blockquote>
<p>Ver as interfaces e ips configurados</p>
<blockquote><p>show interfaces</p></blockquote>
<p>Tabela de roteamento</p>
<blockquote><p>show ip route</p></blockquote>
<p>E os comando mais basicos continuam valendo como ping, traceroute e afins.</p>
<p>Configuração final deste exemplo:</p>
<blockquote><p>interfaces {<br />
ethernet eth0 {<br />
address dhcp<br />
description entrada-internet<br />
hw-id 08:00:27:de:35:56<br />
}<br />
ethernet eth1 {<br />
address 192.168.1.1/24<br />
description rede-interna<br />
hw-id 08:00:27:b9:6e:7f<br />
}<br />
loopback lo {<br />
}<br />
}<br />
service {<br />
dhcp-server {<br />
shared-network-name rede-interna {<br />
subnet 192.168.1.1/24 {<br />
default-router 192.168.1.1<br />
dns-server 200.200.200.200<br />
dns-server 192.168.1.1<br />
start 192.168.1.30 {<br />
stop 192.168.1.50<br />
}<br />
}<br />
}<br />
}<br />
dns {<br />
forwarding {<br />
dhcp eth0<br />
listen-on eth1<br />
name-server 200.200.200.200<br />
}<br />
}<br />
nat {<br />
rule 10 {<br />
outbound-interface eth0<br />
type masquerade<br />
}<br />
}<br />
ssh {<br />
}<br />
}<br />
system {<br />
login {<br />
user vyatta {<br />
authentication {<br />
encrypted-password ****************<br />
}<br />
}<br />
}<br />
ntp-server 0.vyatta.pool.ntp.org<br />
package {<br />
repository community {<br />
components main<br />
distribution stable<br />
url http://packages.vyatta.com/vyatta<br />
}<br />
}<br />
syslog {<br />
global {<br />
facility all {<br />
level notice<br />
}<br />
facility protocols {<br />
level debug<br />
}<br />
}<br />
}<br />
}</p></blockquote>
<p><strong>Bom é isso, qualquer duvida tamo ae!</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/marcusgrenfell.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/marcusgrenfell.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/marcusgrenfell.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusgrenfell.wordpress.com&amp;blog=15353172&amp;post=5&amp;subd=marcusgrenfell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://marcusgrenfell.wordpress.com/2010/08/23/o-basico-do-vyatta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77acec1819b62e4391f3cff9498f8754?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marcusgrenfell</media:title>
		</media:content>

		<media:content url="http://www.vyatta.com/images/common/vyatta_logo.gif" medium="image">
			<media:title type="html">Vyatta</media:title>
		</media:content>

		<media:content url="http://marcusgrenfell.files.wordpress.com/2010/08/img1.png" medium="image">
			<media:title type="html">Lista dos comando Vyatta</media:title>
		</media:content>

		<media:content url="http://marcusgrenfell.files.wordpress.com/2010/08/img2.png" medium="image">
			<media:title type="html">DHCP VYATTA</media:title>
		</media:content>

		<media:content url="http://marcusgrenfell.files.wordpress.com/2010/08/img3.png" medium="image">
			<media:title type="html">Vyatta dhcp 2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
