[ubuntu-it] help per bridge! OT-RISOLTO!

Spiderman 77dab a tiscali.it
Lun 10 Mar 2008 22:14:26 GMT


Spiderman ha scritto:
> ho da risolvere un problemino antipatico con il bridge di rete che uso 
> per far entrare una macchina virtualizzata nel mio ubuntu (tramite 
> vbox), nella rete dell'ufficio.
> 
> il problema sorge quando non sono in ufficio. l'avvio supera i tre minuti!!!
> deduco che il problema sia il time out del dhcp.
> 
> ho guardato il man di brctl, e ho notato dei comandi che potrebbero 
> essere utili, mi date il vostro consiglio?

mi rispondo da solo, fortunatamente sono incappato in una pagina utile 
su internet.

so che l'argomento magari è OT, ma se a qualcuno servisse questo è il 
mio /etc/network/interfaces:

auto lo
iface lo inet loopback

auto br0
brctl setfd br0 0
iface br0 inet dhcp
         bridge_ports eth0


iface ppp0 inet ppp
provider ppp0

aggiungendo la riga 'brctl...' che azzera il forwarding delay come 
suggerito da questo passaggio trovato qui: 
http://www.linux-foundation.org/en/Net:Bridge#Creating_a_bridge_device

....
Does DHCP work over/through a bridge?

The bridge will forward DHCP traffic (broadcasts) and responses. You can 
also use DHCP to set the local IP address of the bridge pseudo-interface.

One common mistake is that the default bridge forwarding delay setting 
is 30 seconds. This means that for the first 30 seconds after an 
interface joins a bridge, it won't send anything. This is because if the 
bridge is being used in a complex topology, it needs to discover other 
bridges and not create loops. This problem was one of the reasons for 
the creation of Rapid Spanning Tree Protocol (RSTP).

If the bridge is being used standalone (no other bridges near by). Then 
it is safe to turn the forwarding delay off (set it to zero), before 
adding interface to a bridge. Then you can run DHCP client right away.

  # brctl setfd br0 0
  # brctl addif br0 eth0
  # dhclient eth0

.....

unico problema, di cui non ho capito il perchè, è che all'avvio così si 
bloccava invece sul modulo NFS. disabilitato quello all'avvio, ho 
ottenuto finalmente un avvio decente.

ciaps! davide



Maggiori informazioni sulla lista ubuntu-it