<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">&gt; Mi sa che per gli switch managed non si può fare nulla su CORE :(</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">anche io ho avuto questa sensazione però possiamo &quot;emularli&quot; creandoci un dispositivo ad hoc, ereditato da Router, che tira fuori N interfacce di rete e bridga, su ognuna di queste, una VLAN.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Non sto scherzando, col bridge abbiamo porte e collegamento fisico come se fosse uno switch normale e per il managed basta escludere alcune porte dal bridge e taggarle.</span></div>
<div>Dobbiamo provarci.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">Il giorno 16 dicembre 2013 14:10, Vincenzo Pirrone <span dir="ltr">&lt;<a href="mailto:linuspax@gmail.com" target="_blank">linuspax@gmail.com</a>&gt;</span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; E&#39; sufficiente dare le basi per proporre un&#39;alternativa a packet tracer di Cisco, ovvero avere un software in cui simulare dei router (e degli switch managed?)<br>

<br>
Mi sa che per gli switch managed non si può fare nulla su CORE :(<br>
<br>
<br>
Il 15/12/2013 22:19, Giuseppe De Marco ha scritto:<br>
&gt; Con CORE hai un sistema di virtualizzazione, pertanto fai veramente<br>
&gt; tutto usando linux-hosts.<br>
&gt; Questi &quot;lxc&quot; hanno tutti i programmi del pc host.<br>
&gt;<br>
&gt; Secondo me è il sistema migliore per imparare le reti, mi sta appassionando.<br>
&gt;<br>
&gt; Ne approfitto per postare un Service customizzato.<br>
&gt; Lo uso per creare le antenne in bridge così come usate da noi in ninux<br>
&gt;<br>
&gt;<br>
&gt; &lt;/home/user/.core/myservices/ninucs.py&gt;<br>
&gt;<br>
&gt; #<br>
&gt; # CORE - ninux cosenza services<br>
&gt; #<br>
&gt;<br>
&gt; &#39;&#39;&#39;<br>
&gt; ninucs.py: ninux cosenza services<br>
&gt; &#39;&#39;&#39;<br>
&gt;<br>
&gt; import os<br>
&gt;<br>
&gt; from core.service import CoreService, addservice<br>
&gt; from core.services.utility import UtilService<br>
&gt; from core.constants import *<br>
&gt;<br>
&gt; class CPE_Bridge(CoreService):<br>
&gt;     &#39;&#39;&#39;<br>
&gt;     &#39;&#39;&#39;<br>
&gt;     _name = &quot;CPE_Bridge&quot;<br>
&gt;     _group = &quot;Ninux&quot;<br>
&gt;     _configs = (&#39;bridge.sh&#39;, )<br>
&gt;     _startindex = 60<br>
&gt;     _startup = (&#39;sh bridge.sh&#39;,)<br>
&gt;<br>
&gt;     @classmethod<br>
&gt;     def generateconfig(cls, node, filename, services):<br>
&gt;         &#39;&#39;&#39;<br>
&gt;         &#39;&#39;&#39;<br>
&gt;<br>
&gt;         print filename<br>
&gt;<br>
&gt;         cfg = &quot;&quot;&quot;#!/bin/bash<br>
&gt; brctl addbr br0<br>
&gt; brctl addif br0 eth0<br>
&gt; brctl addif br0 eth1<br>
&gt; ip link set dev br0 up<br>
&gt;<br>
&gt; export ETH0=$(/sbin/ip addr show eth0 | head -3 | tail -1 | awk -F&#39; &#39;<br>
&gt; {&#39;print $2&#39;})<br>
&gt; export ETH1=$(/sbin/ip addr show eth1 | head -3 | tail -1 | awk -F&#39; &#39;<br>
&gt; {&#39;print $2&#39;})<br>
&gt;<br>
&gt; ifconfig eth0 0.0.0.0<br>
&gt; ifconfig eth1 0.0.0.0<br>
&gt; ifconfig br0  $ETH0<br>
&gt;         &quot;&quot;&quot;<br>
&gt;         #&quot;&quot;&quot; % { &#39;bridge_addr&#39;: node.getaddr(&#39;eth0&#39;, rescan=1)[&#39;inet&#39;][0] }<br>
&gt;<br>
&gt;         return cfg<br>
&gt;<br>
&gt; # this line is required to add the above class to the list of available<br>
&gt; services<br>
&gt; addservice(CPE_Bridge)<br>
&gt;<br>
&gt; &lt;/end&gt;<br>
&gt;<br>
&gt; in /home/user/.core/nodes.conf  ho aggiunto:<br>
&gt; 7 { ninux_antenna router_green.gif router_black.gif {IPForward<br>
&gt; CPE_Bridge} netns {} }<br>
&gt;<br>
&gt; e in /etc/core/core.conf ho decommentato la seguente linea:<br>
&gt;<br>
&gt; custom_services_dir = /home/user/.core/myservices<br>
&gt;<br>
&gt; oppelà.<br>
&gt; Adesso sto studiando bene lo switch di openwrt per riprodurre un<br>
&gt; servizio che integra olsr sulle vlan, perchè ci sono alcuni aspetti sul<br>
&gt; tagged/untagged misti allo schema proposto da spax che devo studiare<br>
&gt;<br>
<br>
E sei un grande<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Vincenzo Pirrone<br>
Twitter: @spax_arm<br>
PGP Key ID: 5CF5047D<br>
<br>
</font></span><br>_______________________________________________<br>
Calabria mailing list<br>
<a href="mailto:Calabria@ml.ninux.org">Calabria@ml.ninux.org</a><br>
<a href="http://ml.ninux.org/mailman/listinfo/calabria" target="_blank">http://ml.ninux.org/mailman/listinfo/calabria</a><br>
<br></blockquote></div><br></div>